DynamicExprMVNode
DynamicExprMVNode
Section titled “DynamicExprMVNode”#include <dynamicmvnode.hh>template<class MemTag = DevTag, int MaxStackSize = 24>struct DynamicExprMVNodeDefined in src/lib/ncarray/expression/dynamicmvnode.hh:88
Inherits:
ExpressionTag,ExprOpInterface
List of all members
Section titled “List of all members”| 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 |
Public Attributes
Section titled “Public Attributes”| 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 |
instrs
Section titled “instrs”const Instruction * instrs { nullptr }Defined in src/lib/ncarray/expression/dynamicmvnode.hh:89
Instruction stack.
layouts
Section titled “layouts”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.
arr_dtypes
Section titled “arr_dtypes”const DType * arr_dtypes { nullptr }Defined in src/lib/ncarray/expression/dynamicmvnode.hh:93
Datatypes for arrays.
constants_dtypes
Section titled “constants_dtypes”const DType * constants_dtypes { nullptr }Defined in src/lib/ncarray/expression/dynamicmvnode.hh:96
Scalar data types.
constants_offsets
Section titled “constants_offsets”const uint16_t * constants_offsets { nullptr }Defined in src/lib/ncarray/expression/dynamicmvnode.hh:97
Scalar offset in byte stream.
constants_buf
Section titled “constants_buf”const uint8_t * constants_buf { nullptr }Defined in src/lib/ncarray/expression/dynamicmvnode.hh:99
Byte stream of scalars.
expr_dtype
Section titled “expr_dtype”DType expr_dtypeDefined in src/lib/ncarray/expression/dynamicmvnode.hh:101
The DType for the final evaluated expression.
work_dtype
Section titled “work_dtype”DType work_dtypeDefined in src/lib/ncarray/expression/dynamicmvnode.hh:102
The DType for intermediate sub-expression evaluations.
n_layouts
Section titled “n_layouts”uint8_t n_layouts { 0 }Defined in src/lib/ncarray/expression/dynamicmvnode.hh:104
n_scalars
Section titled “n_scalars”uint8_t n_scalars { 0 }Defined in src/lib/ncarray/expression/dynamicmvnode.hh:105
n_instrs
Section titled “n_instrs”uint8_t n_instrs { 0 }Defined in src/lib/ncarray/expression/dynamicmvnode.hh:106
arr_alignment
Section titled “arr_alignment”size_t arr_alignment { 16 }Defined in src/lib/ncarray/expression/dynamicmvnode.hh:108
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
DynamicExprMVNode inline |
||
NCA_HDDType |
dtype const inline |
|
NCA_HD ssize_t |
itemsize const inline |
|
NCA_HD DestT |
eval const inline |
DynamicExprMVNode
Section titled “DynamicExprMVNode”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() constDefined in src/lib/ncarray/expression/dynamicmvnode.hh:158
itemsize
Section titled “itemsize”const inline
inline NCA_HD ssize_t itemsize() constDefined in src/lib/ncarray/expression/dynamicmvnode.hh:160
const inline
template<typename DestT, typename Coords> inline NCA_HD DestT eval(const Coords & coords) constDefined in src/lib/ncarray/expression/dynamicmvnode.hh:163