Woolz Image Processing Version 1.4.0
|
Basic vector arithmatic. More...
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 | AlgVectorScale (double *aV, double *bV, double s, size_t n) |
Scales a vector ![]() ![]() | |
void | AlgVectorScaleAdd (double *aV, double *bV, double *cV, double s, size_t n) |
Scales a vector ![]() ![]() ![]() |
Basic vector arithmatic.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
void AlgVectorScale | ( | double * | aV, |
double * | bV, | ||
double | s, | ||
size_t | n | ||
) |
Scales a vector . Computes
.
aV | Vector ![]() |
bV | Vector ![]() |
s | Scalar scale ![]() |
n | Number of elements in each of the vectors. |
Referenced by AlgMatrixScale(), and AlgMatrixSolveLSQR().
void AlgVectorScaleAdd | ( | double * | aV, |
double * | bV, | ||
double * | cV, | ||
double | s, | ||
size_t | n | ||
) |
Scales a vector and then adds vector
. Computes
.
aV | Vector ![]() |
bV | Vector ![]() |
cV | Vector ![]() |
s | Scalar scale ![]() |
n | Number of elements in each of the vectors. |
Referenced by AlgMatrixCGSolve().