Skip to content

DynamicExprMVNode

#include <dynamicmvnode.hh>
template<class MemTag = DevTag, int MaxStackSize = 24>
struct DynamicExprMVNode

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:88

Inherits: ExpressionTag, ExprOpInterface

Name Kind Owner
instrs variable Declared here
layouts variable Declared here
data variable Declared here
arr_dtypes variable Declared here
constants_dtypes variable Declared here
constants_offsets variable Declared here
constants_buf variable Declared here
expr_dtype variable Declared here
work_dtype variable Declared here
n_layouts variable Declared here
n_scalars variable Declared here
n_instrs variable Declared here
arr_alignment variable Declared here
DynamicExprMVNode function Declared here
dtype function Declared here
itemsize function Declared here
eval function Declared here
final_shape variable Inherited from ExprOpInterface
final_size variable Inherited from ExprOpInterface
ndim function Inherited from ExprOpInterface
shape function Inherited from ExprOpInterface
size function Inherited from ExprOpInterface
md_to_lin function Inherited from ExprOpInterface
apply_op function Inherited from ExprOpInterface
Kind Name Description
variable final_shape The result shape.
variable final_size The result number of elements.
function ndim const inline
function shape const inline
function size const inline
function md_to_lin const inline
function apply_op const inline
Return Name Description
const Instruction * instrs Instruction stack.
const SOArrayPolicy * layouts Array layout operands.
const void *const * data Array data.
const DType * arr_dtypes Datatypes for arrays.
const DType * constants_dtypes Scalar data types.
const uint16_t * constants_offsets Scalar offset in byte stream.
const uint8_t * constants_buf Byte stream of scalars.
DType expr_dtype The DType for the final evaluated expression.
DType work_dtype The DType for intermediate sub-expression evaluations.
uint8_t n_layouts
uint8_t n_scalars
uint8_t n_instrs
size_t arr_alignment

const Instruction * instrs { nullptr }

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:89

Instruction stack.


const SOArrayPolicy * layouts { nullptr }

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:91

Array layout operands.


const void *const * data { nullptr }

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:92

Array data.


const DType * arr_dtypes { nullptr }

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:93

Datatypes for arrays.


const DType * constants_dtypes { nullptr }

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:96

Scalar data types.


const uint16_t * constants_offsets { nullptr }

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:97

Scalar offset in byte stream.


const uint8_t * constants_buf { nullptr }

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:99

Byte stream of scalars.


DType expr_dtype

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:101

The DType for the final evaluated expression.


DType work_dtype

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:102

The DType for intermediate sub-expression evaluations.


uint8_t n_layouts { 0 }

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:104


uint8_t n_scalars { 0 }

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:105


uint8_t n_instrs { 0 }

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:106


size_t arr_alignment { 16 }

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:108

Return Name Description
DynamicExprMVNode inline
NCA_HDDType dtype const inline
NCA_HD ssize_t itemsize const inline
NCA_HD DestT eval const inline

inline

inline DynamicExprMVNode(const ExprMVNode< MemTag > & node, const uint8_t * buf, uint8_t n_instrs_, uint8_t n_arrays_, uint8_t n_scalars_, size_t alignment = 16)

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:111


const inline

inline NCA_HDDType dtype() const

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:158


const inline

inline NCA_HD ssize_t itemsize() const

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:160


const inline

template<typename DestT, typename Coords> inline NCA_HD DestT eval(const Coords & coords) const

Defined in src/lib/ncarray/expression/dynamicmvnode.hh:163