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 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.

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_LAPACK.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_LAPACK.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_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 34 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 49 of file Sacado_Fad_BLASImp.hpp.

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

Definition at line 64 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 83 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 97 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 142 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 228 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 239 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 253 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 267 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 297 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 358 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 423 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 441 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 471 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 504 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 514 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 531 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 548 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 572 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 583 of file Sacado_Fad_BLASImp.hpp.

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

Definition at line 85 of file Sacado_Fad_LAPACKImp.hpp.

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

Definition at line 92 of file Sacado_Fad_LAPACKImp.hpp.

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

Definition at line 99 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 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
mutableprotected

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
mutableprotected

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: