Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
CTF::Pair< dtype > Class Template Reference

index-value pair used for tensor data input More...

#include <tensor.h>

Public Member Functions

 Pair (int64_t k_, dtype d_)
 constructor builds pair More...
 Pair ()
 default constructor More...
bool operator< (Pair< dtype > other) const
 determines pair ordering More...

Data Fields

int64_t k
 key, global index [i1,i2,...] specified as i1+len[0]*i2+... More...
dtype d
 tensor value associated with index More...

Detailed Description

template<typename dtype = double>
class CTF::Pair< dtype >

index-value pair used for tensor data input

Definition at line 28 of file tensor.h.

Constructor & Destructor Documentation

template<typename dtype = double>
CTF::Pair< dtype >::Pair ( int64_t  k_,
dtype  d_ 

constructor builds pair


Definition at line 41 of file tensor.h.

template<typename dtype = double>
CTF::Pair< dtype >::Pair ( )

default constructor

Definition at line 49 of file tensor.h.

Member Function Documentation

template<typename dtype = double>
bool CTF::Pair< dtype >::operator< ( Pair< dtype >  other) const

determines pair ordering

Definition at line 57 of file tensor.h.

Field Documentation

template<typename dtype = double>
dtype CTF::Pair< dtype >::d
template<typename dtype = double>
int64_t CTF::Pair< dtype >::k

The documentation for this class was generated from the following file: