1 #include "../interface/functions.h" 6 template <
typename dtype_A,
typename dtype_B>
9 for (
int i=0; i<this->
order; i++){
12 assert(this->order == B->
order);
17 template <
typename dtype_A,
typename dtype_B>
19 char str[this->
order];
20 for (
int i=0; i<this->
order; i++){
26 template <
typename dtype>
28 char str[this->
order];
29 for (
int i=0; i<this->
order; i++){
32 assert(this->order >= A->
order);
33 assert(this->order >= B->
order);
38 template <
typename dtype>
40 char str[this->
order];
41 for (
int i=0; i<this->
order; i++){
46 assert(A->
order == this->order);
50 template <
typename dtype>
52 char str[this->
order];
53 for (
int i=0; i<this->
order; i++){
58 assert(A->
order == this->order);
62 template <
typename dtype>
64 char str[this->
order];
65 for (
int i=0; i<this->
order; i++){
70 assert(A->
order == this->order);
74 template <
typename dtype>
76 char str[this->
order];
77 for (
int i=0; i<this->
order; i++){
82 assert(A->
order == this->order);
86 template <
typename dtype>
88 char str[this->
order];
89 for (
int i=0; i<this->
order; i++){
94 assert(A->
order == this->order);
98 template <
typename dtype>
100 char str[this->
order];
101 for (
int i=0; i<this->
order; i++){
104 assert(A->
order == this->order);
void smaller_equal_than(tensor *A, tensor *B)
do an elementwise comparison(<=) of two tensors with elements of type dtype (primarily needed for pyt...
void smaller_than(tensor *A, tensor *B)
do an elementwise comparison(<) of two tensors with elements of type dtype (primarily needed for pyth...
CTF::Idx_Tensor operator[](char const *idx_map)
associated an index map with the tensor for future operation
void larger_equal_than(tensor *A, tensor *B)
do an elementwise comparison(>=) of two tensors with elements of type dtype (primarily needed for pyt...
void conv_type(tensor *B)
convert this tensor from dtype_A to dtype_B and store the result in B (primarily needed for python in...
int order
number of tensor dimensions
void compare_elementwise(tensor *A, tensor *B)
do an elementwise comparison(==) of two tensors with elements of type dtype (primarily needed for pyt...
void not_equals(tensor *A, tensor *B)
do an elementwise comparison(!=) of two tensors with elements of type dtype (primarily needed for pyt...
algstrct * sr
algstrct on which tensor elements and operations are defined
void larger_than(tensor *A, tensor *B)
do an elementwise comparison(>) of two tensors with elements of type dtype (primarily needed for pyth...
def exp(init_x, out=None, where=True, casting='same_kind', order='F', dtype=None, subok=True)
void true_divide(tensor *A)
int el_size
size of each element of algstrct in bytes
internal distributed tensor class
void exp_helper(tensor *A)