MADNESS
0.10.1
|
A vector space using MADNESS Vectors. More...
#include <gmres.h>
Public Types | |
typedef TensorTypeData< T >::float_scalar_type | real_type |
typedef T | scalar_type |
Public Member Functions | |
VectorSpace (World &world) | |
virtual | ~VectorSpace () |
virtual Vector< scalar_type, NDIM > & | gaxpy (Vector< scalar_type, NDIM > &x, const scalar_type &a, const Vector< scalar_type, NDIM > &y, const scalar_type &b) const |
Standard bilinear gaxpy. More... | |
virtual scalar_type | inner (const Vector< scalar_type, NDIM > &l, const Vector< scalar_type, NDIM > &r) const |
The inner product between two vectors. More... | |
virtual real_type | norm (const Vector< scalar_type, NDIM > &vec) const |
The norm of a vector. More... | |
virtual Vector< scalar_type, NDIM > & | scale (Vector< scalar_type, NDIM > &vec, const scalar_type &c) const |
Scales the vector (in-place) by a constant. More... | |
Public Member Functions inherited from madness::AbstractVectorSpace< Vector< T, NDIM >, TensorTypeData< T >::float_scalar_type, T > | |
AbstractVectorSpace (World &world) | |
Make a vector space. More... | |
virtual | ~AbstractVectorSpace () |
virtual void | destroy (Vector< T, NDIM > &) const |
Any special instructions to be executed when a vector is no longer needed. More... | |
Static Protected Attributes | |
static const bool | iscplx = TensorTypeData<T>::iscomplex |
Additional Inherited Members | |
Public Attributes inherited from madness::AbstractVectorSpace< Vector< T, NDIM >, TensorTypeData< T >::float_scalar_type, T > | |
World & | world |
The world. More... | |
A vector space using MADNESS Vectors.
typedef TensorTypeData<T>::float_scalar_type madness::VectorSpace< T, NDIM >::real_type |
typedef T madness::VectorSpace< T, NDIM >::scalar_type |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Standard bilinear gaxpy.
Implements madness::AbstractVectorSpace< Vector< T, NDIM >, TensorTypeData< T >::float_scalar_type, T >.
|
inlinevirtual |
The inner product between two vectors.
Implements madness::AbstractVectorSpace< Vector< T, NDIM >, TensorTypeData< T >::float_scalar_type, T >.
References madness::conj(), madness::VectorSpace< T, NDIM >::iscplx, and NDIM.
|
inlinevirtual |
The norm of a vector.
Implements madness::AbstractVectorSpace< Vector< T, NDIM >, TensorTypeData< T >::float_scalar_type, T >.
References madness::imag(), madness::VectorSpace< T, NDIM >::iscplx, NDIM, madness::real(), and madness::vec().
Referenced by cplxvec0(), cplxvec1(), cplxvec2(), realvec0(), realvec1(), and realvec2().
|
inlinevirtual |
Scales the vector (in-place) by a constant.
Implements madness::AbstractVectorSpace< Vector< T, NDIM >, TensorTypeData< T >::float_scalar_type, T >.
References c, and madness::vec().
|
staticprotected |
Referenced by madness::VectorSpace< T, NDIM >::inner(), and madness::VectorSpace< T, NDIM >::norm().