Sacado Package Browser (Single Doxygen Collection) Version of the Day
Public Member Functions | Protected Attributes | Private Types
Sacado::Fad::ArrayTraits< OrdinalType, FadType > Class Template Reference

#include <Sacado_Fad_BLAS.hpp>

List of all members.

Public Member Functions

 ArrayTraits (bool use_dynamic=true, OrdinalType workspace_size=0)
 ArrayTraits (const ArrayTraits &a)
 ~ArrayTraits ()
void unpack (const FadType &a, OrdinalType &n_dot, ValueType &val, const ValueType *&dot) const
void unpack (const FadType *a, OrdinalType n, OrdinalType inc, OrdinalType &n_dot, OrdinalType &inc_val, OrdinalType &inc_dot, const ValueType *&val, const ValueType *&dot) const
void unpack (const FadType *A, OrdinalType m, OrdinalType n, OrdinalType lda, OrdinalType &n_dot, OrdinalType &lda_val, OrdinalType &lda_dot, const ValueType *&val, const ValueType *&dot) const
void unpack (const ValueType &a, OrdinalType &n_dot, ValueType &val, const ValueType *&dot) const
void unpack (const ValueType *a, OrdinalType n, OrdinalType inc, OrdinalType &n_dot, OrdinalType &inc_val, OrdinalType &inc_dot, const ValueType *&val, const ValueType *&dot) const
void unpack (const ValueType *A, OrdinalType m, OrdinalType n, OrdinalType lda, OrdinalType &n_dot, OrdinalType &lda_val, OrdinalType &lda_dot, const ValueType *&val, const ValueType *&dot) const
void unpack (const ScalarType &a, OrdinalType &n_dot, ScalarType &val, const ScalarType *&dot) const
void unpack (const ScalarType *a, OrdinalType n, OrdinalType inc, OrdinalType &n_dot, OrdinalType &inc_val, OrdinalType &inc_dot, const ScalarType *&val, const ScalarType *&dot) const
void unpack (const ScalarType *A, OrdinalType m, OrdinalType n, OrdinalType lda, OrdinalType &n_dot, OrdinalType &lda_val, OrdinalType &lda_dot, const ScalarType *&val, const ScalarType *&dot) const
void unpack (FadType &a, OrdinalType &n_dot, OrdinalType &final_n_dot, ValueType &val, ValueType *&dot) const
void unpack (FadType *a, OrdinalType n, OrdinalType inc, OrdinalType &n_dot, OrdinalType &final_n_dot, OrdinalType &inc_val, OrdinalType &inc_dot, ValueType *&val, ValueType *&dot) const
void unpack (FadType *A, OrdinalType m, OrdinalType n, OrdinalType lda, OrdinalType &n_dot, OrdinalType &final_n_dot, OrdinalType &lda_val, OrdinalType &lda_dot, ValueType *&val, ValueType *&dot) const
void pack (FadType &a, OrdinalType n_dot, const ValueType &val, const ValueType *dot) const
void pack (FadType *a, OrdinalType n, OrdinalType inc, OrdinalType n_dot, OrdinalType inc_val, OrdinalType inc_dot, const ValueType *val, const ValueType *dot) const
void pack (FadType *A, OrdinalType m, OrdinalType n, OrdinalType lda, OrdinalType n_dot, OrdinalType lda_val, OrdinalType lda_dot, const ValueType *val, const ValueType *dot) const
void free (const FadType &a, OrdinalType n_dot, const ValueType *dot) const
void free (const FadType *a, OrdinalType n, OrdinalType n_dot, OrdinalType inc_val, OrdinalType inc_dot, const ValueType *val, const ValueType *dot) const
void free (const FadType *A, OrdinalType m, OrdinalType n, OrdinalType n_dot, OrdinalType lda_val, OrdinalType lda_dot, const ValueType *val, const ValueType *dot) const
void free (const ValueType &a, OrdinalType n_dot, const ValueType *dot) const
void free (const ValueType *a, OrdinalType n, OrdinalType n_dot, OrdinalType inc_val, OrdinalType inc_dot, const ValueType *val, const ValueType *dot) const
void free (const ValueType *A, OrdinalType m, OrdinalType n, OrdinalType n_dot, OrdinalType lda_val, OrdinalType lda_dot, const ValueType *val, const ValueType *dot) const
void free (const ScalarType &a, OrdinalType n_dot, const ScalarType *dot) const
void free (const ScalarType *a, OrdinalType n, OrdinalType n_dot, OrdinalType inc_val, OrdinalType inc_dot, const ScalarType *val, const ScalarType *dot) const
void free (const ScalarType *A, OrdinalType m, OrdinalType n, OrdinalType n_dot, OrdinalType lda_val, OrdinalType lda_dot, const ScalarType *val, const ScalarType *dot) const
ValueTypeallocate_array (OrdinalType size) const
void free_array (const ValueType *ptr, OrdinalType size) const
bool is_array_contiguous (const FadType *a, OrdinalType n, OrdinalType n_dot) const

Protected Attributes

bool use_dynamic
 Use dynamic memory allocation.
OrdinalType workspace_size
 Size of static workspace.
ValueTypeworkspace
 Workspace for holding contiguous values/derivatives.
ValueTypeworkspace_pointer
 Pointer to current free entry in workspace.

Private Types

typedef Sacado::ValueType
< FadType >::type 
ValueType
typedef Sacado::ScalarType
< FadType >::type 
scalar_type
typedef Sacado::dummy
< ValueType, scalar_type >
::type 
ScalarType

Detailed Description

template<typename OrdinalType, typename FadType>
class Sacado::Fad::ArrayTraits< OrdinalType, FadType >

Definition at line 45 of file Sacado_Fad_BLAS.hpp.


Member Typedef Documentation

template<typename OrdinalType , typename FadType >
typedef Sacado::ValueType<FadType>::type Sacado::Fad::ArrayTraits< OrdinalType, FadType >::ValueType [private]

Definition at line 47 of file Sacado_Fad_BLAS.hpp.

template<typename OrdinalType , typename FadType >
typedef Sacado::ScalarType<FadType>::type Sacado::Fad::ArrayTraits< OrdinalType, FadType >::scalar_type [private]

Definition at line 48 of file Sacado_Fad_BLAS.hpp.

template<typename OrdinalType , typename FadType >
typedef Sacado::dummy<ValueType,scalar_type>::type Sacado::Fad::ArrayTraits< OrdinalType, FadType >::ScalarType [private]

Definition at line 49 of file Sacado_Fad_BLAS.hpp.


Constructor & Destructor Documentation

template<typename OrdinalType , typename FadType >
Sacado::Fad::ArrayTraits< OrdinalType, FadType >::ArrayTraits ( bool  use_dynamic = true,
OrdinalType  workspace_size = 0 
)

Definition at line 36 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
Sacado::Fad::ArrayTraits< OrdinalType, FadType >::ArrayTraits ( const ArrayTraits< OrdinalType, FadType > &  a)

Definition at line 51 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
Sacado::Fad::ArrayTraits< OrdinalType, FadType >::~ArrayTraits ( )

Definition at line 66 of file Sacado_Fad_BLASImp.hpp.


Member Function Documentation

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::unpack ( const FadType a,
OrdinalType &  n_dot,
ValueType val,
const ValueType *&  dot 
) const

Definition at line 85 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::unpack ( const FadType a,
OrdinalType  n,
OrdinalType  inc,
OrdinalType &  n_dot,
OrdinalType &  inc_val,
OrdinalType &  inc_dot,
const ValueType *&  val,
const ValueType *&  dot 
) const

Definition at line 99 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::unpack ( const FadType A,
OrdinalType  m,
OrdinalType  n,
OrdinalType  lda,
OrdinalType &  n_dot,
OrdinalType &  lda_val,
OrdinalType &  lda_dot,
const ValueType *&  val,
const ValueType *&  dot 
) const

Definition at line 144 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::unpack ( const ValueType a,
OrdinalType &  n_dot,
ValueType val,
const ValueType *&  dot 
) const

Definition at line 191 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::unpack ( const ValueType a,
OrdinalType  n,
OrdinalType  inc,
OrdinalType &  n_dot,
OrdinalType &  inc_val,
OrdinalType &  inc_dot,
const ValueType *&  val,
const ValueType *&  dot 
) const

Definition at line 202 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::unpack ( const ValueType A,
OrdinalType  m,
OrdinalType  n,
OrdinalType  lda,
OrdinalType &  n_dot,
OrdinalType &  lda_val,
OrdinalType &  lda_dot,
const ValueType *&  val,
const ValueType *&  dot 
) const

Definition at line 216 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::unpack ( const ScalarType a,
OrdinalType &  n_dot,
ScalarType val,
const ScalarType *&  dot 
) const

Definition at line 230 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::unpack ( const ScalarType a,
OrdinalType  n,
OrdinalType  inc,
OrdinalType &  n_dot,
OrdinalType &  inc_val,
OrdinalType &  inc_dot,
const ScalarType *&  val,
const ScalarType *&  dot 
) const

Definition at line 241 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::unpack ( const ScalarType A,
OrdinalType  m,
OrdinalType  n,
OrdinalType  lda,
OrdinalType &  n_dot,
OrdinalType &  lda_val,
OrdinalType &  lda_dot,
const ScalarType *&  val,
const ScalarType *&  dot 
) const

Definition at line 255 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::unpack ( FadType a,
OrdinalType &  n_dot,
OrdinalType &  final_n_dot,
ValueType val,
ValueType *&  dot 
) const

Definition at line 269 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::unpack ( FadType a,
OrdinalType  n,
OrdinalType  inc,
OrdinalType &  n_dot,
OrdinalType &  final_n_dot,
OrdinalType &  inc_val,
OrdinalType &  inc_dot,
ValueType *&  val,
ValueType *&  dot 
) const

Definition at line 299 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::unpack ( FadType A,
OrdinalType  m,
OrdinalType  n,
OrdinalType  lda,
OrdinalType &  n_dot,
OrdinalType &  final_n_dot,
OrdinalType &  lda_val,
OrdinalType &  lda_dot,
ValueType *&  val,
ValueType *&  dot 
) const

Definition at line 360 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::pack ( FadType a,
OrdinalType  n_dot,
const ValueType val,
const ValueType dot 
) const

Definition at line 425 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::pack ( FadType a,
OrdinalType  n,
OrdinalType  inc,
OrdinalType  n_dot,
OrdinalType  inc_val,
OrdinalType  inc_dot,
const ValueType val,
const ValueType dot 
) const

Definition at line 443 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::pack ( FadType A,
OrdinalType  m,
OrdinalType  n,
OrdinalType  lda,
OrdinalType  n_dot,
OrdinalType  lda_val,
OrdinalType  lda_dot,
const ValueType val,
const ValueType dot 
) const

Definition at line 473 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::free ( const FadType a,
OrdinalType  n_dot,
const ValueType dot 
) const

Definition at line 506 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::free ( const FadType a,
OrdinalType  n,
OrdinalType  n_dot,
OrdinalType  inc_val,
OrdinalType  inc_dot,
const ValueType val,
const ValueType dot 
) const

Definition at line 516 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::free ( const FadType A,
OrdinalType  m,
OrdinalType  n,
OrdinalType  n_dot,
OrdinalType  lda_val,
OrdinalType  lda_dot,
const ValueType val,
const ValueType dot 
) const

Definition at line 533 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::free ( const ValueType a,
OrdinalType  n_dot,
const ValueType dot 
) const [inline]

Definition at line 135 of file Sacado_Fad_BLAS.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::free ( const ValueType a,
OrdinalType  n,
OrdinalType  n_dot,
OrdinalType  inc_val,
OrdinalType  inc_dot,
const ValueType val,
const ValueType dot 
) const [inline]

Definition at line 138 of file Sacado_Fad_BLAS.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::free ( const ValueType A,
OrdinalType  m,
OrdinalType  n,
OrdinalType  n_dot,
OrdinalType  lda_val,
OrdinalType  lda_dot,
const ValueType val,
const ValueType dot 
) const [inline]

Definition at line 142 of file Sacado_Fad_BLAS.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::free ( const ScalarType a,
OrdinalType  n_dot,
const ScalarType dot 
) const [inline]

Definition at line 146 of file Sacado_Fad_BLAS.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::free ( const ScalarType a,
OrdinalType  n,
OrdinalType  n_dot,
OrdinalType  inc_val,
OrdinalType  inc_dot,
const ScalarType val,
const ScalarType dot 
) const [inline]

Definition at line 149 of file Sacado_Fad_BLAS.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::free ( const ScalarType A,
OrdinalType  m,
OrdinalType  n,
OrdinalType  n_dot,
OrdinalType  lda_val,
OrdinalType  lda_dot,
const ScalarType val,
const ScalarType dot 
) const [inline]

Definition at line 153 of file Sacado_Fad_BLAS.hpp.

template<typename OrdinalType , typename FadType >
Sacado::Fad::ArrayTraits< OrdinalType, FadType >::ValueType * Sacado::Fad::ArrayTraits< OrdinalType, FadType >::allocate_array ( OrdinalType  size) const

Definition at line 550 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::free_array ( const ValueType ptr,
OrdinalType  size 
) const

Definition at line 574 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType , typename FadType >
bool Sacado::Fad::ArrayTraits< OrdinalType, FadType >::is_array_contiguous ( const FadType a,
OrdinalType  n,
OrdinalType  n_dot 
) const

Definition at line 585 of file Sacado_Fad_BLASImp.hpp.


Member Data Documentation

template<typename OrdinalType , typename FadType >
bool Sacado::Fad::ArrayTraits< OrdinalType, FadType >::use_dynamic [protected]

Use dynamic memory allocation.

Definition at line 167 of file Sacado_Fad_BLAS.hpp.

template<typename OrdinalType , typename FadType >
OrdinalType Sacado::Fad::ArrayTraits< OrdinalType, FadType >::workspace_size [protected]

Size of static workspace.

Definition at line 170 of file Sacado_Fad_BLAS.hpp.

template<typename OrdinalType , typename FadType >
ValueType* Sacado::Fad::ArrayTraits< OrdinalType, FadType >::workspace [mutable, protected]

Workspace for holding contiguous values/derivatives.

Definition at line 173 of file Sacado_Fad_BLAS.hpp.

template<typename OrdinalType , typename FadType >
ValueType* Sacado::Fad::ArrayTraits< OrdinalType, FadType >::workspace_pointer [mutable, protected]

Pointer to current free entry in workspace.

Definition at line 176 of file Sacado_Fad_BLAS.hpp.


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