|
dune-common
2.8.0
|
vector space out of a tensor product of fields. More...
#include <dune/common/fvector.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... | |
| typedef const value_type & | const_reference |
| The type used for const references to the vector entry. More... | |
| enum | |
| We are at the leaf of the block recursion. More... | |
| typedef Traits::derived_type | derived_type |
| type of derived vector class More... | |
| typedef FieldTraits< value_type >::field_type | field_type |
| export the type representing the field More... | |
| typedef Traits::value_type | block_type |
| export the type representing the components More... | |
| typedef DenseIterator< DenseVector, value_type > | Iterator |
| Iterator class for sequential access. More... | |
| typedef Iterator | iterator |
| typedef for stl compliant access More... | |
| typedef DenseIterator< const DenseVector, const value_type > | ConstIterator |
| ConstIterator class for sequential access. More... | |
| typedef ConstIterator | const_iterator |
| typedef for stl compliant access 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, [[maybe_unused]] 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... | |
| value_type & | front () |
| return reference to first element More... | |
| const value_type & | front () const |
| return reference to first element More... | |
| value_type & | back () |
| return reference to last element More... | |
| const value_type & | back () const |
| return reference to last element More... | |
| bool | empty () const |
| checks whether the container is empty More... | |
| size_type | size () const |
| size method More... | |
| Iterator | begin () |
| begin iterator More... | |
| ConstIterator | begin () const |
| begin ConstIterator More... | |
| Iterator | end () |
| end iterator More... | |
| ConstIterator | end () const |
| end ConstIterator More... | |
| Iterator | beforeEnd () |
| ConstIterator | beforeEnd () const |
| Iterator | beforeBegin () |
| ConstIterator | beforeBegin () const |
| Iterator | find (size_type i) |
| return iterator to given element or end() More... | |
| ConstIterator | find (size_type i) const |
| return iterator to given element or end() More... | |
| derived_type & | operator+= (const DenseVector< Other > &x) |
| vector space addition More... | |
| std::enable_if< std::is_convertible< ValueType, value_type >::value, derived_type >::type & | operator+= (const ValueType &kk) |
| vector space add scalar to all comps More... | |
| derived_type & | operator-= (const DenseVector< Other > &x) |
| vector space subtraction More... | |
| std::enable_if< std::is_convertible< ValueType, value_type >::value, derived_type >::type & | operator-= (const ValueType &kk) |
| vector space subtract scalar from all comps More... | |
| derived_type | operator+ (const DenseVector< Other > &b) const |
| Binary vector addition. More... | |
| derived_type | operator- (const DenseVector< Other > &b) const |
| Binary vector subtraction. More... | |
| derived_type | operator- () const |
| Vector negation. More... | |
| std::enable_if< std::is_convertible< FieldType, field_type >::value, derived_type >::type & | operator*= (const FieldType &kk) |
| vector space multiplication with scalar More... | |
| std::enable_if< std::is_convertible< FieldType, field_type >::value, derived_type >::type & | operator/= (const FieldType &kk) |
| vector space division by scalar More... | |
| bool | operator== (const DenseVector< Other > &x) const |
| Binary vector comparison. More... | |
| bool | operator!= (const DenseVector< Other > &x) const |
| Binary vector incomparison. More... | |
| derived_type & | axpy (const field_type &a, const DenseVector< Other > &x) |
| vector space axpy operation ( *this += a x ) More... | |
| PromotionTraits< field_type, typename DenseVector< Other >::field_type >::PromotedType | operator* (const DenseVector< Other > &x) const |
| indefinite vector dot product | |
| PromotionTraits< field_type, typename DenseVector< Other >::field_type >::PromotedType | dot (const DenseVector< Other > &x) const |
| vector dot product | |
| FieldTraits< value_type >::real_type | one_norm () const |
| one norm (sum over absolute values of entries) More... | |
| FieldTraits< value_type >::real_type | one_norm_real () const |
| simplified one norm (uses Manhattan norm for complex values) More... | |
| FieldTraits< value_type >::real_type | two_norm () const |
| two norm sqrt(sum over squared values of entries) More... | |
| FieldTraits< value_type >::real_type | two_norm2 () const |
| square of two norm (sum over squared values of entries), need for block recursion More... | |
| FieldTraits< vt >::real_type | infinity_norm () const |
| infinity norm (maximum of absolute values of entries) More... | |
| FieldTraits< vt >::real_type | infinity_norm () const |
| infinity norm (maximum of absolute values of entries) More... | |
| FieldTraits< vt >::real_type | infinity_norm_real () const |
| simplified infinity norm (uses Manhattan norm for complex values) More... | |
| FieldTraits< vt >::real_type | infinity_norm_real () const |
| simplified infinity norm (uses Manhattan norm for complex values) More... | |
| size_type | N () const |
| number of blocks in the vector (are of size 1 here) More... | |
| size_type | dim () const |
| dimension of the vector space More... | |
Static Public Member Functions | |
| static constexpr size_type | size () |
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... | |
| std::ostream & | operator<< (std::ostream &s, const DenseVector< FieldVector< K, SIZE > > &v) |
| Write a DenseVector to an output stream. More... | |
vector space out of a tensor product of fields.
| K | the field type (use float, double, complex, etc) |
| SIZE | number of components. |
|
inherited |
export the type representing the components
|
inherited |
typedef for stl compliant access
| typedef const value_type& Dune::FieldVector< K, SIZE >::const_reference |
The type used for const references to the vector entry.
|
inherited |
ConstIterator class for sequential access.
|
inherited |
type of derived vector class
|
inherited |
export the type representing the field
|
inherited |
Iterator class for sequential access.
|
inherited |
typedef for stl compliant access
| 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 |
|
inherited |
We are at the leaf of the block recursion.
|
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 |
|
inlineinherited |
vector space axpy operation ( *this += a x )
|
inlineinherited |
return reference to last element
|
inlineinherited |
return reference to last element
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
begin iterator
|
inlineinherited |
begin ConstIterator
|
inlinenoexcept |
return pointer to underlying array
|
inlinenoexcept |
return pointer to underlying array
|
inlineinherited |
dimension of the vector space
|
inlineinherited |
vector dot product
which corresponds to Petsc's VecDot
http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecDot.html
| x | other vector |
|
inlineinherited |
checks whether the container is empty
|
inlineinherited |
end iterator
|
inlineinherited |
end ConstIterator
|
inlineinherited |
return iterator to given element or end()
|
inlineinherited |
return iterator to given element or end()
|
inlineinherited |
return reference to first element
|
inlineinherited |
return reference to first element
|
inlineinherited |
infinity norm (maximum of absolute values of entries)
|
inlineinherited |
infinity norm (maximum of absolute values of entries)
|
inlineinherited |
simplified infinity norm (uses Manhattan norm for complex values)
|
inlineinherited |
simplified infinity norm (uses Manhattan norm for complex values)
|
inlineinherited |
number of blocks in the vector (are of size 1 here)
|
inlineinherited |
one norm (sum over absolute values of entries)
|
inlineinherited |
simplified one norm (uses Manhattan norm for complex values)
|
inlineinherited |
Binary vector incomparison.
|
inlineinherited |
indefinite vector dot product
which corresponds to Petsc's VecTDot
http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecTDot.html
| x | other vector |
|
inlineinherited |
vector space multiplication with scalar
we use enable_if to avoid an ambiguity, if the function parameter can be converted to field_type implicitly. (see FS#1457)
The function is only enabled, if the parameter is directly convertible to field_type.
|
inlineinherited |
Binary vector addition.
|
inlineinherited |
vector space addition
|
inlineinherited |
vector space add scalar to all comps
we use enable_if to avoid an ambiguity, if the function parameter can be converted to value_type implicitly. (see FS#1457)
The function is only enabled, if the parameter is directly convertible to value_type.
|
inlineinherited |
Vector negation.
|
inlineinherited |
Binary vector subtraction.
|
inlineinherited |
vector space subtraction
|
inlineinherited |
vector space subtract scalar from all comps
we use enable_if to avoid an ambiguity, if the function parameter can be converted to value_type implicitly. (see FS#1457)
The function is only enabled, if the parameter is directly convertible to value_type.
|
inlineinherited |
vector space division by scalar
we use enable_if to avoid an ambiguity, if the function parameter can be converted to field_type implicitly. (see FS#1457)
The function is only enabled, if the parameter is directly convertible to field_type.
|
default |
copy assignment operator
|
delete |
|
inline |
|
inlineinherited |
Binary vector comparison.
|
inline |
|
inline |
|
inlinestaticconstexpr |
|
inlineinherited |
size method
|
inlineinherited |
two norm sqrt(sum over squared values of entries)
|
inlineinherited |
square of two norm (sum over squared values of entries), need for block recursion
|
related |
Write a DenseVector to an output stream.
| [in] | s | std :: ostream to write to |
| [in] | v | DenseVector to write |