Skip to content

Commit

Permalink
Fix documentation of norm equilibration scaling
Browse files Browse the repository at this point in the history
Norm equilibration scaling is not matching-based. Probably
copy-paste errors.
  • Loading branch information
mjacobse authored and jfowkes committed Jun 17, 2024
1 parent 077bd63 commit 7fc5ec3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/C/scaling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ Routines
.. c:function:: void spral_scaling_equilib_sym(int n, const int *ptr, const int *row, const double *val, double *scaling, const struct spral_scaling_equilib_options *options, struct spral_scaling_equilib_inform *inform)
Find a matching-based symmetric scaling using the norm-equilibration
Find a symmetric scaling using the norm-equilibration
algorithm.
The scaled matrix is such that the infinity norm of each row and column are
Expand All @@ -348,7 +348,7 @@ Routines
.. c:function:: void spral_scaling_equilib_unsym(int m, int n, const int *ptr, const int *row, const double *val, double *rscaling, double *cscaling, const struct spral_scaling_equilib_options *options, struct spral_scaling_equilib_inform *inform)
Find a matching-based unsymmetric scaling using the norm-equilibration
Find an unsymmetric scaling using the norm-equilibration
algorithm.
The scaled matrix is such that the infinity norm of each row and column are
Expand Down
4 changes: 2 additions & 2 deletions docs/Fortran/scaling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ Routines

.. f:subroutine:: equilib_scale_sym(n, ptr, row, val, scaling, options, inform)
Find a matching-based symmetric scaling using the norm-equilibration algorithm.
Find a symmetric scaling using the norm-equilibration algorithm.

The scaled matrix is such that the infinity norm of each row and column are
equal to :math:`1.0`.
Expand All @@ -275,7 +275,7 @@ Routines

.. f:subroutine:: equilib_scale_unsym(m, n, ptr, row, val, rscaling, cscaling, options, inform)
Find a matching-based unsymmetric scaling using the norm-equilibration algorithm.
Find an unsymmetric scaling using the norm-equilibration algorithm.

The scaled matrix is such that the infinity norm of each row and column are
equal to :math:`1.0`.
Expand Down
2 changes: 1 addition & 1 deletion examples/C/scaling/equilib_unsym.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int main(void) {
exit(1);
}

/* Print scaling and matching */
/* Print scaling */
printf("Row Scaling: ");
for(int i=0; i<m; i++) printf(" %10.2le", rscaling[i]);
printf("\nCol Scaling: ");
Expand Down
2 changes: 1 addition & 1 deletion examples/Fortran/scaling/equilib_sym.f90
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ program equilib_scale_sym_example
stop
endif

! Print scaling and matching
! Print scaling
write(*,"(a,10es10.2)") 'Scaling: ', scaling(1:n)

! Calculate scaled matrix and print it
Expand Down
2 changes: 1 addition & 1 deletion examples/Fortran/scaling/equilib_unsym.f90
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ program equilib_scale_unsym_example
stop
endif

! Print scaling and matching
! Print scaling
write(*,"(a,10es10.2)") 'Row Scaling: ', rscaling(1:m)
write(*,"(a,10es10.2)") 'Col Scaling: ', cscaling(1:n)

Expand Down

0 comments on commit 7fc5ec3

Please sign in to comment.