Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
CTF Tensor

Data Structures

class  CTF::Matrix< dtype >
 Matrix class which encapsulates a 2D tensor. More...
 
class  CTF::Scalar< dtype >
 Scalar class which encapsulates a 0D tensor. More...
 
class  CTF::Sparse_Tensor< dtype >
 a sparse subset of a tensor More...
 
class  CTF::Pair< dtype >
 index-value pair used for tensor data input More...
 
class  CTF::Tensor< dtype >
 an instance of a tensor within a CTF world More...
 
class  CTF::Vector< dtype >
 Vector class which encapsulates a 1D tensor. More...
 

Enumerations

enum  CTF::OP {
  CTF::OP_SUM, CTF::OP_SUMABS, CTF::OP_SUMSQ, CTF::OP_MAX,
  CTF::OP_MIN, CTF::OP_MAXABS, CTF::OP_MINABS
}
 reduction types for tensor data deprecated types: OP_NORM1=OP_SUMABS, OP_NORM2=call norm2(), OP_NORM_INFTY=OP_MAXABS More...
 

Functions

template<typename dtype >
bool CTF::comp_pair (Pair< dtype > i, Pair< dtype > j)
 
 CTF::Vector< dtype >::Vector ()
 default constructor for a vector More...
 
 CTF::Vector< dtype >::Vector (Vector< dtype > const &A)
 copy constructor for a matrix More...
 
 CTF::Vector< dtype >::Vector (Tensor< dtype > const &A)
 casts a tensor to a matrix More...
 
 CTF::Vector< dtype >::Vector (int len, World &world, CTF_int::algstrct const &sr)
 constructor for a vector More...
 
 CTF::Vector< dtype >::Vector (int len, World &world=get_universe(), char const *name=NULL, int profile=0, CTF_int::algstrct const &sr=Ring< dtype >())
 constructor for a vector More...
 
 CTF::Vector< dtype >::Vector (int len, int atr, World &world=get_universe(), CTF_int::algstrct const &sr=Ring< dtype >())
 constructor for a vector More...
 
 CTF::Vector< dtype >::Vector (int len, int atr, World &world, char const *name, int profile=0, CTF_int::algstrct const &sr=Ring< dtype >())
 constructor for a vector More...
 

Variables

int CTF::DGTOG_SWITCH = 1
 
int CTF::Vector< dtype >::len
 

Detailed Description

Enumeration Type Documentation

enum CTF::OP

reduction types for tensor data deprecated types: OP_NORM1=OP_SUMABS, OP_NORM2=call norm2(), OP_NORM_INFTY=OP_MAXABS

Enumerator
OP_SUM 
OP_SUMABS 
OP_SUMSQ 
OP_MAX 
OP_MIN 
OP_MAXABS 
OP_MINABS 

Definition at line 51 of file common.h.

Function Documentation

template<typename dtype >
bool CTF::comp_pair ( Pair< dtype >  i,
Pair< dtype >  j 
)
inline

Definition at line 64 of file tensor.h.

References CTF::Pair< dtype >::k.

template<typename dtype >
CTF::Vector< dtype >::Vector ( )

default constructor for a vector

Definition at line 20 of file vector.cxx.

template<typename dtype >
CTF::Vector< dtype >::Vector ( Tensor< dtype > const &  A)

casts a tensor to a matrix

Parameters
[in]Atensor object of order 1

Definition at line 29 of file vector.cxx.

References IASSERT, CTF::Vector< dtype >::len, CTF_int::tensor::lens, and CTF_int::tensor::order.

template<typename dtype >
CTF::Vector< dtype >::Vector ( Vector< dtype > const &  A)

copy constructor for a matrix

Parameters
[in]Amatrix to copy along with its data

Definition at line 23 of file vector.cxx.

References CTF::Vector< dtype >::len.

template<typename dtype >
CTF::Vector< dtype >::Vector ( int  len,
World world,
CTF_int::algstrct const &  sr 
)

constructor for a vector

Parameters
[in]lendimension of vector
[in]worldCTF world where the tensor will live
[in]srdefines the tensor arithmetic for this tensor

Definition at line 36 of file vector.cxx.

References CTF::Vector< dtype >::len.

template<typename dtype >
CTF::Vector< dtype >::Vector ( int  len,
World world = get_universe(),
char const *  name = NULL,
int  profile = 0,
CTF_int::algstrct const &  sr = Ring<dtype>() 
)

constructor for a vector

Parameters
[in]lendimension of vector
[in]worldCTF world where the tensor will live
[in]namean optionary name for the tensor
[in]profileset to 1 to profile contractions involving this tensor
[in]srdefines the tensor arithmetic for this tensor

Definition at line 44 of file vector.cxx.

References CTF::Vector< dtype >::len.

template<typename dtype >
CTF::Vector< dtype >::Vector ( int  len,
int  atr,
World world = get_universe(),
CTF_int::algstrct const &  sr = Ring<dtype>() 
)

constructor for a vector

Parameters
[in]lendimension of vector
[in]atrquantifier for sparsity and symmetry of matrix (0 -> dense, >0 -> sparse)
[in]worldCTF world where the tensor will live
[in]srdefines the tensor arithmetic for this tensor

Definition at line 65 of file vector.cxx.

References CTF::Vector< dtype >::len.

template<typename dtype >
CTF::Vector< dtype >::Vector ( int  len,
int  atr,
World world,
char const *  name,
int  profile = 0,
CTF_int::algstrct const &  sr = Ring<dtype>() 
)

constructor for a vector

Parameters
[in]lendimension of vector
[in]atrquantifier for sparsity and symmetry of matrix (0 -> dense, >0 -> sparse)
[in]worldCTF world where the tensor will live

Definition at line 54 of file vector.cxx.

References CTF::Vector< dtype >::len.

Variable Documentation

int CTF::DGTOG_SWITCH = 1

Definition at line 12 of file common.cxx.

Referenced by bench_redistribution(), and CTF_redist_ror_isr_any::redist_bucket_ror().

template<typename dtype = double>
int CTF::Vector< dtype >::len

Definition at line 16 of file vector.h.

Referenced by smooth_jacobi(), and CTF::Vector< dtype >::Vector().