|
lambda-lanczos 2.1.1
|
#include <cassert>#include <cmath>#include <complex>#include <functional>#include <limits>#include <map>#include <numeric>#include <vector>#include "common.hpp"Go to the source code of this file.
Classes | |
| struct | lambda_lanczos::util::ManhattanNorm< T > |
| struct | lambda_lanczos::util::ManhattanNorm< std::complex< T > > |
Namespaces | |
| namespace | lambda_lanczos |
| namespace | lambda_lanczos::util |
Functions | |
| template<typename T> | |
| T | lambda_lanczos::util::inner_prod (const std::vector< T > &v1, const std::vector< T > &v2) |
| Returns "mathematical" inner product of v1 and v2. | |
| template<typename T> | |
| real_t< T > | lambda_lanczos::util::norm (const std::vector< T > &vec) |
| Returns Euclidean norm of given vector. | |
| template<typename T1, typename T2> | |
| void | lambda_lanczos::util::scalar_mul (T1 a, std::vector< T2 > &vec) |
| Multiplies each element of vec by a. | |
| template<typename T> | |
| void | lambda_lanczos::util::normalize (std::vector< T > &vec) |
| Normalizes given vector. | |
| template<typename T> | |
| real_t< T > | lambda_lanczos::util::m_norm (const std::vector< T > &vec) |
| Returns Manhattan-like norm of given vector. | |
| template<typename ForwardIterator, typename T> | |
| void | lambda_lanczos::util::schmidt_orth (std::vector< T > &uorth, ForwardIterator first, ForwardIterator last) |
| Orthogonalizes vector uorth with respect to orthonormal vectors defined by given iterators. | |
| template<typename T> | |
| void | lambda_lanczos::util::initAsIdentity (std::vector< std::vector< T > > &a, size_t n) |
| Initializes the given matrix a to an n by n identity matrix. | |