dune-common
2.7.0
|
vector space out of a tensor product of fields. More...
#include <dune/common/densematrix.hh>
Public Types | |
enum | { dimension = SIZE } |
export size More... | |
typedef Base::size_type | size_type |
typedef Base::value_type | value_type |
typedef value_type & | reference |
The type used for references to the vector entry. More... | |
Public Member Functions | |
constexpr | FieldVector () |
Constructor making default-initialized vector. More... | |
FieldVector (const K &t) | |
Constructor making vector with identical coordinates. More... | |
FieldVector (const FieldVector &)=default | |
Copy constructor. More... | |
FieldVector (std::initializer_list< K > const &l) | |
Construct from a std::initializer_list. More... | |
FieldVector & | operator= (const FieldVector &)=default |
copy assignment operator More... | |
template<typename T > | |
FieldVector & | operator= (const FieldVector< T, SIZE > &x) |
template<typename T , int N> | |
FieldVector & | operator= (const FieldVector< T, N > &)=delete |
template<class C > | |
FieldVector (const DenseVector< C > &x, typename std::enable_if< IsFieldVectorSizeCorrect< C, SIZE >::value >::type *dummy=0) | |
Copy constructor from a second vector of possibly different type. More... | |
template<class K1 > | |
FieldVector (const FieldVector< K1, SIZE > &x) | |
Constructor making vector with identical coordinates. More... | |
template<typename T , int N> | |
FieldVector (const FieldVector< T, N > &)=delete | |
K & | operator[] (size_type i) |
const K & | operator[] (size_type i) const |
K * | data () noexcept |
return pointer to underlying array More... | |
const K * | data () const noexcept |
return pointer to underlying array More... | |
derived_type & | operator= (const value_type &k) |
Assignment operator for scalar. More... | |
DenseVector & | operator= (const DenseVector &)=default |
Assignment operator for other DenseVector of same type. More... | |
template<typename W , std::enable_if_t< std::is_assignable< value_type &, typename DenseVector< W >::value_type >::value, int > = 0> | |
derived_type & | operator= (const DenseVector< W > &other) |
Assignment operator for other DenseVector of different type. More... | |
Static Public Member Functions | |
static constexpr size_type | size () |
Public Attributes | |
const typedef value_type & | const_reference |
The type used for const references to the vector entry. More... | |
Related Functions | |
(Note that these are not member functions.) | |
template<class K , int SIZE> | |
std::istream & | operator>> (std::istream &in, FieldVector< K, SIZE > &v) |
Read a FieldVector from an input stream. More... | |
vector space out of a tensor product of fields.
K | the field type (use float, double, complex, etc) |
SIZE | number of components. |
typedef value_type& Dune::FieldVector< K, SIZE >::reference |
The type used for references to the vector entry.
typedef Base::size_type Dune::FieldVector< K, SIZE >::size_type |
typedef Base::value_type Dune::FieldVector< K, SIZE >::value_type |
anonymous enum |
|
inlineconstexpr |
Constructor making default-initialized vector.
|
inlineexplicit |
Constructor making vector with identical coordinates.
|
default |
Copy constructor.
|
inline |
Construct from a std::initializer_list.
|
inline |
Copy constructor from a second vector of possibly different type.
If the DenseVector type of the this constructor's argument is implemented by a FieldVector, it is statically checked if it has the correct size. If this is not the case the constructor is removed from the overload set using SFINAE.
[in] | x | A DenseVector with correct size. |
[in] | dummy | A void* dummy argument needed by SFINAE. |
|
inlineexplicit |
Constructor making vector with identical coordinates.
|
explicitdelete |
|
inlinenoexcept |
return pointer to underlying array
|
inlinenoexcept |
return pointer to underlying array
|
default |
Assignment operator for other DenseVector of same type.
|
inline |
Assignment operator for other DenseVector of different type.
|
default |
copy assignment operator
|
delete |
|
inline |
|
inline |
Assignment operator for scalar.
|
inline |
|
inline |
|
inlinestaticconstexpr |
const typedef value_type& Dune::FieldVector< K, SIZE >::const_reference |
The type used for const references to the vector entry.