|
dune-common
2.2.0
|
Construct a vector with a dynamic size. More...
#include <dune/common/dynvector.hh>
Public Types | |
| typedef Base::size_type | size_type |
| The type used for the index access and size operation. | |
| typedef Base::value_type | value_type |
| export the type representing the field | |
| 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 | |
| DynamicVector () | |
| Constructor making uninitialized vector. | |
| DynamicVector (size_type n, value_type c=value_type()) | |
| Constructor making vector with identical coordinates. | |
| DynamicVector (const DynamicVector &x) | |
| Constructor making vector with identical coordinates. | |
| size_type | capacity () const |
| Number of elements for which memory has been allocated. | |
| void | resize (size_type n, value_type c=value_type()) |
| void | reserve (size_type n) |
| 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 |
| size_type | size () const |
| size method | |
| 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 ) | |
| value_type | operator* (const DenseVector< Other > &y) const |
| scalar product (x^T y) | |
| 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 > | |
| std::istream & | operator>> (std::istream &in, DynamicVector< K > &v) |
| Read a DynamicVector from an input stream. | |
Construct a vector with a dynamic size.
| K | is the field type (use float, double, complex, etc) |
typedef Traits::value_type Dune::DenseVector< DynamicVector< K > >::block_type [inherited] |
export the type representing the components
typedef ConstIterator Dune::DenseVector< DynamicVector< K > >::const_iterator [inherited] |
typedef for stl compliant access
typedef DenseIterator<const DenseVector,const value_type> Dune::DenseVector< DynamicVector< K > >::ConstIterator [inherited] |
ConstIterator class for sequential access.
typedef Traits::derived_type Dune::DenseVector< DynamicVector< K > >::derived_type [inherited] |
type of derived vector class
typedef Traits::value_type Dune::DenseVector< DynamicVector< K > >::field_type [inherited] |
export the type representing the field
typedef DenseIterator<DenseVector,value_type> Dune::DenseVector< DynamicVector< K > >::Iterator [inherited] |
Iterator class for sequential access.
typedef Iterator Dune::DenseVector< DynamicVector< K > >::iterator [inherited] |
typedef for stl compliant access
| typedef Base::size_type Dune::DynamicVector< K >::size_type |
The type used for the index access and size operation.
Reimplemented from Dune::DenseVector< DynamicVector< K > >.
| typedef Base::value_type Dune::DynamicVector< K >::value_type |
export the type representing the field
Reimplemented from Dune::DenseVector< DynamicVector< K > >.
anonymous enum [inherited] |
We are at the leaf of the block recursion.
| Dune::DynamicVector< K >::DynamicVector | ( | ) | [inline] |
Constructor making uninitialized vector.
| Dune::DynamicVector< K >::DynamicVector | ( | size_type | n, |
| value_type | c = value_type() |
||
| ) | [inline, explicit] |
Constructor making vector with identical coordinates.
| Dune::DynamicVector< K >::DynamicVector | ( | const DynamicVector< K > & | x | ) | [inline] |
Constructor making vector with identical coordinates.
| derived_type& Dune::DenseVector< DynamicVector< K > >::axpy | ( | const value_type & | a, |
| const DenseVector< Other > & | y | ||
| ) | [inline, inherited] |
vector space axpy operation ( *this += a y )
| Iterator Dune::DenseVector< DynamicVector< K > >::beforeBegin | ( | ) | [inline, inherited] |
| ConstIterator Dune::DenseVector< DynamicVector< K > >::beforeBegin | ( | ) | const [inline, inherited] |
| Iterator Dune::DenseVector< DynamicVector< K > >::beforeEnd | ( | ) | [inline, inherited] |
| ConstIterator Dune::DenseVector< DynamicVector< K > >::beforeEnd | ( | ) | const [inline, inherited] |
| Iterator Dune::DenseVector< DynamicVector< K > >::begin | ( | ) | [inline, inherited] |
begin iterator
| ConstIterator Dune::DenseVector< DynamicVector< K > >::begin | ( | ) | const [inline, inherited] |
begin ConstIterator
| size_type Dune::DynamicVector< K >::capacity | ( | ) | const [inline] |
Number of elements for which memory has been allocated.
capacity() is always greater than or equal to size().
| size_type Dune::DenseVector< DynamicVector< K > >::dim | ( | ) | const [inline, inherited] |
dimension of the vector space
| Iterator Dune::DenseVector< DynamicVector< K > >::end | ( | ) | [inline, inherited] |
end iterator
| ConstIterator Dune::DenseVector< DynamicVector< K > >::end | ( | ) | const [inline, inherited] |
end ConstIterator
| Iterator Dune::DenseVector< DynamicVector< K > >::find | ( | size_type | i | ) | [inline, inherited] |
return iterator to given element or end()
| ConstIterator Dune::DenseVector< DynamicVector< K > >::find | ( | size_type | i | ) | const [inline, inherited] |
return iterator to given element or end()
| FieldTraits<value_type>::real_type Dune::DenseVector< DynamicVector< K > >::infinity_norm | ( | ) | const [inline, inherited] |
infinity norm (maximum of absolute values of entries)
| FieldTraits<value_type>::real_type Dune::DenseVector< DynamicVector< K > >::infinity_norm_real | ( | ) | const [inline, inherited] |
simplified infinity norm (uses Manhattan norm for complex values)
| size_type Dune::DenseVector< DynamicVector< K > >::N | ( | ) | const [inline, inherited] |
number of blocks in the vector (are of size 1 here)
| FieldTraits<value_type>::real_type Dune::DenseVector< DynamicVector< K > >::one_norm | ( | ) | const [inline, inherited] |
one norm (sum over absolute values of entries)
| FieldTraits<value_type>::real_type Dune::DenseVector< DynamicVector< K > >::one_norm_real | ( | ) | const [inline, inherited] |
simplified one norm (uses Manhattan norm for complex values)
| bool Dune::DenseVector< DynamicVector< K > >::operator!= | ( | const DenseVector< Other > & | y | ) | const [inline, inherited] |
Binary vector incomparison.
| value_type Dune::DenseVector< DynamicVector< K > >::operator* | ( | const DenseVector< Other > & | y | ) | const [inline, inherited] |
scalar product (x^T y)
| derived_type& Dune::DenseVector< DynamicVector< K > >::operator*= | ( | const value_type & | k | ) | [inline, inherited] |
vector space multiplication with scalar
| derived_type Dune::DenseVector< DynamicVector< K > >::operator+ | ( | const DenseVector< Other > & | b | ) | const [inline, inherited] |
Binary vector addition.
| derived_type& Dune::DenseVector< DynamicVector< K > >::operator+= | ( | const DenseVector< Other > & | y | ) | [inline, inherited] |
vector space addition
| derived_type& Dune::DenseVector< DynamicVector< K > >::operator+= | ( | const value_type & | k | ) | [inline, inherited] |
vector space add scalar to all comps
| derived_type Dune::DenseVector< DynamicVector< K > >::operator- | ( | const DenseVector< Other > & | b | ) | const [inline, inherited] |
Binary vector subtraction.
| derived_type& Dune::DenseVector< DynamicVector< K > >::operator-= | ( | const DenseVector< Other > & | y | ) | [inline, inherited] |
vector space subtraction
| derived_type& Dune::DenseVector< DynamicVector< K > >::operator-= | ( | const value_type & | k | ) | [inline, inherited] |
vector space subtract scalar from all comps
| derived_type& Dune::DenseVector< DynamicVector< K > >::operator/= | ( | const value_type & | k | ) | [inline, inherited] |
vector space division by scalar
| bool Dune::DenseVector< DynamicVector< K > >::operator== | ( | const DenseVector< Other > & | y | ) | const [inline, inherited] |
Binary vector comparison.
| value_type& Dune::DenseVector< DynamicVector< K > >::operator[] | ( | size_type | i | ) | [inline, inherited] |
random access
| const value_type& Dune::DenseVector< DynamicVector< K > >::operator[] | ( | size_type | i | ) | const [inline, inherited] |
| void Dune::DynamicVector< K >::reserve | ( | size_type | n | ) | [inline] |
| void Dune::DynamicVector< K >::resize | ( | size_type | n, |
| value_type | c = value_type() |
||
| ) | [inline] |
References c.
| size_type Dune::DenseVector< DynamicVector< K > >::size | ( | ) | const [inline, inherited] |
size method
Referenced by Dune::DynamicVector< K >::operator>>().
| FieldTraits<value_type>::real_type Dune::DenseVector< DynamicVector< K > >::two_norm | ( | ) | const [inline, inherited] |
two norm sqrt(sum over squared values of entries)
| FieldTraits<value_type>::real_type Dune::DenseVector< DynamicVector< K > >::two_norm2 | ( | ) | const [inline, inherited] |
square of two norm (sum over squared values of entries), need for block recursion
| K& Dune::DynamicVector< K >::vec_access | ( | size_type | i | ) | [inline] |
| const K& Dune::DynamicVector< K >::vec_access | ( | size_type | i | ) | const [inline] |
| size_type Dune::DynamicVector< K >::vec_size | ( | ) | const [inline] |
1.7.6.1