Skip to content

Commit 875fe9d

Browse files
authored
lib/gmath: Fix typos (#5704)
1 parent 70c4981 commit 875fe9d

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

lib/gmath/gmathlib.dox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ The wrapper integrates the ccmath library functions into the gmath
192192
structure. Hence only gmath memory allocation function should be used to create
193193
vector and matrix structures used by ccmath.
194194

195-
This is the documentation of the linear algebra part of the the ccmath library used by GRASS.
195+
This is the documentation of the linear algebra part of the ccmath library used by GRASS.
196196
It was written by Daniel A. Atkinson and provides a detailed description of the available
197197
linear algebra functions.
198198
\verbatim

lib/gmath/la.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ mat_struct *G_matrix_copy(const mat_struct *A)
173173
/*!
174174
* \fn mat_struct *G_matrix_add (mat_struct *mt1, mat_struct *mt2)
175175
*
176-
* \brief Adds two matricies
176+
* \brief Adds two matrices
177177
*
178-
* Adds two matricies <b>mt1</b> and <b>mt2</b> and returns a
178+
* Adds two matrices <b>mt1</b> and <b>mt2</b> and returns a
179179
* resulting matrix. The return structure is automatically initialized.
180180
*
181181
* \param mt1
@@ -191,9 +191,9 @@ mat_struct *G_matrix_add(mat_struct *mt1, mat_struct *mt2)
191191
/*!
192192
* \fn mat_struct *G_matrix_subtract (mat_struct *mt1, mat_struct *mt2)
193193
*
194-
* \brief Subtract two matricies
194+
* \brief Subtract two matrices
195195
*
196-
* Subtracts two matricies <b>mt1</b> and <b>mt2</b> and returns
196+
* Subtracts two matrices <b>mt1</b> and <b>mt2</b> and returns
197197
* a resulting matrix. The return matrix is automatically initialized.
198198
*
199199
* \param mt1
@@ -346,7 +346,7 @@ mat_struct *G__matrix_add(mat_struct *mt1, mat_struct *mt2, const double c1,
346346
/*!
347347
* \fn mat_struct *G_matrix_product (mat_struct *mt1, mat_struct *mt2)
348348
*
349-
* \brief Returns product of two matricies
349+
* \brief Returns product of two matrices
350350
*
351351
* Returns a matrix with the product of matrix <b>mt1</b> and
352352
* <b>mt2</b>. The return matrix is automatically initialized.

lib/gmath/solvers_direct_cholesky_band.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void G_math_cholesky_sband_substitution(double **T, double *x, double *b,
124124
}
125125

126126
/*--------------------------------------------------------------------------------------*/
127-
/* Tcholetsky matrix invertion */
127+
/* Tcholetsky matrix inversion */
128128

129129
void G_math_cholesky_sband_invert(double **A, double *invAdiag, int rows,
130130
int bandwidth)
@@ -140,12 +140,12 @@ void G_math_cholesky_sband_invert(double **A, double *invAdiag, int rows,
140140
/* T computation */
141141
G_math_cholesky_sband_decomposition(A, T, rows, bandwidth);
142142

143-
/* T Diagonal invertion */
143+
/* T Diagonal inversion */
144144
for (i = 0; i < rows; i++) {
145145
T[i][0] = 1.0 / T[i][0];
146146
}
147147

148-
/* A Diagonal invertion */
148+
/* A Diagonal inversion */
149149
for (i = 0; i < rows; i++) {
150150
vect[0] = T[i][0];
151151
invAdiag[i] = vect[0] * vect[0];
@@ -169,7 +169,7 @@ void G_math_cholesky_sband_invert(double **A, double *invAdiag, int rows,
169169
}
170170

171171
/*--------------------------------------------------------------------------------------*/
172-
/* Tcholetsky matrix solution and invertion */
172+
/* Tcholetsky matrix solution and inversion */
173173

174174
void G_math_solver_cholesky_sband_invert(double **A, double *x, double *b,
175175
double *invAdiag, int rows,
@@ -188,12 +188,12 @@ void G_math_solver_cholesky_sband_invert(double **A, double *x, double *b,
188188
G_math_cholesky_sband_decomposition(A, T, rows, bandwidth);
189189
G_math_cholesky_sband_substitution(T, x, b, rows, bandwidth);
190190

191-
/* T Diagonal invertion */
191+
/* T Diagonal inversion */
192192
for (i = 0; i < rows; i++) {
193193
T[i][0] = 1.0 / T[i][0];
194194
}
195195

196-
/* A Diagonal invertion */
196+
/* A Diagonal inversion */
197197
for (i = 0; i < rows; i++) {
198198
vect[0] = T[i][0];
199199
invAdiag[i] = vect[0] * vect[0];

lib/gmath/solvers_krylov.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ int G_math_solver_pcg(double **A, double *x, double *b, int rows, int maxit,
101101
int G_math_solver_pcg_sband(double **A, double *x, double *b, int rows,
102102
int bandwidth, int maxit, double err, int prec)
103103
{
104-
G_fatal_error("Preconditioning of band matrics is not implemented yet");
104+
G_fatal_error("Preconditioning of band matrices is not implemented yet");
105105
return solver_pcg(A, NULL, x, b, rows, maxit, err, prec, 1, bandwidth);
106106
}
107107

0 commit comments

Comments
 (0)