|
| DynamicVector (const allocator_type &a=allocator_type()) |
| Constructor making uninitialized vector.
|
|
| DynamicVector (size_type n, value_type c, const allocator_type &a=allocator_type()) |
| Constructor making vector with identical coordinates.
|
|
| DynamicVector (std::initializer_list< K > const &l) |
| Construct from a std::initializer_list.
|
|
| DynamicVector (const DynamicVector &x) |
| Constructor making vector with identical coordinates.
|
|
| DynamicVector (DynamicVector &&x) |
| Move constructor.
|
|
template<class X > |
| DynamicVector (const DenseVector< X > &x, const allocator_type &a=allocator_type()) |
| Copy constructor from another DenseVector.
|
|
DynamicVector & | operator= (const DynamicVector &other) |
| Copy assignment operator.
|
|
DynamicVector & | operator= (DynamicVector &&other) |
| Move assignment operator.
|
|
size_type | capacity () const |
| Number of elements for which memory has been allocated. More...
|
|
K * | data () noexcept |
| return pointer to underlying array
|
|
const K * | data () const noexcept |
| return pointer to underlying array
|
|
derived_type & | operator= (const value_type &k) |
| Assignment operator for scalar.
|
|
DenseVector & | operator= (const DenseVector &)=default |
| Assignment operator for other DenseVector of same type.
|
|
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.
|
|
value_type & | front () |
| return reference to first element
|
|
const value_type & | front () const |
| return reference to first element
|
|
value_type & | back () |
| return reference to last element
|
|
const value_type & | back () const |
| return reference to last element
|
|
bool | empty () const |
| checks whether the container is empty
|
|
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 > &x) |
| vector space addition
|
|
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
|
|
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.
|
|
derived_type | operator- (const DenseVector< Other > &b) const |
| Binary vector subtraction.
|
|
derived_type | operator- () const |
| Vector negation.
|
|
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.
|
|
bool | operator!= (const DenseVector< Other > &x) const |
| Binary vector incomparison.
|
|
derived_type & | axpy (const field_type &a, const DenseVector< Other > &x) |
| vector space axpy operation ( *this += a x )
|
|
PromotionTraits< field_type, typenameDenseVector< Other >::field_type >::PromotedType | operator* (const DenseVector< Other > &x) const |
| indefinite vector dot product \(\left (x^T \cdot y \right)\) which corresponds to Petsc's VecTDot More...
|
|
PromotionTraits< field_type, typenameDenseVector< Other >::field_type >::PromotedType | dot (const DenseVector< Other > &x) const |
| vector dot product \(\left (x^H \cdot y \right)\) which corresponds to Petsc's VecDot More...
|
|
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< vt >::real_type | infinity_norm () const |
| infinity norm (maximum of absolute values of entries)
|
|
FieldTraits< vt >::real_type | infinity_norm () const |
| infinity norm (maximum of absolute values of entries)
|
|
FieldTraits< vt >::real_type | infinity_norm_real () const |
| simplified infinity norm (uses Manhattan norm for complex values)
|
|
FieldTraits< vt >::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
|
|
template<class K, class Allocator = std::allocator< K >>
class Dune::DynamicVector< K, Allocator >
Construct a vector with a dynamic size.
- Template Parameters
-
K | is the field type (use float, double, complex, etc) |
Allocator | type of allocator object used to define the storage allocation model, default Allocator = std::allocator< K >. |