Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
tensor.cxx File Reference
#include "../interface/common.h"
#include "world.h"
#include "idx_tensor.h"
#include "../tensor/untyped_tensor.h"
Include dependency graph for tensor.cxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 CTF
 

Macros

#define NORM1_INST(dtype)
 
#define NORM2_REAL_INST(dtype)
 
#define NORM2_COMPLEX_INST(dtype)
 
#define NORM_INFTY_INST(dtype)
 

Functions

template<typename dtype >
void CTF::read_sparse_from_file_base (const char *fpath, bool with_vals, Tensor< dtype > *T)
 
template<typename dtype >
void CTF::write_sparse_to_file_base (const char *fpath, bool with_vals, Tensor< dtype > *T)
 
template<typename dtype >
void CTF::real_norm1 (Tensor< dtype > &A, double &nrm)
 
template<>
void CTF::real_norm1< bool > (Tensor< bool > &A, double &nrm)
 
template<typename dtype >
void CTF::fill_random_base (dtype rmin, dtype rmax, Tensor< dtype > &T)
 
template<typename dtype >
void CTF::fill_sp_random_base (dtype rmin, dtype rmax, double frac_sp, Tensor< dtype > *T)
 

Macro Definition Documentation

#define NORM1_INST (   dtype)
Value:
template<> \
inline void Tensor<dtype>::norm1(double & nrm){ \
real_norm1<dtype>(*this, nrm); \
}

Definition at line 829 of file tensor.cxx.

#define NORM2_COMPLEX_INST (   dtype)
Value:
template<> \
inline void Tensor< std::complex<dtype> >::norm2(double & nrm){ \
complex_norm2< std::complex<dtype> >(*this, nrm); \
}

Definition at line 876 of file tensor.cxx.

#define NORM2_REAL_INST (   dtype)
Value:
template<> \
inline void Tensor<dtype>::norm2(double & nrm){ \
real_norm2<dtype>(*this, nrm); \
}

Definition at line 870 of file tensor.cxx.

#define NORM_INFTY_INST (   dtype)
Value:
template<> \
inline void Tensor<dtype>::norm_infty(double & nrm){ \
nrm = this->norm_infty(); \
}

Definition at line 900 of file tensor.cxx.