|
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. | |
| virtual scalar_type | inner (const Vector< scalar_type, NDIM > &l, const Vector< scalar_type, NDIM > &r) const |
| The inner product between two vectors. | |
| virtual real_type | norm (const Vector< scalar_type, NDIM > &vec) const |
| The norm of a vector. | |
| virtual Vector< scalar_type, NDIM > & | scale (Vector< scalar_type, NDIM > &vec, const scalar_type &c) const |
| Scales the vector (in-place) by a constant. | |
Public Member Functions inherited from madness::AbstractVectorSpace< Vector< T, NDIM >, TensorTypeData< T >::float_scalar_type, T > | |
| AbstractVectorSpace (World &world) | |
| Make a vector space. | |
| virtual | ~AbstractVectorSpace () |
| virtual void | destroy (Vector< T, NDIM > &) const |
| Any special instructions to be executed when a vector is no longer needed. | |
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. | |
A vector space using MADNESS Vectors.
| typedef TensorTypeData<T>::float_scalar_type madness::VectorSpace< T, NDIM >::real_type |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Standard bilinear gaxpy.
![\[ \vec{x} \leftarrow a \vec{x} + b \vec{y} \]](form_428.png)

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, NDIM, and madness::nonlinear_vector_solver().
|
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::nonlinear_vector_solver(), madness::real(), and madness::vec().
|
inlinevirtual |
Scales the vector (in-place) by a constant.
![\[ \vec{x} \leftarrow c \vec{x} \]](form_427.png)
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().