Intrepid
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
Intrepid::Vector< T, N > Class Template Reference

#include <Intrepid_MiniTensor_Vector.h>

Inheritance diagram for Intrepid::Vector< T, N >:
Intrepid::TensorBase< T, vector_store< T, N >::type >

List of all members.

Public Types

typedef vector_store< T, N >::type Store

Public Member Functions

 Vector ()
 Vector (Index const dimension)
 Vector (ComponentValue const value)
 Vector (Index const dimension, ComponentValue const value)
 Vector (T const *data_ptr)
 Vector (Index const dimension, T const *data_ptr)
 Vector (Vector< T, N > const &v)
 Vector (T const &s0, T const &s1)
 Vector (T const &s0, T const &s1, T const &s2)
 ~Vector ()
T const & operator() (Index const i) const
T & operator() (Index const i)
Index get_dimension () const
void set_dimension (Index const dimension)

Static Public Member Functions

static Index get_order ()

Static Public Attributes

static Index const ORDER = 1
static bool const IS_DYNAMIC = N == DYNAMIC

Detailed Description

template<typename T, Index N = DYNAMIC>
class Intrepid::Vector< T, N >

Vector class.

Definition at line 64 of file Intrepid_MiniTensor_Vector.h.


Member Typedef Documentation

template<typename T, Index N = DYNAMIC>
typedef vector_store<T, N>::type Intrepid::Vector< T, N >::Store

Storage type

Definition at line 86 of file Intrepid_MiniTensor_Vector.h.


Constructor & Destructor Documentation

template<typename T , Index N>
Intrepid::Vector< T, N >::Vector ( ) [inline, explicit]

Construction that initializes to NaNs

Parameters:
dimensionthe space dimension

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

template<typename T , Index N>
Intrepid::Vector< T, N >::Vector ( ComponentValue const  value) [inline, explicit]

Create vector from a specified value

Parameters:
dimensionthe space dimension
valueall components are set equal to this

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

template<typename T , Index N>
Intrepid::Vector< T, N >::Vector ( Index const  dimension,
ComponentValue const  value 
) [inline, explicit]

Create vector from a specified value

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

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

Create vector from array.

Parameters:
dimensionthe space dimension
data_ptrpointer into the array

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

template<typename T, Index N>
Intrepid::Vector< T, N >::Vector ( Vector< T, N > const &  v) [inline]

Copy constructor

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

template<typename T, Index N>
Intrepid::Vector< T, N >::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 124 of file Intrepid_MiniTensor_Vector.i.h.

References Intrepid::Vector< T, N >::set_dimension().

template<typename T, Index N>
Intrepid::Vector< T, N >::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 142 of file Intrepid_MiniTensor_Vector.i.h.

References Intrepid::Vector< T, N >::set_dimension().

template<typename T , Index N>
Intrepid::Vector< T, N >::~Vector ( ) [inline]

Simple destructor

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


Member Function Documentation

template<typename T , Index N>
Index Intrepid::Vector< T, N >::get_dimension ( ) const [inline]
template<typename T, Index N = DYNAMIC>
static Index Intrepid::Vector< T, N >::get_order ( ) [inline, static]

Vector order

Definition at line 93 of file Intrepid_MiniTensor_Vector.h.

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

Indexing for constant vector

Parameters:
ithe index

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

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

Vector indexing

Parameters:
ithe index

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

template<typename T , Index N>
void Intrepid::Vector< T, N >::set_dimension ( Index const  dimension) [inline]
Parameters:
dimensionof vector

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

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

Referenced by Intrepid::Vector< T, N >::Vector().


Member Data Documentation

template<typename T, Index N = DYNAMIC>
bool const Intrepid::Vector< T, N >::IS_DYNAMIC = N == DYNAMIC [static]

Static or dynamic

Definition at line 80 of file Intrepid_MiniTensor_Vector.h.

template<typename T, Index N = DYNAMIC>
Index const Intrepid::Vector< T, N >::ORDER = 1 [static]

Order

Definition at line 73 of file Intrepid_MiniTensor_Vector.h.

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


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