Intrepid
Public Member Functions | Static Public Attributes | List of all members
Intrepid::Vector< T > Class Template Reference

#include <Intrepid_MiniTensor_Definitions.h>

Inheritance diagram for Intrepid::Vector< T >:
Intrepid::TensorBase< T >

Public Member Functions

 Vector ()
 
 Vector (Index const dimension)
 
 Vector (Index const dimension, ComponentValue value)
 
 Vector (Index const dimension, T const &s)
 
 Vector (T const &s0, T const &s1)
 
 Vector (T const &s0, T const &s1, T const &s2)
 
 Vector (Index const dimension, T const *data_ptr)
 
 Vector (Vector< T > const &v)
 
 ~Vector ()
 
T const & operator() (Index const i) const
 
T & operator() (Index const i)
 
Index get_order () const
 
- Public Member Functions inherited from Intrepid::TensorBase< T >
 TensorBase ()
 
 TensorBase (Index const dimension, Index const order)
 
 TensorBase (Index const dimension, Index const order, ComponentValue value)
 
 TensorBase (Index const dimension, Index const order, T const &s)
 
 TensorBase (Index const dimension, Index const order, T const *data_ptr)
 
 TensorBase (TensorBase< T > const &X)
 
virtual ~TensorBase ()
 
T const & operator[] (Index const i) const
 
T & operator[] (Index const i)
 
Index get_dimension () const
 
void set_dimension (Index const dimension)
 
Index get_number_components () const
 
void fill (ComponentValue value)
 
void fill (T const *data_ptr)
 
TensorBase< T > & operator= (TensorBase< T > const &X)
 
TensorBase< T > & operator+= (TensorBase< T > const &X)
 
TensorBase< T > & operator-= (TensorBase< T > const &X)
 
void clear ()
 

Static Public Attributes

static Index const order = 1U
 

Additional Inherited Members

- Public Types inherited from Intrepid::TensorBase< T >
typedef T type
 
- Protected Member Functions inherited from Intrepid::TensorBase< T >
void set_number_components (Index const number_components)
 
- Protected Attributes inherited from Intrepid::TensorBase< T >
Index dimension_
 
MiniTensor::StorageRCPArray< T > components_
 

Detailed Description

template<typename T>
class Intrepid::Vector< T >

The classes

Vector class.

Definition at line 75 of file Intrepid_MiniTensor_Definitions.h.

Constructor & Destructor Documentation

template<typename T >
Intrepid::Vector< T >::Vector ( )
inline

Default constructor

Definition at line 53 of file Intrepid_MiniTensor_Vector.i.h.

template<typename T >
Intrepid::Vector< T >::Vector ( Index const  dimension)
inlineexplicit

Construction that initializes to NaNs

Parameters
dimensionthe space dimension

Definition at line 64 of file Intrepid_MiniTensor_Vector.i.h.

template<typename T >
Intrepid::Vector< T >::Vector ( Index const  dimension,
ComponentValue  value 
)
inlineexplicit

Create vector from a specified value

Parameters
dimensionthe space dimension
valueall components are set equal to this

Create vector from a specified value

Definition at line 75 of file Intrepid_MiniTensor_Vector.i.h.

template<typename T>
Intrepid::Vector< T >::Vector ( Index const  dimension,
T const &  s 
)
inlineexplicit

Create vector from a scalar

Parameters
dimensionthe space dimension
sall components are set equal to this value

Definition at line 86 of file Intrepid_MiniTensor_Vector.i.h.

template<typename T>
Intrepid::Vector< T >::Vector ( T const &  s0,
T const &  s1 
)
inline

Create vector specifying components

Parameters
s0s1 are the vector components in the R^2 canonical basis

Definition at line 97 of file Intrepid_MiniTensor_Vector.i.h.

References Intrepid::TensorBase< T >::set_dimension().

template<typename T>
Intrepid::Vector< T >::Vector ( T const &  s0,
T const &  s1,
T const &  s2 
)
inline

Create vector specifying components the vector components in the R^3 canonical basis

Parameters
s0s1 s2 are the vector components in the R^3 canonical basis

Definition at line 115 of file Intrepid_MiniTensor_Vector.i.h.

References Intrepid::TensorBase< T >::set_dimension().

template<typename T>
Intrepid::Vector< T >::Vector ( Index const  dimension,
T const *  data_ptr 
)
inline

Create vector from array.

Parameters
dimensionthe space dimension
data_ptrpointer into the array

Definition at line 134 of file Intrepid_MiniTensor_Vector.i.h.

template<typename T>
Intrepid::Vector< T >::Vector ( Vector< T > const &  v)
inline

Copy constructor

Definition at line 145 of file Intrepid_MiniTensor_Vector.i.h.

template<typename T >
Intrepid::Vector< T >::~Vector ( )
inline

Simple destructor

Definition at line 156 of file Intrepid_MiniTensor_Vector.i.h.

Member Function Documentation

template<typename T>
Index Intrepid::Vector< T >::get_order ( ) const
inlinevirtual

Vector order

Implements Intrepid::TensorBase< T >.

Definition at line 147 of file Intrepid_MiniTensor_Vector.h.

template<typename T >
T const & Intrepid::Vector< T >::operator() ( Index const  i) const
inline

Indexing for constant vector

Parameters
ithe index

Definition at line 167 of file Intrepid_MiniTensor_Vector.i.h.

template<typename T >
T & Intrepid::Vector< T >::operator() ( Index const  i)
inline

Vector indexing

Parameters
ithe index

Definition at line 178 of file Intrepid_MiniTensor_Vector.i.h.

Member Data Documentation

template<typename T>
Index const Intrepid::Vector< T >::order = 1U
static

Order

Definition at line 69 of file Intrepid_MiniTensor_Vector.h.

Referenced by Intrepid::Vector< Index >::get_order().


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