Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Private Types | List of all members
Sacado::Fad::ArrayTraits< OrdinalType, FadType > Class Template Reference

#include <Sacado_Fad_BLAS.hpp>

Inheritance diagram for Sacado::Fad::ArrayTraits< OrdinalType, FadType >:
Inheritance graph
[legend]

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
 
 ArrayTraits (bool use_dynamic=true, OrdinalType workspace_size=0)
 
 ArrayTraits (const ArrayTraits &a)
 
 ~ArrayTraits ()
 
void unpack () const
 
void pack () const
 
void free () 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. More...
 
OrdinalType workspace_size
 Size of static workspace. More...
 
ValueTypeworkspace
 Workspace for holding contiguous values/derivatives. More...
 
ValueTypeworkspace_pointer
 Pointer to current free entry in workspace. More...
 

Private Types

typedef Sacado::ValueType
< FadType >::type 
ValueType
 
typedef Sacado::ScalarType
< FadType >::type 
scalar_type
 
typedef Sacado::dummy
< ValueType, scalar_type >
::type 
ScalarType
 
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 23 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 25 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 26 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 27 of file Sacado_Fad_BLAS.hpp.

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

Definition at line 25 of file Sacado_Fad_LAPACK.hpp.

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

Definition at line 26 of file Sacado_Fad_LAPACK.hpp.

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

Definition at line 27 of file Sacado_Fad_LAPACK.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 14 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 29 of file Sacado_Fad_BLASImp.hpp.

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

Definition at line 44 of file Sacado_Fad_BLASImp.hpp.

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

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 63 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 77 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 124 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
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
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
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 212 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 223 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 237 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 251 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 281 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 342 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 407 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 425 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 455 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 488 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 498 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 515 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 113 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 116 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 120 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 124 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 127 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 131 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 532 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 556 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 567 of file Sacado_Fad_BLASImp.hpp.

template<typename OrdinalType, typename FadType>
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::unpack ( ) const

Definition at line 63 of file Sacado_Fad_LAPACKImp.hpp.

template<typename OrdinalType, typename FadType>
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::pack ( ) const

Definition at line 70 of file Sacado_Fad_LAPACKImp.hpp.

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

Definition at line 77 of file Sacado_Fad_LAPACKImp.hpp.

template<typename OrdinalType, typename FadType>
ValueType* Sacado::Fad::ArrayTraits< OrdinalType, FadType >::allocate_array ( OrdinalType  size) const
template<typename OrdinalType, typename FadType>
void Sacado::Fad::ArrayTraits< OrdinalType, FadType >::free_array ( const ValueType ptr,
OrdinalType  size 
) const
template<typename OrdinalType, typename FadType>
bool Sacado::Fad::ArrayTraits< OrdinalType, FadType >::is_array_contiguous ( const FadType a,
OrdinalType  n,
OrdinalType  n_dot 
) const

Member Data Documentation

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

Use dynamic memory allocation.

Definition at line 145 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 148 of file Sacado_Fad_BLAS.hpp.

template<typename OrdinalType, typename FadType>
ValueType * Sacado::Fad::ArrayTraits< OrdinalType, FadType >::workspace
mutableprotected

Workspace for holding contiguous values/derivatives.

Definition at line 151 of file Sacado_Fad_BLAS.hpp.

template<typename OrdinalType, typename FadType>
ValueType * Sacado::Fad::ArrayTraits< OrdinalType, FadType >::workspace_pointer
mutableprotected

Pointer to current free entry in workspace.

Definition at line 154 of file Sacado_Fad_BLAS.hpp.


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