Routines for computing euclidean norm of a Vector/VectorRange, or normalizing a Vector/VectorRange to unit euclidean length.
More...
#include <myramath/utility/detail/LIBPUBLIC.h>
#include <myramath/utility/Number.h>
Go to the source code of this file.
|
|
NumberS | myra::euclidean2 (const CVectorRange< NumberS > &x) |
| Returns x'x.
|
|
NumberD | myra::euclidean2 (const CVectorRange< NumberD > &x) |
| Returns x'x.
|
|
NumberS | myra::euclidean2 (const CVectorRange< NumberC > &x) |
| Returns x'x.
|
|
NumberD | myra::euclidean2 (const CVectorRange< NumberZ > &x) |
| Returns x'x.
|
|
|
NumberS | myra::euclidean (const CVectorRange< NumberS > &x) |
| Returns sqrt(x'x)
|
|
NumberD | myra::euclidean (const CVectorRange< NumberD > &x) |
| Returns sqrt(x'x)
|
|
NumberS | myra::euclidean (const CVectorRange< NumberC > &x) |
| Returns sqrt(x'x)
|
|
NumberD | myra::euclidean (const CVectorRange< NumberZ > &x) |
| Returns sqrt(x'x)
|
|
|
NumberS | myra::normalize (const VectorRange< NumberS > &x) |
| Normalizes x to unit length, as measured in euclidean() norm. Returns prior length.
|
|
NumberD | myra::normalize (const VectorRange< NumberD > &x) |
| Normalizes x to unit length, as measured in euclidean() norm. Returns prior length.
|
|
NumberS | myra::normalize (const VectorRange< NumberC > &x) |
| Normalizes x to unit length, as measured in euclidean() norm. Returns prior length.
|
|
NumberD | myra::normalize (const VectorRange< NumberZ > &x) |
| Normalizes x to unit length, as measured in euclidean() norm. Returns prior length.
|
|
|
void | myra::normalize_columns (const MatrixRange< NumberS > &A) |
| Normalizes each column vector of A to unit length, as measured in euclidean() norm.
|
|
void | myra::normalize_columns (const MatrixRange< NumberD > &A) |
| Normalizes each column vector of A to unit length, as measured in euclidean() norm.
|
|
void | myra::normalize_columns (const MatrixRange< NumberC > &A) |
| Normalizes each column vector of A to unit length, as measured in euclidean() norm.
|
|
void | myra::normalize_columns (const MatrixRange< NumberZ > &A) |
| Normalizes each column vector of A to unit length, as measured in euclidean() norm.
|
|
Routines for computing euclidean norm of a Vector/VectorRange, or normalizing a Vector/VectorRange to unit euclidean length.