CppADCodeGen
HEAD
A C++ Algorithmic Differentiation Package with Source Code Generation
|
Public Member Functions | |
ArrayView () | |
ArrayView (pointer array, size_type n) | |
ArrayView (std::vector< value_type > &vector) | |
ArrayView (CppAD::vector< value_type > &vector) | |
template<std::size_t S> | |
ArrayView (std::array< value_type, S > &array) | |
ArrayView (std::valarray< value_type > &array) | |
template<class TT = Type> | |
ArrayView (const ArrayView< typename std::remove_const< value_type >::type > &array, typename std::enable_if< std::is_const< TT >::value >::type *=0) | |
template<class TT = Type> | |
ArrayView (const std::vector< typename std::remove_const< value_type >::type > &vector, typename std::enable_if< std::is_const< TT >::value >::type *=0) | |
template<class TT = Type> | |
ArrayView (const CppAD::vector< typename std::remove_const< value_type >::type > &vector, typename std::enable_if< std::is_const< TT >::value >::type *=0) | |
template<std::size_t S, class TT = Type> | |
ArrayView (const std::array< typename std::remove_const< value_type >::type, S > &array, typename std::enable_if< std::is_const< TT >::value >::type *=0) | |
template<class TT = Type> | |
ArrayView (const std::valarray< typename std::remove_const< value_type >::type > &array, typename std::enable_if< std::is_const< TT >::value >::type *=0) | |
ArrayView (const ArrayView &x)=default | |
virtual | ~ArrayView ()=default |
size_t | size () const noexcept |
size_type | max_size () const noexcept |
bool | empty () const noexcept |
pointer | data () noexcept |
const_pointer | data () const noexcept |
void | fill (const value_type &u) |
ArrayView< value_type > | head (size_t n) |
ArrayView< const value_type > | head (size_t n) const |
ArrayView< value_type > | tail (size_t n) |
ArrayView< const value_type > | tail (size_t n) const |
ArrayView< value_type > | segment (size_t start, size_t n) |
ArrayView< const value_type > | segment (size_t start, size_t n) const |
void | swap (ArrayView &other) noexcept |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
reverse_iterator | rbegin () noexcept |
const_reverse_iterator | rbegin () const noexcept |
reverse_iterator | rend () noexcept |
const_reverse_iterator | rend () const noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
const_reverse_iterator | crbegin () const noexcept |
const_reverse_iterator | crend () const noexcept |
reference | operator[] (size_type i) |
const_reference | operator[] (size_type i) const |
reference | at (size_type i) |
const_reference | at (size_type i) const |
reference | front () |
const_reference | front () const |
reference | back () |
const_reference | back () const |
ArrayView & | operator= (const ArrayView &x) |
template<typename TT = const Type, typename = typename std::enable_if<!std::is_same<Type, TT>::value && std::is_assignable<Type&, TT&>::value>::type> | |
ArrayView & | operator= (const ArrayView< TT > &x) |
ArrayView & | operator= (const std::vector< Type > &x) |
ArrayView & | operator= (const CppAD::vector< Type > &x) |
A simple wrapper for C arrays. It does not own the data array.
Definition at line 30 of file array_view.hpp.
|
inline |
Default empty constructor for arrays with no elements
Definition at line 56 of file array_view.hpp.
Referenced by CppAD::cg::ArrayView< CppAD::cg::CG< Base > >::ArrayView().
|
inline |
Creates a wrapper for an existing array.
array | pointer to the first element of the array |
n | size of the array |
Definition at line 67 of file array_view.hpp.
|
inline |
Creates a wrapper from a vector. It is expected that the vector is not resized nor deleted while using this wrapper.
vector | the vector to wrap |
Definition at line 81 of file array_view.hpp.
|
inline |
Creates a wrapper from a vector. It is expected that the vector is not resized nor deleted while using this wrapper.
vector | the vector to wrap |
Definition at line 93 of file array_view.hpp.
|
inline |
Creates a wrapper from an std::array. It is expected that std::array is not deleted while using this wrapper.
array | the std::array to wrap |
Definition at line 105 of file array_view.hpp.
|
inline |
Creates a wrapper from an std::valarray. It is expected that std::valarray is not deleted while using this wrapper.
array | the valarray to wrap |
Definition at line 116 of file array_view.hpp.
|
inline |
Creates an ArrayView for a const data type from another ArrayView with a non-const data type.
array | the other ArrayView with a non-const data type |
Definition at line 128 of file array_view.hpp.
|
inline |
Creates a wrapper from a vector with a non-const datd type. It is expected that the vector is not resized nor deleted while using this wrapper.
vector | the vector to wrap with a non-const data type |
Definition at line 142 of file array_view.hpp.
|
inline |
Creates a wrapper from a vector with a non-const data type. It is expected that the vector is not resized nor deleted while using this wrapper.
vector | the vector to wrap with a non-const data type |
Definition at line 156 of file array_view.hpp.
|
inline |
Creates a wrapper from a std::array with a non-const data type. It is expected that std::array is not deleted while using this wrapper.
array | the std::array to wrap with a non-const data type |
Definition at line 169 of file array_view.hpp.
|
inline |
Creates a wrapper from an std::valarray with a non-const data type. It is expected that std::valarray is not deleted while using this wrapper.
array | the valarray to wrap with a non-const data type |
Definition at line 182 of file array_view.hpp.
|
inlinedefault |
Copy constructor
x |
|
virtualdefault |
Desctructor
Referenced by CppAD::cg::ArrayView< CppAD::cg::CG< Base > >::ArrayView().
|
inlinenoexcept |
Definition at line 220 of file array_view.hpp.
Referenced by CppAD::cg::EvaluatorBase< ScalarIn, double, adouble, Evaluator< ScalarIn, double, adouble > >::evaluate(), CppAD::cg::FunctorGenericModel< Base >::ForwardOne(), CppAD::cg::FunctorGenericModel< Base >::ForwardZero(), CppAD::cg::FunctorGenericModel< Base >::Hessian(), CppAD::cg::FunctorGenericModel< Base >::Jacobian(), CppAD::cg::FunctorGenericModel< Base >::ReverseOne(), CppAD::cg::FunctorGenericModel< Base >::ReverseTwo(), CppAD::cg::ArrayView< CppAD::cg::CG< Base > >::segment(), CppAD::cg::FunctorGenericModel< Base >::SparseHessian(), and CppAD::cg::FunctorGenericModel< Base >::SparseJacobian().
|
inlinenoexcept |
Definition at line 227 of file array_view.hpp.
|
inline |
Definition at line 238 of file array_view.hpp.
|
inline |
Definition at line 246 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 209 of file array_view.hpp.
|
inline |
Definition at line 270 of file array_view.hpp.
|
inline |
Definition at line 280 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 202 of file array_view.hpp.
Referenced by CppAD::cg::CGAtomicFun< Base >::atomicReverse(), CppAD::cg::ArrayView< CppAD::cg::CG< Base > >::data(), CppAD::cg::EvaluatorBase< ScalarIn, double, adouble, Evaluator< ScalarIn, double, adouble > >::evaluate(), CppAD::cg::FunctorGenericModel< Base >::ForwardOne(), CppAD::cg::FunctorGenericModel< Base >::ForwardZero(), CppAD::cg::CodeHandler< ScalarOut >::generateCode(), CppAD::cg::LanguageDot< Base >::generateSourceCode(), CppAD::cg::LanguageMathML< Base >::generateSourceCode(), CppAD::cg::LanguageC< Base >::generateSourceCode(), CppAD::cg::LanguageLatex< Base >::generateSourceCode(), CppAD::cg::ArrayView< CppAD::cg::CG< Base > >::head(), CppAD::cg::FunctorGenericModel< Base >::Hessian(), CppAD::cg::FunctorGenericModel< Base >::Jacobian(), CppAD::cg::FunctorGenericModel< Base >::loadFunctions(), CppAD::cg::ArrayView< CppAD::cg::CG< Base > >::max_size(), CppAD::cg::CodeHandler< ScalarOut >::reduceTemporaryVariables(), CppAD::cg::CodeHandler< ScalarOut >::reorderOperations(), CppAD::cg::FunctorGenericModel< Base >::ReverseOne(), CppAD::cg::FunctorGenericModel< Base >::ReverseTwo(), CppAD::cg::ArrayView< CppAD::cg::CG< Base > >::segment(), CppAD::cg::FunctorGenericModel< Base >::SparseHessian(), CppAD::cg::FunctorGenericModel< Base >::SparseJacobian(), and CppAD::cg::ArrayView< CppAD::cg::CG< Base > >::tail().
|
inline |
Definition at line 254 of file array_view.hpp.
|
inline |
Definition at line 262 of file array_view.hpp.