|
dune-common
2.11
|
vector space out of a tensor product of fields. More...
#include <dune/common/densematrix.hh>

Public Types | |
| using | size_type = typename Base::size_type |
| The type used for the index access and size operation. More... | |
| using | value_type = typename Base::value_type |
| The type of the elements stored in the vector. More... | |
| using | reference = value_type & |
| The type used for references to the vector entries. More... | |
| using | const_reference = const value_type & |
| The type used for const references to the vector entries. 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 () noexcept(std::is_nothrow_default_constructible_v< K >) |
| Default constructor, making value-initialized vector with all components set to zero. More... | |
| explicit (SIZE !=1) const expr FieldVector(const value_type &value) noexcept | |
| Constructor with a given value initializing all entries to this value. More... | |
| template<Concept::Number S> | |
| requires (std::constructible_from< K, S >) explicit(SIZE ! | |
| Constructor with a given scalar initializing all entries to this value. More... | |
| template<class V > | |
| requires (IsFieldVectorSizeCorrect< V, SIZE >::value &&std::is_assignable_v< K &, decltype(std::declval< const V &>()[0])>) const expr FieldVector &operator | |
| Assignment from another dense vector. More... | |
| constexpr value_type & | operator[] (size_type i) |
| random access More... | |
| constexpr const value_type & | operator[] (size_type i) const |
| constexpr value_type & | front () |
| return reference to first element More... | |
| constexpr const value_type & | front () const |
| return reference to first element More... | |
| constexpr value_type & | back () |
| return reference to last element More... | |
| constexpr const value_type & | back () const |
| return reference to last element More... | |
| constexpr bool | empty () const |
| checks whether the container is empty More... | |
| constexpr size_type | size () const |
| size method More... | |
| constexpr Iterator | begin () |
| begin iterator More... | |
| constexpr ConstIterator | begin () const |
| begin ConstIterator More... | |
| constexpr Iterator | end () |
| end iterator More... | |
| constexpr ConstIterator | end () const |
| end ConstIterator More... | |
| constexpr Iterator | beforeEnd () |
| constexpr ConstIterator | beforeEnd () const |
| constexpr Iterator | beforeBegin () |
| constexpr ConstIterator | beforeBegin () const |
| constexpr Iterator | find (size_type i) |
| return iterator to given element or end() More... | |
| constexpr ConstIterator | find (size_type i) const |
| return iterator to given element or end() More... | |
| constexpr derived_type & | operator+= (const DenseVector< Other > &x) |
| vector space addition More... | |
| constexpr 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... | |
| constexpr derived_type & | operator-= (const DenseVector< Other > &x) |
| vector space subtraction More... | |
| constexpr 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... | |
| constexpr derived_type | operator+ (const DenseVector< Other > &b) const |
| Binary vector addition. More... | |
| constexpr derived_type | operator- (const DenseVector< Other > &b) const |
| Binary vector subtraction. More... | |
| constexpr derived_type | operator- () const |
| Vector negation. More... | |
| constexpr std::enable_if< std::is_convertible< FieldType, field_type >::value, derived_type >::type & | operator*= (const FieldType &kk) |
| vector space multiplication with scalar More... | |
| constexpr std::enable_if< std::is_convertible< FieldType, field_type >::value, derived_type >::type & | operator/= (const FieldType &kk) |
| vector space division by scalar More... | |
| constexpr bool | operator== (const DenseVector< Other > &x) const |
| Binary vector comparison. More... | |
| constexpr bool | operator!= (const DenseVector< Other > &x) const |
| Binary vector incomparison. More... | |
| constexpr derived_type & | axpy (const field_type &a, const DenseVector< Other > &x) |
| vector space axpy operation ( *this += a x ) More... | |
| constexpr PromotionTraits< field_type, typename DenseVector< Other >::field_type >::PromotedType | operator* (const DenseVector< Other > &x) const |
indefinite vector dot product which corresponds to Petsc's VecTDot More... | |
| constexpr PromotionTraits< field_type, typename DenseVector< Other >::field_type >::PromotedType | dot (const DenseVector< Other > &x) const |
vector dot product which corresponds to Petsc's VecDot More... | |
| constexpr FieldTraits< value_type >::real_type | one_norm () const |
| one norm (sum over absolute values of entries) More... | |
| constexpr FieldTraits< value_type >::real_type | one_norm_real () const |
| simplified one norm (uses Manhattan norm for complex values) More... | |
| constexpr FieldTraits< value_type >::real_type | two_norm () const |
| two norm sqrt(sum over squared values of entries) More... | |
| constexpr FieldTraits< value_type >::real_type | two_norm2 () const |
| square of two norm (sum over squared values of entries), need for block recursion More... | |
| constexpr FieldTraits< vt >::real_type | infinity_norm () const |
| infinity norm (maximum of absolute values of entries) More... | |
| constexpr FieldTraits< vt >::real_type | infinity_norm () const |
| infinity norm (maximum of absolute values of entries) More... | |
| constexpr FieldTraits< vt >::real_type | infinity_norm_real () const |
| simplified infinity norm (uses Manhattan norm for complex values) More... | |
| constexpr FieldTraits< vt >::real_type | infinity_norm_real () const |
| simplified infinity norm (uses Manhattan norm for complex values) More... | |
| constexpr size_type | N () const |
| number of blocks in the vector (are of size 1 here) More... | |
| constexpr size_type | dim () const |
| dimension of the vector space More... | |
Element access | |
| constexpr reference | operator[] (size_type i) |
Return a reference to the ith element. More... | |
| constexpr const_reference | operator[] (size_type i) const |
Return a (const) reference to the ith element. More... | |
| constexpr K * | data () noexcept |
| Return pointer to underlying array. More... | |
| constexpr const K * | data () const noexcept |
| Return pointer to underlying array. More... | |
Static Public Member Functions | |
Capacity | |
| static constexpr size_type | size () noexcept |
| Obtain the number of elements stored in the vector. More... | |
Static Public Attributes | |
| static constexpr int | dimension = SIZE |
| The size of this vector. More... | |
| static constexpr int | blocklevel |
| The number of block levels we contain. This is the leaf, that is, 1. 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... | |
| 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
| using Dune::FieldVector< K, SIZE >::const_reference = const value_type& |
The type used for const references to the vector entries.
|
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
| using Dune::FieldVector< K, SIZE >::reference = value_type& |
The type used for references to the vector entries.
| using Dune::FieldVector< K, SIZE >::size_type = typename Base::size_type |
The type used for the index access and size operation.
| using Dune::FieldVector< K, SIZE >::value_type = typename Base::value_type |
The type of the elements stored in the vector.
|
inlinenoexcept |
Default constructor, making value-initialized vector with all components set to zero.
|
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
|
inlinenoexcept |
Constructor with a given value initializing all entries to this value.
|
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 |
Binary vector subtraction.
|
inlineinherited |
Vector negation.
|
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.
|
inlineinherited |
Binary vector comparison.
|
inline |
Return a reference to the ith element.
| RangeError | if index i is out of range [0,SIZE) (only checked if DUNE_CHECK_BOUNDS is defined). |
|
inline |
Return a (const) reference to the ith element.
| RangeError | if index i is out of range [0,SIZE) (only checked if DUNE_CHECK_BOUNDS is defined). |
|
inlineinherited |
random access
|
inlineinherited |
| Dune::FieldVector< K, SIZE >::requires | ( | std::constructible_from< K, S > | ) |
Constructor with a given scalar initializing all entries to this value.
| Dune::FieldVector< K, SIZE >::requires | ( | IsFieldVectorSizeCorrect< V, SIZE >::value &&std::is_assignable_v< K &, decltype(std::declval< const V &>()[0])> | ) | const & |
Assignment from another dense vector.
|
inlinestaticnoexcept |
Obtain the number of elements stored in the vector.
|
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 |
|
staticinherited |
The number of block levels we contain. This is the leaf, that is, 1.
|
static |
The size of this vector.
1.8.14