dune-common
2.3.1
|
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 |
enum | |
We are at the leaf of the block recursion. More... | |
typedef Traits::derived_type | derived_type |
type of derived vector class | |
typedef Traits::value_type | field_type |
export the type representing the field | |
typedef Traits::value_type | block_type |
export the type representing the components | |
typedef DenseIterator < DenseVector, value_type > | Iterator |
Iterator class for sequential access. | |
typedef Iterator | iterator |
typedef for stl compliant access | |
typedef DenseIterator< const DenseVector, const value_type > | ConstIterator |
ConstIterator class for sequential access. | |
typedef ConstIterator | const_iterator |
typedef for stl compliant access |
Public Member Functions | |
FieldVector () | |
Constructor making default-initialized vector. | |
FieldVector (const K &t) | |
Constructor making vector with identical coordinates. | |
FieldVector (const FieldVector &x) | |
Constructor making vector with identical coordinates. | |
template<class C > | |
FieldVector (const DenseVector< C > &x, typename Dune::enable_if< IsFieldVectorSizeCorrect< C, SIZE >::value >::type *dummy=0) | |
Copy constructor from a second vector of possibly different type. | |
template<class K1 , int SIZE1> | |
FieldVector (const FieldVector< K1, SIZE1 > &x) | |
Constructor making vector with identical coordinates. | |
DUNE_CONSTEXPR size_type | size () const |
size method | |
DUNE_CONSTEXPR size_type | vec_size () const |
K & | vec_access (size_type i) |
const K & | vec_access (size_type i) const |
value_type & | operator[] (size_type i) |
random access | |
const value_type & | operator[] (size_type i) const |
Iterator | begin () |
begin iterator | |
ConstIterator | begin () const |
begin ConstIterator | |
Iterator | end () |
end iterator | |
ConstIterator | end () const |
end ConstIterator | |
Iterator | beforeEnd () |
ConstIterator | beforeEnd () const |
Iterator | beforeBegin () |
ConstIterator | beforeBegin () const |
Iterator | find (size_type i) |
return iterator to given element or end() | |
ConstIterator | find (size_type i) const |
return iterator to given element or end() | |
derived_type & | operator+= (const DenseVector< Other > &y) |
vector space addition | |
derived_type & | operator+= (const value_type &k) |
vector space add scalar to all comps | |
derived_type & | operator-= (const DenseVector< Other > &y) |
vector space subtraction | |
derived_type & | operator-= (const value_type &k) |
vector space subtract scalar from all comps | |
derived_type | operator+ (const DenseVector< Other > &b) const |
Binary vector addition. | |
derived_type | operator- (const DenseVector< Other > &b) const |
Binary vector subtraction. | |
derived_type & | operator*= (const value_type &k) |
vector space multiplication with scalar | |
derived_type & | operator/= (const value_type &k) |
vector space division by scalar | |
bool | operator== (const DenseVector< Other > &y) const |
Binary vector comparison. | |
bool | operator!= (const DenseVector< Other > &y) const |
Binary vector incomparison. | |
derived_type & | axpy (const value_type &a, const DenseVector< Other > &y) |
vector space axpy operation ( *this += a y ) | |
PromotionTraits< field_type, typename DenseVector< Other > ::field_type >::PromotedType | operator* (const DenseVector< Other > &y) const |
indefinite vector dot product ![]() | |
PromotionTraits< field_type, typename DenseVector< Other > ::field_type >::PromotedType | dot (const DenseVector< Other > &y) const |
vector dot product ![]() | |
FieldTraits< value_type > ::real_type | one_norm () const |
one norm (sum over absolute values of entries) | |
FieldTraits< value_type > ::real_type | one_norm_real () const |
simplified one norm (uses Manhattan norm for complex values) | |
FieldTraits< value_type > ::real_type | two_norm () const |
two norm sqrt(sum over squared values of entries) | |
FieldTraits< value_type > ::real_type | two_norm2 () const |
square of two norm (sum over squared values of entries), need for block recursion | |
FieldTraits< value_type > ::real_type | infinity_norm () const |
infinity norm (maximum of absolute values of entries) | |
FieldTraits< value_type > ::real_type | infinity_norm_real () const |
simplified infinity norm (uses Manhattan norm for complex values) | |
size_type | N () const |
number of blocks in the vector (are of size 1 here) | |
size_type | dim () const |
dimension of the vector space |
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. |
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
|
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 Base::size_type Dune::FieldVector< K, SIZE >::size_type |
typedef Base::value_type Dune::FieldVector< K, SIZE >::value_type |
|
inherited |
We are at the leaf of the block recursion.
anonymous enum |
|
inline |
Constructor making default-initialized vector.
|
inlineexplicit |
Constructor making vector with identical coordinates.
|
inline |
Constructor making vector with identical coordinates.
|
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.
|
inlineinherited |
vector space axpy operation ( *this += a y )
References Dune::DenseVector< V >::size().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
References Dune::DenseVector< V >::size().
|
inlineinherited |
References Dune::DenseVector< V >::size().
|
inlineinherited |
begin iterator
Referenced by Dune::ParameterTree::Parser< FieldVector< T, n > >::parse().
|
inlineinherited |
begin ConstIterator
|
inlineinherited |
dimension of the vector space
References Dune::DenseVector< V >::size().
|
inlineinherited |
vector dot product which corresponds to Petsc's VecDot
http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecDot.html
y | other vector |
References Dune::DenseVector< V >::dot(), and Dune::DenseVector< V >::size().
|
inlineinherited |
end iterator
References Dune::DenseVector< V >::size().
Referenced by Dune::ParameterTree::Parser< FieldVector< T, n > >::parse().
|
inlineinherited |
end ConstIterator
References Dune::DenseVector< V >::size().
|
inlineinherited |
return iterator to given element or end()
References Dune::DenseVector< V >::size().
|
inlineinherited |
return iterator to given element or end()
References Dune::DenseVector< V >::size().
|
inlineinherited |
infinity norm (maximum of absolute values of entries)
References Dune::DenseVector< V >::begin(), Dune::DenseVector< V >::end(), and Dune::DenseVector< V >::size().
|
inlineinherited |
simplified infinity norm (uses Manhattan norm for complex values)
References Dune::DenseVector< V >::begin(), Dune::DenseVector< V >::end(), and Dune::DenseVector< V >::size().
|
inlineinherited |
number of blocks in the vector (are of size 1 here)
References Dune::DenseVector< V >::size().
|
inlineinherited |
one norm (sum over absolute values of entries)
References Dune::DenseVector< V >::size().
|
inlineinherited |
simplified one norm (uses Manhattan norm for complex values)
References Dune::DenseVector< V >::size().
|
inlineinherited |
Binary vector incomparison.
References Dune::DenseVector< V >::operator==().
|
inlineinherited |
indefinite vector dot product which corresponds to Petsc's VecTDot
http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecTDot.html
y | other vector |
References Dune::DenseVector< V >::size().
|
inlineinherited |
vector space multiplication with scalar
References Dune::DenseVector< V >::size().
|
inlineinherited |
Binary vector addition.
|
inlineinherited |
vector space addition
References Dune::DenseVector< V >::size().
|
inlineinherited |
vector space add scalar to all comps
References Dune::DenseVector< V >::size().
|
inlineinherited |
Binary vector subtraction.
|
inlineinherited |
vector space subtraction
References Dune::DenseVector< V >::size().
|
inlineinherited |
vector space subtract scalar from all comps
References Dune::DenseVector< V >::size().
|
inlineinherited |
vector space division by scalar
References Dune::DenseVector< V >::size().
|
inlineinherited |
Binary vector comparison.
References Dune::DenseVector< V >::size().
|
inlineinherited |
random access
|
inlineinherited |
|
inline |
size method
Reimplemented from Dune::DenseVector< FieldVector< K, SIZE > >.
|
inlineinherited |
two norm sqrt(sum over squared values of entries)
References Dune::DenseVector< V >::size().
|
inlineinherited |
square of two norm (sum over squared values of entries), need for block recursion
References Dune::DenseVector< V >::size().
|
inline |
|
inline |
|
inline |
Referenced by Dune::FieldVector< T, COLS >::size().