Woolz Image Processing Version 1.4.0
|
Files | |
file | AlgVectorMath.c |
Basic vector arithmatic. | |
Functions | |
void | AlgVectorZero (double *aV, size_t n) |
sets all elements of the given vector to zero. | |
double | AlgVectorNorm (double *aV, size_t n) |
Computes the norm of the given vector ![]()
| |
double | AlgVectorDot (double *aV, double *bV, size_t n) |
Computes the scalar (dot) product of the two vectors ![]() ![]()
| |
void | AlgVectorAdd (double *aV, double *bV, double *cV, size_t n) |
Adds vector ![]() ![]() ![]() | |
void | AlgVectorSub (double *aV, double *bV, double *cV, size_t n) |
Subtracts vector ![]() ![]() ![]() | |
void | AlgVectorCopy (double *aV, double *bV, size_t n) |
Copies one vector ![]() ![]() ![]() |
void AlgVectorZero | ( | double * | aV, |
size_t | n | ||
) |
sets all elements of the given vector to zero.
aV | Given vector. |
n | Number of elements. |
Referenced by AlgMatrixTVectorMul().
double AlgVectorNorm | ( | double * | aV, |
size_t | n | ||
) |
Computes the norm of the given vector with n elements:
.
aV | Given vector ![]() |
n | Number of elements in ![]() |
References AlgVectorDot().
Referenced by AlgMatrixCGSolve(), and AlgMatrixSolveLSQR().
double AlgVectorDot | ( | double * | aV, |
double * | bV, | ||
size_t | n | ||
) |
Computes the scalar (dot) product of the two vectors and
each with n elements:
.
aV | Vector ![]() |
bV | Vector ![]() |
n | Number of elements in each of the vectors. |
Referenced by AlgMatrixCGSolve(), and AlgVectorNorm().
void AlgVectorAdd | ( | double * | aV, |
double * | bV, | ||
double * | cV, | ||
size_t | n | ||
) |
Adds vector to vector
. Computes
.
aV | Vector ![]() |
bV | Vector ![]() |
cV | Vector ![]() |
n | Number of elements in each of the vectors. |
void AlgVectorSub | ( | double * | aV, |
double * | bV, | ||
double * | cV, | ||
size_t | n | ||
) |
Subtracts vector from vector
. Computes
.
aV | Vector ![]() |
bV | Vector ![]() |
cV | Vector ![]() |
n | Number of elements in each of the vectors. |
Referenced by AlgMatrixCGSolve().
void AlgVectorCopy | ( | double * | aV, |
double * | bV, | ||
size_t | n | ||
) |
Copies one vector to vector
.
.
aV | Vector ![]() |
bV | Vector ![]() |
n | Number of elements in each of the vectors. |
Referenced by AlgMatrixCGSolve(), AlgMatrixCopy(), AlgMatrixSolveLSQR(), and AlgMatrixTVectorMulAdd().