OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
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 More...
 
 Vector (Vector< T > &&v)
 stub copy constructor More...
 
 Vector (size_t n)
 stub constructor from number of rows More...
 
 Vector ()
 stub default constructor
 
 Vector (size_t n, size_t n_row_local)
 stub constructor More...
 
void resize (size_t row, size_t row_n)
 stub resize More...
 
void insert (size_t i, T val)
 stub insert More...
 
T & insert (size_t i)
 stub insert More...
 
const T & insert (size_t i) const
 stub insert More...
 
const T & operator() (size_t i) const
 stub More...
 
T & operator() (size_t i)
 stub More...
 
void scatter ()
 scatter More...
 
void fromFile (std::string file)
 fromFile More...
 
Vector< T > & operator= (const Vector< T > &v)
 stub operator= More...
 
Vector< T > & operator= (Vector< T > &&v)
 stub operator= More...
 
int & getVec ()
 stub getVec More...
 

Private Attributes

stub
 stub
 
int stub_i
 stub
 

Constructor & Destructor Documentation

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.

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.

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.

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

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

scatter

Definition at line 144 of file Vector.hpp.


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