MLX
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
And< 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, 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]

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

◆ atomic_update() [2/2]

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

◆ operator()()

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

◆ simd_reduce()

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

◆ update()

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

Member Data Documentation

◆ init

template<typename U = bool>
constexpr constant bool And< U >::init = true
staticconstexpr

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