![]() |
MechSys
1.0
Computing library for simulations in continuum and discrete mechanics
|
#include <vector.h>
Public Member Functions | |
Vector () | |
Default constructor. | |
Vector (int Size) | |
Constructor setting the size. | |
Vector (Vector< Value_T > const &Other) | |
Copy constructor. | |
~Vector () | |
int | Size () const |
Return the size of this vector. | |
Value_T const * | GetPtr () const |
Return a pointer to the values, that cannot be modified, of this vector. | |
Value_T * | GetPtr () |
Return a pointer to the values of this vector. | |
void | Resize (int Size) |
Resize this vector AND fill with ZERO values. | |
void | change_dim (int Size) |
void | SetValues (Value_T Value) |
Set all values equal to a given Value. | |
void | operator= (Vector< Value_T > const &R) |
Assignment operator. | |
void | operator+= (Vector< Value_T > const &R) |
Plus-assignment operator. | |
void | operator-= (Vector< Value_T > const &R) |
Minus-assignment operator. | |
void | operator/= (Value_T const &Scalar) |
Division operator. | |
void | operator*= (Value_T const &Scalar) |
Multiplication operator. | |
Value_T & | operator() (int i) |
Write i value of vector. | |
const Value_T & | operator() (int i) const |
Read i value of vector. | |
Public Attributes | |
Value_T * | data |
Dense vector. Examples:
LinAlg::Vector< Value_T >::Vector | ( | ) | [inline] |
Default constructor.
LinAlg::Vector< Value_T >::Vector | ( | int | Size | ) | [inline] |
Constructor setting the size.
LinAlg::Vector< Value_T >::Vector | ( | Vector< Value_T > const & | Other | ) | [inline] |
Copy constructor.
LinAlg::Vector< Value_T >::~Vector | ( | ) | [inline] |
Destructor.
void LinAlg::Vector< Value_T >::change_dim | ( | int | Size | ) | [inline] |
const Value_T * LinAlg::Vector< Value_T >::GetPtr | ( | ) | const [inline] |
Return a pointer to the values, that cannot be modified, of this vector.
Value_T * LinAlg::Vector< Value_T >::GetPtr | ( | ) | [inline] |
Return a pointer to the values of this vector.
Value_T & LinAlg::Vector< Value_T >::operator() | ( | int | i | ) | [inline] |
Write i value of vector.
const Value_T & LinAlg::Vector< Value_T >::operator() | ( | int | i | ) | const [inline] |
Read i value of vector.
void LinAlg::Vector< Value_T >::operator*= | ( | Value_T const & | Scalar | ) | [inline] |
Multiplication operator.
void LinAlg::Vector< Value_T >::operator+= | ( | Vector< Value_T > const & | R | ) | [inline] |
Plus-assignment operator.
void LinAlg::Vector< Value_T >::operator-= | ( | Vector< Value_T > const & | R | ) | [inline] |
Minus-assignment operator.
void LinAlg::Vector< Value_T >::operator/= | ( | Value_T const & | Scalar | ) | [inline] |
Division operator.
void LinAlg::Vector< Value_T >::operator= | ( | Vector< Value_T > const & | R | ) | [inline] |
Assignment operator.
void LinAlg::Vector< Value_T >::Resize | ( | int | Size | ) | [inline] |
Resize this vector AND fill with ZERO values.
void LinAlg::Vector< Value_T >::SetValues | ( | Value_T | Value | ) | [inline] |
Set all values equal to a given Value.
int LinAlg::Vector< Value_T >::Size | ( | ) | const [inline] |
Return the size of this vector.
Value_T* LinAlg::Vector< Value_T >::data |