dune-istl  2.5.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Dune::MultiTypeBlockVector< Args > Class Template Reference

A Vector class to support different block types. More...

#include <dune/istl/multitypeblockvector.hh>

Inheritance diagram for Dune::MultiTypeBlockVector< Args >:
Inheritance graph

Public Types

typedef MultiTypeBlockVector< Args... > type
 
typedef double field_type
 The type used for scalars. More...
 

Public Member Functions

int count ()
 
template<std::size_t index>
std::tuple_element< index, tupleType >::typeoperator[] (const std::integral_constant< std::size_t, index > indexVariable)
 Random-access operator. More...
 
template<std::size_t index>
const std::tuple_element< index, tupleType >::typeoperator[] (const std::integral_constant< std::size_t, index > indexVariable) const
 Const random-access operator. More...
 
template<typename T >
void operator= (const T &newval)
 Assignment operator. More...
 
void operator+= (const type &newv)
 
void operator-= (const type &newv)
 
void operator*= (const int &w)
 
void operator*= (const float &w)
 
void operator*= (const double &w)
 
field_type operator* (const type &newv) const
 
field_type dot (const type &newv) const
 
FieldTraits< field_type >::real_type two_norm2 () const
 Compute the squared Euclidean norm. More...
 
FieldTraits< field_type >::real_type two_norm () const
 Compute the Euclidean norm. More...
 
FieldTraits< field_type >::real_type infinity_norm () const
 Compute the maximum norm. More...
 
template<typename Ta >
void axpy (const Ta &a, const type &y)
 Axpy operation on this vector (*this += a * y) More...
 

Static Public Member Functions

static constexpr std::size_t size ()
 Return the number of vector entries. More...
 

Detailed Description

template<typename... Args>
class Dune::MultiTypeBlockVector< Args >

A Vector class to support different block types.

This vector class combines elements of different types known at compile-time.


The documentation for this class was generated from the following file: