Functions | |
double | norm_vector (double *v, int n) |
double | norminf_vector (double *v, int n) |
double | norm (double v[4]) |
DEPRECATED: See norm_dvec_1(). More... | |
void | normalize (double v[4], double vn[4]) |
DEPRECATED: See normalize_dvec_1() More... | |
double | norminf_vector_1 (double *v, int n) |
Compute the maximum of a vector. More... | |
double | norm_dvec_0 (double *vec, int l_v) |
compute the norm of a [l_v sized] vector of doubles, starting with index 0 More... | |
double | norm_dvec_1 (double *vec, int l_v) |
compute the norm of a [l_v sized] vector of doubles, starting with index 1 More... | |
void | normalize_dvec_0 (double *vec, double *vn, int l_v) |
Compute the normalize vector with starting with index 0. More... | |
void | normalize_dvec_1 (double *vec, double *vn, int l_v) |
Compute the normalize vector with first index is 1. More... | |
double norm | ( | double | v[4] | ) |
DEPRECATED: See norm_dvec_1().
Compute the Euclidean norm of a double vector with first index is 1. The vector has unused index 0. See get_dvec_1() to such vector creation.
[in] | v | vector of size 4 with first element unused. |
double norm_dvec_0 | ( | double * | vec, |
int | l_v | ||
) |
compute the norm of a [l_v sized] vector of doubles, starting with index 0
[in] | vec | the vector of doubles |
[in] | l_v | the size of the vector |
double norm_dvec_1 | ( | double * | vec, |
int | l_v | ||
) |
compute the norm of a [l_v sized] vector of doubles, starting with index 1
[in] | vec | the vector of doubles |
[in] | l_v | the size of the vector (0 element not taken into account) |
double norm_vector | ( | double * | v, |
int | n | ||
) |
void normalize | ( | double | v[4], |
double | vn[4] | ||
) |
DEPRECATED: See normalize_dvec_1()
Compute the normalize vector with first index is 1. The vector has unused index 0. See get_dvec_1() to such vector creation.
WARNING: if norm(v) is 0, a division by 0 will occurs.
[in] | v | vector of size 4 with first element unused. |
[in,out] | vn | the normalized vector v, index starting at 1. |
void normalize_dvec_0 | ( | double * | vec, |
double * | vn, | ||
int | l_v | ||
) |
Compute the normalize vector with starting with index 0.
WARNING: if the norm of vec is 0, a division by 0 will occurs.
[in] | vec | vector of double to be normalized. |
[in,out] | vn | the normalized vector vec. |
[in] | l_v | the size of the vector. |
void normalize_dvec_1 | ( | double * | vec, |
double * | vn, | ||
int | l_v | ||
) |
Compute the normalize vector with first index is 1.
The vector has unused index 0. See get_dvec_1() to such vector creation.
WARNING: if norm(v) is 0, a division by 0 will occurs.
[in] | vec | vector of double to be normalized with first element unused. |
[in,out] | vn | the normalized vector vec, with first element unused. |
[in] | l_v | the size of the vector (0 element not taken into account) |
double norminf_vector | ( | double * | v, |
int | n | ||
) |
double norminf_vector_1 | ( | double * | v, |
int | n | ||
) |
Compute the maximum of a vector.
[in] | v | A vector of floats, starting with index 1. |
[in] | size | The number of elements in the array. |