OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
Vector< T, DEFAULT_VECTOR > Class Template Reference

Sparse Matrix implementation stub object when OpenFPM is compiled with no linear algebra support. More...

Detailed Description

template<typename T, unsigned int impl DEFAULT_VECTOR>
class Vector< T, DEFAULT_VECTOR >

Sparse Matrix implementation stub object when OpenFPM is compiled with no linear algebra support.

Definition at line 39 of file Vector.hpp.

#include <Vector.hpp>

Public Member Functions

 Vector (const Vector< T > &v)
 stub copy constructor
 
 Vector (Vector< T > &&v)
 stub copy constructor
 
 Vector (size_t n)
 stub constructor from number of rows
 
 Vector ()
 stub default constructor
 
 Vector (size_t n, size_t n_row_local)
 stub constructor
 
void resize (size_t row, size_t row_n)
 stub resize
 
void insert (size_t i, T val)
 stub insert
 
T & insert (size_t i)
 stub insert
 
const T & insert (size_t i) const
 stub insert
 
const T & operator() (size_t i) const
 stub
 
T & operator() (size_t i)
 stub
 
void scatter ()
 scatter
 
void fromFile (std::string file)
 fromFile
 
Vector< T > & operator= (const Vector< T > &v)
 stub operator=
 
Vector< T > & operator= (Vector< T > &&v)
 stub operator=
 
int & getVec ()
 stub getVec
 

Private Attributes

stub
 stub
 
int stub_i
 stub
 

Constructor & Destructor Documentation

◆ Vector() [1/5]

template<typename T , unsigned int impl DEFAULT_VECTOR>
Vector< T, DEFAULT_VECTOR >::Vector ( const Vector< T > &  v)
inline

stub copy constructor

Parameters
vstub

Definition at line 54 of file Vector.hpp.

◆ Vector() [2/5]

template<typename T , unsigned int impl DEFAULT_VECTOR>
Vector< T, DEFAULT_VECTOR >::Vector ( Vector< T > &&  v)
inline

stub copy constructor

Parameters
vvector to copy

Definition at line 63 of file Vector.hpp.

◆ Vector() [3/5]

template<typename T , unsigned int impl DEFAULT_VECTOR>
Vector< T, DEFAULT_VECTOR >::Vector ( size_t  n)
inline

stub constructor from number of rows

Parameters
nstub

Definition at line 72 of file Vector.hpp.

◆ Vector() [4/5]

template<typename T , unsigned int impl DEFAULT_VECTOR>
Vector< T, DEFAULT_VECTOR >::Vector ( )
inline

stub default constructor

Definition at line 77 of file Vector.hpp.

◆ Vector() [5/5]

template<typename T , unsigned int impl DEFAULT_VECTOR>
Vector< T, DEFAULT_VECTOR >::Vector ( size_t  n,
size_t  n_row_local 
)
inline

stub constructor

Parameters
nglobal number of row
n_row_locallocal number of rows

Definition at line 87 of file Vector.hpp.

Member Function Documentation

◆ fromFile()

template<typename T , unsigned int impl DEFAULT_VECTOR>
void Vector< T, DEFAULT_VECTOR >::fromFile ( std::string  file)
inline

fromFile

Parameters
filestub

Definition at line 151 of file Vector.hpp.

◆ getVec()

template<typename T , unsigned int impl DEFAULT_VECTOR>
int & Vector< T, DEFAULT_VECTOR >::getVec ( )
inline

stub getVec

Returns
stub

Definition at line 177 of file Vector.hpp.

◆ insert() [1/3]

template<typename T , unsigned int impl DEFAULT_VECTOR>
T & Vector< T, DEFAULT_VECTOR >::insert ( size_t  i)
inline

stub insert

Parameters
istub
Returns
stub

Definition at line 114 of file Vector.hpp.

◆ insert() [2/3]

template<typename T , unsigned int impl DEFAULT_VECTOR>
const T & Vector< T, DEFAULT_VECTOR >::insert ( size_t  i) const
inline

stub insert

Parameters
istub

Definition at line 121 of file Vector.hpp.

◆ insert() [3/3]

template<typename T , unsigned int impl DEFAULT_VECTOR>
void Vector< T, DEFAULT_VECTOR >::insert ( size_t  i,
val 
)
inline

stub insert

Parameters
istub
valstub

Definition at line 105 of file Vector.hpp.

◆ operator()() [1/2]

template<typename T , unsigned int impl DEFAULT_VECTOR>
T & Vector< T, DEFAULT_VECTOR >::operator() ( size_t  i)
inline

stub

Parameters
istub
Returns
stub

Definition at line 139 of file Vector.hpp.

◆ operator()() [2/2]

template<typename T , unsigned int impl DEFAULT_VECTOR>
const T & Vector< T, DEFAULT_VECTOR >::operator() ( size_t  i) const
inline

stub

Parameters
istub
Returns
stub

Definition at line 130 of file Vector.hpp.

◆ operator=() [1/2]

template<typename T , unsigned int impl DEFAULT_VECTOR>
Vector< T > & Vector< T, DEFAULT_VECTOR >::operator= ( const Vector< T > &  v)
inline

stub operator=

Parameters
vstub
Returns
itself

Definition at line 161 of file Vector.hpp.

◆ operator=() [2/2]

template<typename T , unsigned int impl DEFAULT_VECTOR>
Vector< T > & Vector< T, DEFAULT_VECTOR >::operator= ( Vector< T > &&  v)
inline

stub operator=

Parameters
vstub
Returns
itself

Definition at line 170 of file Vector.hpp.

◆ resize()

template<typename T , unsigned int impl DEFAULT_VECTOR>
void Vector< T, DEFAULT_VECTOR >::resize ( size_t  row,
size_t  row_n 
)
inline

stub resize

Parameters
rowstub
row_nstub

Definition at line 97 of file Vector.hpp.

◆ scatter()

template<typename T , unsigned int impl DEFAULT_VECTOR>
void Vector< T, DEFAULT_VECTOR >::scatter ( )
inline

scatter

Definition at line 144 of file Vector.hpp.

Field Documentation

◆ stub

template<typename T , unsigned int impl DEFAULT_VECTOR>
T Vector< T, DEFAULT_VECTOR >::stub
private

stub

Definition at line 42 of file Vector.hpp.

◆ stub_i

template<typename T , unsigned int impl DEFAULT_VECTOR>
int Vector< T, DEFAULT_VECTOR >::stub_i
private

stub

Definition at line 45 of file Vector.hpp.


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