MLX
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
Or< U > Struct Template Reference

#include <ops.h>

Public Member Functions

bool simd_reduce (bool val)
 
void atomic_update (device mlx_atomic< unsigned int > *out, bool val, uint elem_idx, uint 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 = false
 

Member Function Documentation

◆ atomic_update() [1/2]

template<typename U = bool>
void Or< U >::atomic_update ( device mlx_atomic< bool > * out,
bool val,
uint offset = 0 )
inline

◆ atomic_update() [2/2]

template<typename U = bool>
void Or< U >::atomic_update ( device mlx_atomic< unsigned int > * out,
bool val,
uint elem_idx,
uint offset = 0 )
inline

◆ operator()()

template<typename U = bool>
bool Or< U >::operator() ( bool a,
bool b )
inline

◆ simd_reduce()

template<typename U = bool>
bool Or< U >::simd_reduce ( bool val)
inline

◆ update()

template<typename U = bool>
void Or< U >::update ( device bool * out,
bool val )
inline

Member Data Documentation

◆ init

template<typename U = bool>
constexpr constant bool Or< U >::init = false
staticconstexpr

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