Go to the source code of this file.
Functions | |
double | lwpr_math_norm2 (const double *x, int n) |
Computes the square norm of a vector of doubles. | |
double | lwpr_math_dot_product (const double *a, const double *b, int n) |
Computes the dot product between two vectors of doubles. | |
void | lwpr_math_scalar_vector (double *y, double a, const double *x, int n) |
Multiplies a vector by a scalar and stores the result in another vector. | |
void | lwpr_math_add_scalar_vector (double *y, double a, const double *x, int n) |
Multiplies a vector by a scalar and adds the result to another vector. | |
void | lwpr_math_scale_add_scalar_vector (double b, double *y, double a, const double *x, int n) |
Multiplies a vector by a scalar and adds the result to another vector, which is scaled before the addition. | |
int | lwpr_math_cholesky (int N, int Ns, double *R, const double *A) |
Computes the Cholesky decomposition of a matrix. |
|
Multiplies a vector by a scalar and adds the result to another vector.
|
|
Computes the Cholesky decomposition of a matrix.
Since the decomposition is done in place, you can also call lwpr_math_cholesky(n,n,R,NULL); |
|
Computes the dot product between two vectors of doubles.
|
|
Computes the square norm of a vector of doubles.
|
|
Multiplies a vector by a scalar and stores the result in another vector.
|
|
Multiplies a vector by a scalar and adds the result to another vector, which is scaled before the addition.
|