host
A simple allocator for STL containers which upholds alignment specifications.
A number of functions are requirements for STL compliance - e.g. allocators compare equal.
Namespaces
Section titled “Namespaces”| Name | Description |
|---|---|
a64 |
|
x86 |
|
impl |
|
anonymous_namespace{rtcompiler.cc} |
Classes
Section titled “Classes”| Name | Description |
|---|---|
RuntimeCompiler |
|
VM_Cast_Table |
Typedefs
Section titled “Typedefs”| Return | Name | Description |
|---|---|---|
void(*)(const void **src_ptrs, void *dest_data) |
ExprKernelFunc |
The signature for evaluation of lineriazable arrays of single datatypes/layouts. |
ExprKernelFunc
Section titled “ExprKernelFunc”using ExprKernelFunc = void(*)(const void **src_ptrs, void *dest_data)Defined in src/lib/ncarray/jit/host/rtcompiler.hh:47
The signature for evaluation of lineriazable arrays of single datatypes/layouts.
Functions
Section titled “Functions”| Return | Name | Description |
|---|---|---|
DestT |
vm_cast_logic |
|
void |
execute_expression_recursive |
|
void |
scatter_add_recursive |
|
Scalar |
sum_recursive |
|
Scalar |
mean_recursive |
|
Scalar |
var_recursive |
|
Scalar |
std_recursive |
|
Scalar |
max_recursive |
|
Scalar |
argmax_recursive |
|
Scalar |
min_recursive |
|
Scalar |
argmin_recursive |
|
Scalar |
all_recursive |
|
Scalar |
any_recursive |
|
std::string |
compute_kernel_hash |
Compute a hash of the expression function/kernel based on types and metadata. |
vm_cast_logic
Section titled “vm_cast_logic”template<typename DestT, typename SrcT> DestT vm_cast_logic(const void * ptr)Defined in src/lib/ncarray/host/casts.cc:12
execute_expression_recursive
Section titled “execute_expression_recursive”template<typename DestT, typename CoordsT, ArrayExpression Expr, class Result> void execute_expression_recursive(Expr expr, Result result, CoordsT & coords, ssize_t axis)Defined in src/lib/ncarray/host/elementwise.hh:459
scatter_add_recursive
Section titled “scatter_add_recursive”template<typename DestT, typename IndexT, typename SrcT, ArrayLike Dest, ArrayLike Index, ArrayLike Src> void scatter_add_recursive(Dest & dest, const Index & indices, const Src & src)Defined in src/lib/ncarray/host/elementwise.hh:490
sum_recursive
Section titled “sum_recursive”template<typename T, ArrayLike A> Scalar sum_recursive(const A & arr)Defined in src/lib/ncarray/host/reductions.hh:59
mean_recursive
Section titled “mean_recursive”template<typename T, ArrayLike A> Scalar mean_recursive(const A & arr)Defined in src/lib/ncarray/host/reductions.hh:77
var_recursive
Section titled “var_recursive”template<typename T, ArrayLike A> Scalar var_recursive(const A & arr, ssize_t ddof = 0)Defined in src/lib/ncarray/host/reductions.hh:96
std_recursive
Section titled “std_recursive”template<typename T, ArrayLike A> Scalar std_recursive(const A & arr, ssize_t ddof = 0)Defined in src/lib/ncarray/host/reductions.hh:121
max_recursive
Section titled “max_recursive”template<typename T, ArrayLike A> Scalar max_recursive(const A & arr)Defined in src/lib/ncarray/host/reductions.hh:131
argmax_recursive
Section titled “argmax_recursive”template<typename T, ArrayLike A> Scalar argmax_recursive(const A & arr)Defined in src/lib/ncarray/host/reductions.hh:149
min_recursive
Section titled “min_recursive”template<typename T, ArrayLike A> Scalar min_recursive(const A & arr)Defined in src/lib/ncarray/host/reductions.hh:173
argmin_recursive
Section titled “argmin_recursive”template<typename T, ArrayLike A> Scalar argmin_recursive(const A & arr)Defined in src/lib/ncarray/host/reductions.hh:191
all_recursive
Section titled “all_recursive”template<typename T, ArrayLike A> Scalar all_recursive(const A & arr)Defined in src/lib/ncarray/host/reductions.hh:216
any_recursive
Section titled “any_recursive”template<typename T, ArrayLike A> Scalar any_recursive(const A & arr)Defined in src/lib/ncarray/host/reductions.hh:235
compute_kernel_hash
Section titled “compute_kernel_hash”std::string compute_kernel_hash(DType dest_t, DType src_t, DType work_t, const SOArrayPolicy & dest_layout, const std::vector< Instruction > & instrs, const std::vector< SOArrayPolicy > & layouts, const std::vector< Scalar > & scalars, bool expr_is_soarr)Defined in src/lib/ncarray/jit/host/rtcompiler.cc:135
Compute a hash of the expression function/kernel based on types and metadata.
Variables
Section titled “Variables”| Return | Name | Description |
|---|---|---|
constexpr VM_Cast_Table< T > |
vm_cast_table constexpr |
vm_cast_table
Section titled “vm_cast_table”constexpr
constexpr VM_Cast_Table< T > vm_cast_table {}Type: constexpr VM_Cast_Table< T >
Defined in src/lib/ncarray/host/casts.hh:35