Dune::FieldVector< K, 1 > Class Template Reference
[Dense Matrix and Vector Template Library]

#include <fvector.hh>

List of all members.


Detailed Description

template<class K>
class Dune::FieldVector< K, 1 >

! Vectors containing only one component

Public Types

enum  
 We are at the leaf of the block recursion.
enum  
 export size
enum  
 export size
typedef K field_type
 export the type representing the field
typedef K block_type
 export the type representing the components
typedef std::size_t size_type
 The type for the index access and size operations.
typedef FieldIterator
< FieldVector< K, n >, K > 
Iterator
 Iterator class for sequential access.
typedef Iterator iterator
 typedef for stl compliant access
typedef FieldIterator< const
FieldVector< K, n >, const K > 
ConstIterator
 ConstIterator class for sequential access.
typedef ConstIterator const_iterator
 typedef for stl compliant access

Public Member Functions

 FieldVector ()
 Default constructor.
 FieldVector (const K &k)
 Constructor with a given scalar.
FieldVectoroperator= (const K &k)
 Assignment from the base type.
K & operator[] (size_type i)
 random access
const K & operator[] (size_type i) const
 same for read only access
Iterator begin ()
 begin iterator
Iterator end ()
 end iterator
Iterator rbegin ()
 begin iterator
Iterator rend ()
 end iterator
Iterator find (size_type i)
 return iterator to given element or end()
ConstIterator begin () const
 begin ConstIterator
ConstIterator end () const
 end ConstIterator
ConstIterator rbegin () const
 begin ConstIterator
ConstIterator rend () const
 end ConstIterator
ConstIterator find (size_type i) const
 return iterator to given element or end()
FieldVectoroperator+= (const FieldVector &y)
 vector space addition
FieldVectoroperator-= (const FieldVector &y)
 vector space subtraction
FieldVectoroperator+= (const K &k)
 vector space add scalar to each comp
FieldVectoroperator-= (const K &k)
 vector space subtract scalar from each comp
FieldVectoroperator*= (const K &k)
 vector space multiplication with scalar
FieldVectoroperator/= (const K &k)
 vector space division by scalar
FieldVectoraxpy (const K &a, const FieldVector &y)
 vector space axpy operation
double one_norm () const
 one norm (sum over absolute values of entries)
double one_norm_real () const
 simplified one norm (uses Manhattan norm for complex values)
double two_norm () const
 two norm sqrt(sum over squared values of entries)
double two_norm2 () const
 square of two norm (sum over squared values of entries), need for block recursion
double infinity_norm () const
 infinity norm (maximum of absolute values of entries)
double 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 (==1)
 operator K ()
 Conversion operator.
 operator K () const
 Const conversion operator.

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

Generated on 6 Nov 2008 with Doxygen (ver 1.5.6) [logfile].