| Woolz Image Processing
    Version 1.7.5
    | 
Basic vector arithmatic. More...
| Functions | |
| void | AlgVectorZero (double *aV, size_t n) | 
| sets all elements of the given vector to zero.  More... | |
| double | AlgVectorNorm (double *aV, size_t n) | 
| Computes the norm of the given vector \(\mathbf{a}\) with n elements: \[ \|\mathbf{a}\| = \sqrt{\mathbf{a} \cdot \mathbf{a}}. \] .  More... | |
| double | AlgVectorDot (double *aV, double *bV, size_t n) | 
| Computes the scalar (dot) product of the two vectors \(\mathbf{a}\) and \(\mathbf{b}\) each with n elements: \[ \mathbf{a} \cdot \mathbf{b} = \sum_{i = 0}^{n - 1}{a_i b_i} \] .  More... | |
| void | AlgVectorAdd (double *aV, double *bV, double *cV, size_t n) | 
| Adds vector \(\mathbf{b}\) to vector \(\mathbf{c}\). Computes \(a_i = b_i + c_i, \forall i \in [0 \ldots n - 1]\).  More... | |
| void | AlgVectorSub (double *aV, double *bV, double *cV, size_t n) | 
| Subtracts vector \(\mathbf{c}\) from vector \(\mathbf{b}\). Computes \(a_i = b_i - c_i, \forall i \in [0 \ldots n - 1]\).  More... | |
| void | AlgVectorCopy (double *aV, double *bV, size_t n) | 
| Copies one vector \(\mathbf{b}\) to vector \(\mathbf{a}\). \(a_i = b_i, \forall i \in [0 \ldots n - 1]\).  More... | |
| void | AlgVectorScale (double *aV, double *bV, double s, size_t n) | 
| Scales a vector \(\mathbf{b}\). Computes \(a_i = b_i s, \forall i \in [0\ldots n - 1]\).  More... | |
| void | AlgVectorScaleAdd (double *aV, double *bV, double *cV, double s, size_t n) | 
| Scales a vector \(\mathbf{b}\) and then adds vector \(\mathbf{c}\). Computes \(a_i = b_i s + c_i, \forall i \in [0\ldots n - 1]\).  More... | |
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 \(\mathbf{b}\). Computes \(a_i = b_i s, \forall i \in [0\ldots n - 1]\).
| aV | Vector \(\mathbf{a}\). | 
| bV | Vector \(\mathbf{b}\). | 
| s | Scalar scale \(s\). | 
| 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 \(\mathbf{b}\) and then adds vector \(\mathbf{c}\). Computes \(a_i = b_i s + c_i, \forall i \in [0\ldots n - 1]\).
| aV | Vector \(\mathbf{a}\). | 
| bV | Vector \(\mathbf{b}\). | 
| cV | Vector \(\mathbf{c}\). | 
| s | Scalar scale \(s\). | 
| n | Number of elements in each of the vectors. | 
Referenced by AlgMatrixCGSolve().