Type |
Documentation |
ietl::vectorspace_traits<VS>::vector_type |
the type of vectors in the vector space |
ietl::vectorspace_traits<VS>::scalar_type |
the type of scalars in the vector space |
ietl::vectorspace_traits<VS>::magnitude_type |
a scalar type appropriate for storing norms, usually the
same as scalar_type for real types, or the corresponding real
type for complex types. |
ietl::vectorspace_traits<VS>::size_type |
an integral type large enough to store the dimension of the
vector space |
Expression |
return type |
Documentation |
new_vector(vs) |
ietl::vectorspace_traits<VS> |
creates a new vector of the vector space |
vec_dimension(vs) |
ietl::vectorspace_traits<VS>::size_type |
returns the dimension of the vector space |
project(x,vs) |
void |
projects the vector x into the vector space.
|
Expression |
return type |
Documentation |
ietl::mult(a,x,y) |
void |
calculates the matrix-vector product
y=a*x |
Expression |
return type |
Documentation |
ietl::generate(x,g) |
void |
fills the vector x with numbers from the generator
g. For a standard container this can be implemented as
std::generate(x.begin(),x.end(),g); |
std::swap(x,y) |
void |
swaps the two vectors x and y |
ietl::dot(x,y) |
S |
calculates the scalar product of the two vectors x
and y. |
ietl::two_norm(x) |
M |
calculates the 2-norm of the vector x. This is
equivalent to sqrt(ietl::dot(x,x)). |
ietl::copy(x,y) |
void |
a deep copy y = x. Modifications of x
after the call are not allowed to modify y. |
y = x |
const V& |
a (possibly shallow) copy |
x *= t |
const V& |
|
x /= t |
const V& |
|
x += y |
const V& |
|
x += t*y |
const V& |
|
x -= t*y |
const V& |
|
x = t*y |
const V& |
Expression |
return type |
Documentation |
++it |
void |
is called at the start of a new iteration |
it.finished(residual, lambda) |
bool |
returns true if the desired accuracy is reached
and the iteration can be terminated, returns false otherwise.
residual and lambda are of the magnitude_type
and are the residual and and latest estimate of the eigenvalue
respectively |
Expression |
return type |
Documentation |
++it |
void |
is called at the start of a new iteration |
it.finished(tmatrix) |
bool |
returns true if the desired accuracy is reached
and the iteration can be terminated, returns false otherwise.
The T-matrix of the Lanczos iterations is passed as
argument. |