Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > > Class Template Reference

Structure for distributed vectors. More...

#include <HeterogeneousCollection.hxx>

Inheritance diagram for Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >:
Seldon::Vector_Base< T, Allocator< T > >

Public Types

typedef Vector< float, VectFull, Allocator< float > > float_dense_v
 
typedef Vector< float, VectSparse, Allocator< float > > float_sparse_v
 
typedef Vector< double, VectFull, Allocator< double > > double_dense_v
 
typedef Vector< double, VectSparse, Allocator< double > > double_sparse_v
 
typedef Vector< float_dense_v, Collection, SELDON_DEFAULT_COLLECTION_ALLOCATOR< float_dense_v > > float_dense_c
 
typedef Vector< float_sparse_v, Collection, SELDON_DEFAULT_COLLECTION_ALLOCATOR< float_sparse_v > > float_sparse_c
 
typedef Vector< double_dense_v, Collection, SELDON_DEFAULT_COLLECTION_ALLOCATOR< double_dense_v > > double_dense_c
 
typedef Vector< double_sparse_v, Collection, SELDON_DEFAULT_COLLECTION_ALLOCATOR< double_sparse_v > > double_sparse_c
 
typedef DenseSparseCollection storage
 
typedef Allocator< T > ::value_type value_type
 
typedef Allocator< T > ::pointer pointer
 
typedef Allocator< T > ::const_pointer const_pointer
 
typedef Allocator< T > ::reference reference
 
typedef Allocator< T > ::const_reference const_reference
 
typedef Allocator< T > allocator
 

Public Member Functions

 Vector ()
 Default constructor. More...
 
 Vector (const Vector< FloatDouble, DenseSparseCollection, Allocator< T > > &)
 Copy constructor. More...
 
 ~Vector ()
 Destructor. More...
 
void Clear ()
 Clears the vector collection. More...
 
void Deallocate ()
 Clears the vector collection. More...
 
void AddVector (const Vector< float, VectFull, Allocator< float > > &)
 Adds a vector to the list of vectors. More...
 
void AddVector (const Vector< float, VectSparse, Allocator< float > > &)
 Adds a vector to the list of vectors. More...
 
void AddVector (const Vector< double, VectFull, Allocator< double > > &)
 Adds a vector to the list of vectors. More...
 
void AddVector (const Vector< double, VectSparse, Allocator< double > > &)
 Adds a vector to the list of vectors. More...
 
template<class T0 , class Storage0 , class Allocator0 >
void AddVector (const Vector< T0, Storage0, Allocator0 > &, string name)
 Adds a vector to the list of vectors. More...
 
void SetVector (int i, const Vector< float, VectFull, Allocator< float > > &)
 Sets a vector in the list of vectors. More...
 
void SetVector (int i, const Vector< float, VectSparse, Allocator< float > > &)
 Sets a vector in the list of vectors. More...
 
void SetVector (int i, const Vector< double, VectFull, Allocator< double > > &)
 Sets a vector in the list of vectors. More...
 
void SetVector (int i, const Vector< double, VectSparse, Allocator< double > > &)
 Sets a vector in the list of vectors. More...
 
template<class T0 , class Storage0 , class Allocator0 >
void SetVector (int i, const Vector< T0, Storage0, Allocator0 > &, string name)
 Sets a vector in the list of vectors. More...
 
template<class T0 , class Storage0 , class Allocator0 >
void SetVector (string name, const Vector< T0, Storage0, Allocator0 > &)
 Sets a vector in the list of vectors. More...
 
void SetName (int i, string name)
 Sets a vector in the list of vectors. More...
 
void Nullify ()
 Nullifies vectors of the collection without memory deallocation.
 
int GetM () const
 Returns the total number of elements. More...
 
int GetLength () const
 Returns the total number of elements. More...
 
int GetNvector () const
 Returns the number of aggregated vectors. More...
 
const Vector< int, VectFull, MallocAlloc< int > > & GetVectorLength () const
 Returns the length vector of the underlying vectors. More...
 
const Vector< int, VectFull, MallocAlloc< int > > & GetLengthSum () const
 Returns the cumulative sum of the lengths of the underlying vectors. More...
 
const Vector< int, VectFull, MallocAlloc< int > > & GetCollectionIndex () const
 Returns the collection indexes of the underlying vectors. More...
 
const Vector< int, VectFull, MallocAlloc< int > > & GetSubvectorIndex () const
 Returns the index of the underlying vectors in the inner collection. More...
 
float_dense_cGetFloatDense ()
 Returns the list of float dense vectors. More...
 
const float_dense_cGetFloatDense () const
 
float_sparse_cGetFloatSparse ()
 Returns the list of float sparse vectors. More...
 
const float_sparse_cGetFloatSparse () const
 
double_dense_cGetDoubleDense ()
 Returns the list of double dense vectors. More...
 
const double_dense_cGetDoubleDense () const
 
double_sparse_cGetDoubleSparse ()
 Returns the list of double sparse vectors. More...
 
const double_sparse_cGetDoubleSparse () const
 
void GetVector (int i, float_dense_v &vector) const
 
void GetVector (int i, float_sparse_v &vector) const
 
void GetVector (int i, double_dense_v &vector) const
 
void GetVector (int i, double_sparse_v &vector) const
 
template<class T0 , class Storage0 , class Allocator0 >
void GetVector (string name, Vector< T0, Storage0, Allocator0 > &vector) const
 Returns one of the aggregated vectors. More...
 
double operator() (int i) const
 Access operator. More...
 
Vector< FloatDouble, DenseSparseCollection, Allocator< T > > & operator= (const Vector< FloatDouble, DenseSparseCollection, Allocator< T > > &X)
 Duplicates a vector collection (assignment operator). More...
 
void Copy (const Vector< FloatDouble, DenseSparseCollection, Allocator< T > > &X)
 Duplicates a vector collection. More...
 
template<class T0 >
Vector< FloatDouble, DenseSparseCollection, Allocator< T > > & operator*= (const T0 &X)
 Multiplies a vector collection by a scalar. More...
 
void Print () const
 Displays the vector.
 
void Write (string FileName, bool with_size) const
 Writes the inner vectors in a file. More...
 
void Write (ostream &FileStream, bool with_size) const
 Writes the vector in a file stream. More...
 
void WriteText (string FileName) const
 Writes the vector in a file. More...
 
void WriteText (ostream &FileStream) const
 Writes the vector in a file stream. More...
 
void Read (string FileName)
 Sets the vector from a file. More...
 
void Read (istream &FileStream)
 Sets the vector from a file stream. More...
 
template<class T , template< class U > class Allocator>
void GetVector (int i, typename Vector< FloatDouble, DenseSparseCollection, Allocator< T > > ::float_dense_v &vector) const
 Returns one of the aggregated vectors. More...
 
template<class T , template< class U > class Allocator>
void GetVector (int i, typename Vector< FloatDouble, DenseSparseCollection, Allocator< T > > ::float_sparse_v &vector) const
 Returns one of the aggregated vectors. More...
 
template<class T , template< class U > class Allocator>
void GetVector (int i, typename Vector< FloatDouble, DenseSparseCollection, Allocator< T > > ::double_dense_v &vector) const
 Returns one of the aggregated vectors. More...
 
template<class T , template< class U > class Allocator>
void GetVector (int i, typename Vector< FloatDouble, DenseSparseCollection, Allocator< T > > ::double_sparse_v &vector) const
 Returns one of the aggregated vectors. More...
 
long GetM () const
 Returns the number of elements. More...
 
size_t GetLength () const
 Returns the number of elements. More...
 
size_t GetSize () const
 Returns the number of elements stored. More...
 
size_t GetMemorySize () const
 Returns the memory used by the object in bytes. More...
 
pointer GetData () const
 Returns a pointer to data_ (stored data). More...
 
const_pointer GetDataConst () const
 Returns a const pointer to data_ (stored data). More...
 
void * GetDataVoid () const
 Returns a pointer of type "void*" to the data array (data_). More...
 
const void * GetDataConstVoid () const
 Returns a pointer of type "const void*" to the data array (data_). More...
 

Protected Member Functions

string GetType (int i) const
 Returns the type of an inner vector in a string. More...
 

Protected Attributes

int Nvector_
 Total number of vectors.
 
Vector< int, VectFull, MallocAlloc< int > > collection_
 For each underlying vectors, index of the corresponding collection.
 
Vector< int, VectFull, MallocAlloc< int > > subvector_
 Index of the underlying vectors in the inner collection.
 
Vector< int, VectFull, MallocAlloc< int > > length_
 Lengths of the underlying vectors.
 
Vector< int, VectFull, MallocAlloc< int > > length_sum_
 Cumulative sum of the lengths of the underlying vectors.
 
float_dense_c float_dense_c_
 Pointers of the underlying float dense vectors.
 
float_sparse_c float_sparse_c_
 Pointers of the underlying float sparse vectors.
 
double_dense_c double_dense_c_
 Pointers of the underlying double dense vectors.
 
double_sparse_c double_sparse_c_
 Pointers of the underlying float sparse vectors.
 
map< string, int > label_map_
 Indexes of the inner vectors that have a name.
 
vector< string > label_vector_
 Names associated with the inner vectors.
 
size_t m_
 
pointer data_
 

Detailed Description

template<class T, template< class U > class Allocator>
class Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >

Structure for distributed vectors.

Definition at line 40 of file HeterogeneousCollection.hxx.

Constructor & Destructor Documentation

◆ Vector() [1/2]

template<class T , template< class U > class Allocator>
Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::Vector
inlineexplicit

Default constructor.

Nothing is allocated. The number of vectors is set to zero.

Definition at line 47 of file HeterogeneousCollectionInline.cxx.

◆ Vector() [2/2]

template<class T , template< class U > class Allocator>
Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::Vector ( const Vector< FloatDouble, DenseSparseCollection, Allocator< T > > &  V)
inline

Copy constructor.

Builds a copy of a vector collection.

Parameters
[in]Vvector collection to be copied.

Definition at line 60 of file HeterogeneousCollectionInline.cxx.

◆ ~Vector()

template<class T , template< class U > class Allocator>
Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::~Vector

Destructor.

The inner vectors are nullified so that their memory blocks should not be deallocated.

Definition at line 46 of file HeterogeneousCollection.cxx.

Member Function Documentation

◆ AddVector() [1/5]

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::AddVector ( const Vector< double, VectFull, Allocator< double > > &  vector)

Adds a vector to the list of vectors.

The vector is "appended" to the existing data.

Parameters
[in]vectorvector to be appended.

Definition at line 158 of file HeterogeneousCollection.cxx.

◆ AddVector() [2/5]

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::AddVector ( const Vector< double, VectSparse, Allocator< double > > &  vector)

Adds a vector to the list of vectors.

The vector is "appended" to the existing data.

Parameters
[in]vectorvector to be appended.

Definition at line 177 of file HeterogeneousCollection.cxx.

◆ AddVector() [3/5]

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::AddVector ( const Vector< float, VectFull, Allocator< float > > &  vector)

Adds a vector to the list of vectors.

The vector is "appended" to the existing data.

Parameters
[in]vectorvector to be appended.

Definition at line 120 of file HeterogeneousCollection.cxx.

◆ AddVector() [4/5]

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::AddVector ( const Vector< float, VectSparse, Allocator< float > > &  vector)

Adds a vector to the list of vectors.

The vector is "appended" to the existing data.

Parameters
[in]vectorvector to be appended.

Definition at line 139 of file HeterogeneousCollection.cxx.

◆ AddVector() [5/5]

template<class T , template< class U > class Allocator>
template<class T0 , class Storage0 , class Allocator0 >
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::AddVector ( const Vector< T0, Storage0, Allocator0 > &  vector,
string  name 
)

Adds a vector to the list of vectors.

The vector is "appended" to the existing data.

Parameters
[in]vectorvector to be appended.
[in]namename of the vector to be appended.

Definition at line 198 of file HeterogeneousCollection.cxx.

◆ Clear()

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::Clear

Clears the vector collection.

The inner vectors are nullified so that their memory blocks should not be deallocated.

Definition at line 69 of file HeterogeneousCollection.cxx.

◆ Copy()

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::Copy ( const Vector< FloatDouble, DenseSparseCollection, Allocator< T > > &  X)

Duplicates a vector collection.

Parameters
[in]Xvector collection to be copied.
Note
Memory is duplicated: 'X' is therefore independent from the current instance after the copy.

Definition at line 619 of file HeterogeneousCollection.cxx.

◆ Deallocate()

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::Deallocate

Clears the vector collection.

The inner vectors are cleared and the memory blocks are deallocated.

Definition at line 92 of file HeterogeneousCollection.cxx.

◆ GetCollectionIndex()

template<class T , template< class U > class Allocator>
const Vector< int, VectFull, MallocAlloc< int > > & Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetCollectionIndex
inline

Returns the collection indexes of the underlying vectors.

Returns
The collection index vector of the underlying vectors.

Definition at line 142 of file HeterogeneousCollectionInline.cxx.

◆ GetData()

Vector_Base< T, Allocator< T > >::pointer Seldon::Vector_Base< T, Allocator< T > >::GetData
inlineinherited

Returns a pointer to data_ (stored data).

Returns
A pointer to the data_, i.e. the data array.

Definition at line 177 of file VectorInline.cxx.

◆ GetDataConst()

Vector_Base< T, Allocator< T > >::const_pointer Seldon::Vector_Base< T, Allocator< T > >::GetDataConst
inlineinherited

Returns a const pointer to data_ (stored data).

Returns
A const pointer to the data_, i.e. the data array.

Definition at line 189 of file VectorInline.cxx.

◆ GetDataConstVoid()

const void * Seldon::Vector_Base< T, Allocator< T > >::GetDataConstVoid
inlineinherited

Returns a pointer of type "const void*" to the data array (data_).

Returns
A pointer of type "const void*" to the data array.

Definition at line 212 of file VectorInline.cxx.

◆ GetDataVoid()

void * Seldon::Vector_Base< T, Allocator< T > >::GetDataVoid
inlineinherited

Returns a pointer of type "void*" to the data array (data_).

Returns
A pointer of type "void*" to the data array.

Definition at line 201 of file VectorInline.cxx.

◆ GetDoubleDense()

template<class T , template< class U > class Allocator>
const Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::double_dense_c & Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetDoubleDense
inline

Returns the list of double dense vectors.

Returns
The list of the aggregated vectors.

Definition at line 225 of file HeterogeneousCollectionInline.cxx.

◆ GetDoubleSparse()

template<class T , template< class U > class Allocator>
const Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::double_sparse_c & Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetDoubleSparse
inline

Returns the list of double sparse vectors.

Returns
The list of the aggregated vectors.

Definition at line 253 of file HeterogeneousCollectionInline.cxx.

◆ GetFloatDense()

template<class T , template< class U > class Allocator>
const Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::float_dense_c & Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetFloatDense
inline

Returns the list of float dense vectors.

Returns
The list of the aggregated vectors.

Definition at line 169 of file HeterogeneousCollectionInline.cxx.

◆ GetFloatSparse()

template<class T , template< class U > class Allocator>
const Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::float_sparse_c & Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetFloatSparse
inline

Returns the list of float sparse vectors.

Returns
The list of the aggregated vectors.

Definition at line 197 of file HeterogeneousCollectionInline.cxx.

◆ GetLength() [1/2]

size_t Seldon::Vector_Base< T, Allocator< T > >::GetLength
inlineinherited

Returns the number of elements.

Returns
The length of the vector.

Definition at line 142 of file VectorInline.cxx.

◆ GetLength() [2/2]

template<class T , template< class U > class Allocator>
int Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetLength
inline

Returns the total number of elements.

Returns
The total length of the vector.

Definition at line 91 of file HeterogeneousCollectionInline.cxx.

◆ GetLengthSum()

template<class T , template< class U > class Allocator>
const Vector< int, VectFull, MallocAlloc< int > > & Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetLengthSum
inline

Returns the cumulative sum of the lengths of the underlying vectors.

Returns
The cumulative sum of the lengths of the underlying vectors.

Definition at line 129 of file HeterogeneousCollectionInline.cxx.

◆ GetM() [1/2]

long Seldon::Vector_Base< T, Allocator< T > >::GetM
inlineinherited

Returns the number of elements.

Returns
The length of the vector.

Definition at line 131 of file VectorInline.cxx.

◆ GetM() [2/2]

template<class T , template< class U > class Allocator>
int Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetM
inline

Returns the total number of elements.

Returns
The total length of the vector.

Definition at line 78 of file HeterogeneousCollectionInline.cxx.

◆ GetMemorySize()

size_t Seldon::Vector_Base< T, Allocator< T > >::GetMemorySize
inlineinherited

Returns the memory used by the object in bytes.

In this method, the type T is assumed to be "static" such that sizeof(T) provides the correct size

Definition at line 165 of file VectorInline.cxx.

◆ GetNvector()

template<class T , template< class U > class Allocator>
int Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetNvector
inline

Returns the number of aggregated vectors.

Returns
The total number of aggregated vectors.

Definition at line 103 of file HeterogeneousCollectionInline.cxx.

◆ GetSize()

size_t Seldon::Vector_Base< T, Allocator< T > >::GetSize
inlineinherited

Returns the number of elements stored.

Returns
The length of the vector stored.

Definition at line 153 of file VectorInline.cxx.

◆ GetSubvectorIndex()

template<class T , template< class U > class Allocator>
const Vector< int, VectFull, MallocAlloc< int > > & Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetSubvectorIndex
inline

Returns the index of the underlying vectors in the inner collection.

Returns
The index vector of the underlying vectors in the inner collection.

Definition at line 156 of file HeterogeneousCollectionInline.cxx.

◆ GetType()

template<class T , template< class U > class Allocator>
string Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetType ( int  i) const
protected

Returns the type of an inner vector in a string.

Parameters
[in]iindex of the vector.
Returns
The type in format "Vector<{float,double}, {VectFull,VectSparse}>".

Definition at line 1009 of file HeterogeneousCollection.cxx.

◆ GetVector() [1/5]

template<class T , template< class U > class Allocator>
template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetVector ( int  i,
typename Vector< FloatDouble, DenseSparseCollection, Allocator< T > > ::double_dense_v vector 
) const

Returns one of the aggregated vectors.

Parameters
[in]ithe index of the vector to be returned.
Returns
The i th aggregated vector.

Definition at line 489 of file HeterogeneousCollection.cxx.

◆ GetVector() [2/5]

template<class T , template< class U > class Allocator>
template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetVector ( int  i,
typename Vector< FloatDouble, DenseSparseCollection, Allocator< T > > ::double_sparse_v vector 
) const

Returns one of the aggregated vectors.

Parameters
[in]ithe index of the vector to be returned.
Returns
The i th aggregated vector.

Definition at line 519 of file HeterogeneousCollection.cxx.

◆ GetVector() [3/5]

template<class T , template< class U > class Allocator>
template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetVector ( int  i,
typename Vector< FloatDouble, DenseSparseCollection, Allocator< T > > ::float_dense_v vector 
) const

Returns one of the aggregated vectors.

Parameters
[in]ithe index of the vector to be returned.
Returns
The i th aggregated vector.

Definition at line 429 of file HeterogeneousCollection.cxx.

◆ GetVector() [4/5]

template<class T , template< class U > class Allocator>
template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetVector ( int  i,
typename Vector< FloatDouble, DenseSparseCollection, Allocator< T > > ::float_sparse_v vector 
) const

Returns one of the aggregated vectors.

Parameters
[in]ithe index of the vector to be returned.
Returns
The i th aggregated vector.

Definition at line 459 of file HeterogeneousCollection.cxx.

◆ GetVector() [5/5]

template<class T , template< class U > class Allocator>
template<class T0 , class Storage0 , class Allocator0 >
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetVector ( string  name,
Vector< T0, Storage0, Allocator0 > &  vector 
) const

Returns one of the aggregated vectors.

Parameters
[in]ithe index of the vector to be returned.
Returns
The i th aggregated vector.

Definition at line 550 of file HeterogeneousCollection.cxx.

◆ GetVectorLength()

template<class T , template< class U > class Allocator>
const Vector< int, VectFull, MallocAlloc< int > > & Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::GetVectorLength
inline

Returns the length vector of the underlying vectors.

Returns
The lengths of the underlying vectors.

Definition at line 116 of file HeterogeneousCollectionInline.cxx.

◆ operator()()

template<class T , template< class U > class Allocator>
double Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::operator() ( int  i) const

Access operator.

Parameters
[in]iindex.
Returns
The value of the vector at 'i'.

Definition at line 575 of file HeterogeneousCollection.cxx.

◆ operator*=()

template<class T , template< class U > class Allocator>
template<class T0 >
Vector< FloatDouble, DenseSparseCollection, Allocator< T > > & Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::operator*= ( const T0 &  alpha)

Multiplies a vector collection by a scalar.

Parameters
[in]alphascalar.

Definition at line 646 of file HeterogeneousCollection.cxx.

◆ operator=()

template<class T , template< class U > class Allocator>
Vector< FloatDouble, DenseSparseCollection, Allocator< T > > & Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::operator= ( const Vector< FloatDouble, DenseSparseCollection, Allocator< T > > &  X)
inline

Duplicates a vector collection (assignment operator).

Parameters
[in]Xvector collection to be copied.
Note
Memory is duplicated: 'X' is therefore independent from the current instance after the copy.

Definition at line 283 of file HeterogeneousCollectionInline.cxx.

◆ Read() [1/2]

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::Read ( istream &  FileStream)

Sets the vector from a file stream.

Sets the vector according to a binary file stream that stores the length of the vector (integer) and all elements.

Parameters
FileStreamfile stream.

Definition at line 887 of file HeterogeneousCollection.cxx.

◆ Read() [2/2]

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::Read ( string  FileName)

Sets the vector from a file.

Sets the vector according to a binary file that stores the length of the vector (integer) and all elements.

Parameters
FileNamefile name.

Definition at line 860 of file HeterogeneousCollection.cxx.

◆ SetName()

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::SetName ( int  i,
string  name 
)

Sets a vector in the list of vectors.

Parameters
[in]ia given index.
[in]namename of the underlying vector.

Definition at line 392 of file HeterogeneousCollection.cxx.

◆ SetVector() [1/6]

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::SetVector ( int  i,
const Vector< double, VectFull, Allocator< double > > &  vector 
)

Sets a vector in the list of vectors.

Parameters
[in]ia given index.
[in]vectorvector to be appended.

Definition at line 283 of file HeterogeneousCollection.cxx.

◆ SetVector() [2/6]

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::SetVector ( int  i,
const Vector< double, VectSparse, Allocator< double > > &  vector 
)

Sets a vector in the list of vectors.

Parameters
[in]ia given index.
[in]vectorvector to be appended.

Definition at line 319 of file HeterogeneousCollection.cxx.

◆ SetVector() [3/6]

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::SetVector ( int  i,
const Vector< float, VectFull, Allocator< float > > &  vector 
)

Sets a vector in the list of vectors.

Parameters
[in]ia given index.
[in]vectorvector to be appended.

Definition at line 212 of file HeterogeneousCollection.cxx.

◆ SetVector() [4/6]

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::SetVector ( int  i,
const Vector< float, VectSparse, Allocator< float > > &  vector 
)

Sets a vector in the list of vectors.

Parameters
[in]ia given index.
[in]vectorvector to be appended.

Definition at line 247 of file HeterogeneousCollection.cxx.

◆ SetVector() [5/6]

template<class T , template< class U > class Allocator>
template<class T0 , class Storage0 , class Allocator0 >
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::SetVector ( int  i,
const Vector< T0, Storage0, Allocator0 > &  vector,
string  name 
)

Sets a vector in the list of vectors.

Parameters
[in]iindex of the vector to be set.
[in]vectornew value of the vector.
[in]namenew name of the vector.

Definition at line 357 of file HeterogeneousCollection.cxx.

◆ SetVector() [6/6]

template<class T , template< class U > class Allocator>
template<class T0 , class Storage0 , class Allocator0 >
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::SetVector ( string  name,
const Vector< T0, Storage0, Allocator0 > &  vector 
)

Sets a vector in the list of vectors.

Parameters
[in]namename of the vector to be set.
[in]vectornew value of the vector.

Definition at line 373 of file HeterogeneousCollection.cxx.

◆ Write() [1/2]

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::Write ( ostream &  FileStream,
bool  with_size = true 
) const

Writes the vector in a file stream.

The length of the vector (integer) and all elements of the vector are stored in binary format.

Parameters
FileStreamfile stream.
with_sizeif set to 'false', the length of the vector is not saved.

Definition at line 729 of file HeterogeneousCollection.cxx.

◆ Write() [2/2]

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::Write ( string  FileName,
bool  with_size = true 
) const

Writes the inner vectors in a file.

The length of the vector (integer) and all elements of the vector are stored in binary format.

Parameters
FileNamefile name.
with_sizeif set to 'false', the length of the vector is not saved.

Definition at line 701 of file HeterogeneousCollection.cxx.

◆ WriteText() [1/2]

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::WriteText ( ostream &  FileStream) const

Writes the vector in a file stream.

All elements of the vector are stored in text format. The length is not stored.

Parameters
FileStreamfile stream.

Definition at line 812 of file HeterogeneousCollection.cxx.

◆ WriteText() [2/2]

template<class T , template< class U > class Allocator>
void Seldon::Vector< FloatDouble, DenseSparseCollection, Allocator< T > >::WriteText ( string  FileName) const

Writes the vector in a file.

All elements of the vector are stored in text format. The length is not stored.

Parameters
FileNamefile name.

Definition at line 783 of file HeterogeneousCollection.cxx.


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