10 #ifndef SACADO_FAD_LAPACK_HPP
11 #define SACADO_FAD_LAPACK_HPP
22 template <
typename OrdinalType,
typename FadType>
49 OrdinalType n_dot)
const;
70 template <
typename OrdinalType,
typename FadType>
85 bool use_dynamic =
true,
86 OrdinalType static_workspace_size = 0);
98 void GESV(
const OrdinalType n,
const OrdinalType nrhs,
FadType*
A,
const OrdinalType lda,
99 OrdinalType* IPIV,
FadType*
B,
const OrdinalType ldb, OrdinalType* info)
const;
125 template <
typename OrdinalType,
typename ScalarType>
132 #endif // SACADO_FAD_LAPACK_HPP
bool is_array_contiguous(const FadType *a, OrdinalType n, OrdinalType n_dot) const
Teuchos::ScalarTraits< FadType >::magnitudeType MagnitudeType
bool use_dynamic
Use dynamic memory allocation.
ValueType * allocate_array(OrdinalType size) const
virtual ~Fad_LAPACK()
Destructor.
Sacado::dummy< ValueType, scalar_type >::type ScalarType
Sacado::ValueType< FadType >::type ValueType
void GESV(const OrdinalType n, const OrdinalType nrhs, FadType *A, const OrdinalType lda, OrdinalType *IPIV, FadType *B, const OrdinalType ldb, OrdinalType *info) const
Computes the solution to a real system of linear equations.
ValueType * workspace_pointer
Pointer to current free entry in workspace.
Fad specializations for Teuchos::LAPACK wrappers.
OrdinalType workspace_size
Size of static workspace.
GeneralFad< DynamicStorage< T > > DFad
Sacado::dummy< ValueType, scalar_type >::type ScalarType
ArrayTraits(bool use_dynamic=true, OrdinalType workspace_size=0)
Teuchos::LAPACK< OrdinalType, FadType > LAPACKType
Fad_LAPACK(bool use_default_impl=true, bool use_dynamic=true, OrdinalType static_workspace_size=0)
Default constructor.
void Fad_GESV() const
Implementation of GESV.
void free_array(const ValueType *ptr, OrdinalType size) const
ValueType * workspace
Workspace for holding contiguous values/derivatives.
Sacado::ScalarType< FadType >::type scalar_type
Sacado::ScalarType< FadType >::type scalar_type
Sacado::ValueType< FadType >::type ValueType
bool use_default_impl
Use custom or default implementation.
ArrayTraits< OrdinalType, FadType > arrayTraits
ArrayTraits for packing/unpacking value/derivative arrays.
Teuchos::LAPACK< OrdinalType, ValueType > lapack
LAPACK for values.