MechSys  1.0
Computing library for simulations in continuum and discrete mechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
LinAlg::Vector< Value_T > Class Template Reference

#include <vector.h>

List of all members.

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

Detailed Description

template<typename Value_T>
class LinAlg::Vector< Value_T >

Dense vector. Examples:


Constructor & Destructor Documentation

template<typename Value_T>
LinAlg::Vector< Value_T >::Vector ( ) [inline]

Default constructor.

template<typename Value_T >
LinAlg::Vector< Value_T >::Vector ( int  Size) [inline]

Constructor setting the size.

template<typename Value_T>
LinAlg::Vector< Value_T >::Vector ( Vector< Value_T > const &  Other) [inline]

Copy constructor.

template<typename Value_T>
LinAlg::Vector< Value_T >::~Vector ( ) [inline]

Destructor.


Member Function Documentation

template<typename Value_T>
void LinAlg::Vector< Value_T >::change_dim ( int  Size) [inline]
template<typename Value_T >
const Value_T * LinAlg::Vector< Value_T >::GetPtr ( ) const [inline]

Return a pointer to the values, that cannot be modified, of this vector.

template<typename Value_T >
Value_T * LinAlg::Vector< Value_T >::GetPtr ( ) [inline]

Return a pointer to the values of this vector.

template<typename Value_T >
Value_T & LinAlg::Vector< Value_T >::operator() ( int  i) [inline]

Write i value of vector.

template<typename Value_T >
const Value_T & LinAlg::Vector< Value_T >::operator() ( int  i) const [inline]

Read i value of vector.

template<typename Value_T>
void LinAlg::Vector< Value_T >::operator*= ( Value_T const &  Scalar) [inline]

Multiplication operator.

template<typename Value_T>
void LinAlg::Vector< Value_T >::operator+= ( Vector< Value_T > const &  R) [inline]

Plus-assignment operator.

template<typename Value_T>
void LinAlg::Vector< Value_T >::operator-= ( Vector< Value_T > const &  R) [inline]

Minus-assignment operator.

template<typename Value_T>
void LinAlg::Vector< Value_T >::operator/= ( Value_T const &  Scalar) [inline]

Division operator.

template<typename Value_T>
void LinAlg::Vector< Value_T >::operator= ( Vector< Value_T > const &  R) [inline]

Assignment operator.

template<typename Value_T >
void LinAlg::Vector< Value_T >::Resize ( int  Size) [inline]

Resize this vector AND fill with ZERO values.

template<typename Value_T>
void LinAlg::Vector< Value_T >::SetValues ( Value_T  Value) [inline]

Set all values equal to a given Value.

template<typename Value_T >
int LinAlg::Vector< Value_T >::Size ( ) const [inline]

Return the size of this vector.


Member Data Documentation

template<typename Value_T>
Value_T* LinAlg::Vector< Value_T >::data

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines