MADNESS  0.10.1
Public Types | Public Member Functions | List of all members
madness::VectorOfFunctionsSpace< T, VDIM, FDIM > Class Template Reference

A vector space using MADNESS Vectors of MADNESS Functions. More...

#include <gmres.h>

Inheritance diagram for madness::VectorOfFunctionsSpace< T, VDIM, FDIM >:
Inheritance graph
[legend]
Collaboration diagram for madness::VectorOfFunctionsSpace< T, VDIM, FDIM >:
Collaboration graph
[legend]

Public Types

typedef TensorTypeData< T >::float_scalar_type real_type
 
typedef T scalar_type
 

Public Member Functions

 VectorOfFunctionsSpace (World &world)
 
virtual ~VectorOfFunctionsSpace ()
 
virtual void destroy (Vector< Function< scalar_type, FDIM >, VDIM > &f) const
 Any special instructions to be executed when a vector is no longer needed. More...
 
virtual Vector< Function< scalar_type, FDIM >, VDIM > & gaxpy (Vector< Function< scalar_type, FDIM >, VDIM > &x, const scalar_type &a, const Vector< Function< scalar_type, FDIM >, VDIM > &y, const scalar_type &b) const
 Standard bilinear gaxpy. More...
 
virtual scalar_type inner (const Vector< Function< scalar_type, FDIM >, VDIM > &l, const Vector< Function< scalar_type, FDIM >, VDIM > &r) const
 The inner product between two vectors. More...
 
virtual real_type norm (const Vector< Function< scalar_type, FDIM >, VDIM > &vec) const
 The norm of a vector. More...
 
virtual Vector< Function< scalar_type, FDIM >, VDIM > & scale (Vector< Function< scalar_type, FDIM >, VDIM > &vec, const scalar_type &c) const
 Scales the vector (in-place) by a constant. More...
 
- Public Member Functions inherited from madness::AbstractVectorSpace< Vector< Function< T, FDIM >, VDIM >, TensorTypeData< T >::float_scalar_type, T >
 AbstractVectorSpace (World &world)
 Make a vector space. More...
 
virtual ~AbstractVectorSpace ()
 

Additional Inherited Members

- Public Attributes inherited from madness::AbstractVectorSpace< Vector< Function< T, FDIM >, VDIM >, TensorTypeData< T >::float_scalar_type, T >
Worldworld
 The world. More...
 

Detailed Description

template<typename T, int VDIM, int FDIM>
class madness::VectorOfFunctionsSpace< T, VDIM, FDIM >

A vector space using MADNESS Vectors of MADNESS Functions.

Member Typedef Documentation

◆ real_type

template<typename T , int VDIM, int FDIM>
typedef TensorTypeData<T>::float_scalar_type madness::VectorOfFunctionsSpace< T, VDIM, FDIM >::real_type

◆ scalar_type

template<typename T , int VDIM, int FDIM>
typedef T madness::VectorOfFunctionsSpace< T, VDIM, FDIM >::scalar_type

Constructor & Destructor Documentation

◆ VectorOfFunctionsSpace()

template<typename T , int VDIM, int FDIM>
madness::VectorOfFunctionsSpace< T, VDIM, FDIM >::VectorOfFunctionsSpace ( World world)
inline

◆ ~VectorOfFunctionsSpace()

template<typename T , int VDIM, int FDIM>
virtual madness::VectorOfFunctionsSpace< T, VDIM, FDIM >::~VectorOfFunctionsSpace ( )
inlinevirtual

Member Function Documentation

◆ destroy()

template<typename T , int VDIM, int FDIM>
virtual void madness::VectorOfFunctionsSpace< T, VDIM, FDIM >::destroy ( Vector< Function< scalar_type, FDIM >, VDIM > &  ) const
inlinevirtual

Any special instructions to be executed when a vector is no longer needed.

Unless otherwise specified, do nothing.

Reimplemented from madness::AbstractVectorSpace< Vector< Function< T, FDIM >, VDIM >, TensorTypeData< T >::float_scalar_type, T >.

References madness::f.

◆ gaxpy()

template<typename T , int VDIM, int FDIM>
virtual Vector<Function<scalar_type, FDIM>, VDIM>& madness::VectorOfFunctionsSpace< T, VDIM, FDIM >::gaxpy ( Vector< Function< scalar_type, FDIM >, VDIM > &  x,
const scalar_type a,
const Vector< Function< scalar_type, FDIM >, VDIM > &  y,
const scalar_type b 
) const
inlinevirtual

Standard bilinear gaxpy.

\[ \vec{x} \leftarrow a \vec{x} + b \vec{y} \]

Returns
The new vector, $\vec{x}$

Implements madness::AbstractVectorSpace< Vector< Function< T, FDIM >, VDIM >, TensorTypeData< T >::float_scalar_type, T >.

References a, and b.

◆ inner()

template<typename T , int VDIM, int FDIM>
virtual scalar_type madness::VectorOfFunctionsSpace< T, VDIM, FDIM >::inner ( const Vector< Function< scalar_type, FDIM >, VDIM > &  ,
const Vector< Function< scalar_type, FDIM >, VDIM > &   
) const
inlinevirtual

◆ norm()

template<typename T , int VDIM, int FDIM>
virtual real_type madness::VectorOfFunctionsSpace< T, VDIM, FDIM >::norm ( const Vector< Function< scalar_type, FDIM >, VDIM > &  ) const
inlinevirtual

◆ scale()

template<typename T , int VDIM, int FDIM>
virtual Vector<Function<scalar_type, FDIM>, VDIM>& madness::VectorOfFunctionsSpace< T, VDIM, FDIM >::scale ( Vector< Function< scalar_type, FDIM >, VDIM > &  ,
const scalar_type  
) const
inlinevirtual

Scales the vector (in-place) by a constant.

\[ \vec{x} \leftarrow c \vec{x} \]

Returns
The scaled vector

Implements madness::AbstractVectorSpace< Vector< Function< T, FDIM >, VDIM >, TensorTypeData< T >::float_scalar_type, T >.

References c, and madness::vec().


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