MLX
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
And Struct Reference

#include <ops.h>

Public Member Functions

bool simd_reduce (bool val)
 
void atomic_update (device mlx_atomic< unsigned int > *out, bool val, int elem_idx, int offset=0)
 
void atomic_update (device mlx_atomic< bool > *out, bool val, uint offset=0)
 
void update (device bool *out, bool val)
 
bool operator() (bool a, bool b)
 

Static Public Attributes

static constexpr constant bool init = true
 

Member Function Documentation

◆ atomic_update() [1/2]

void And::atomic_update ( device mlx_atomic< bool > * out,
bool val,
uint offset = 0 )
inline

◆ atomic_update() [2/2]

void And::atomic_update ( device mlx_atomic< unsigned int > * out,
bool val,
int elem_idx,
int offset = 0 )
inline

◆ operator()()

bool And::operator() ( bool a,
bool b )
inline

◆ simd_reduce()

bool And::simd_reduce ( bool val)
inline

◆ update()

void And::update ( device bool * out,
bool val )
inline

Member Data Documentation

◆ init

constexpr constant bool And::init = true
staticconstexpr

The documentation for this struct was generated from the following file: