Routines to scale the columns and rows of a matrix, or the whole matrix itself.
This also includes routines to compute the row-wise and column-wise infinity norms.
Definition in file ladel_scale.h.
#include "ladel_types.h"
Include dependency graph for ladel_scale.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| void | ladel_scale_columns (ladel_sparse_matrix *M, const ladel_double *S) |
| Scales the columns of M with the scalars in S, that is \(M(:,i) = S(i)*M(:,i)\). More... | |
| void | ladel_scale_rows (ladel_sparse_matrix *M, const ladel_double *S) |
| Scales the rows of M with the scalars in S, that is \(M(i,:) = S(i)*M(i,:)\). More... | |
| void | ladel_scale_scalar (ladel_sparse_matrix *M, ladel_double s) |
| Scales the elements of M with s, that is \(M = sM\). More... | |
| void | ladel_infinity_norm_columns (ladel_sparse_matrix *M, ladel_double *norms) |
| Computes the column-wise infinity norms, that is \(norms(i) = norm(M(:,i), inf)\). More... | |
| void | ladel_infinity_norm_rows (ladel_sparse_matrix *M, ladel_double *norms) |
| Computes the row-wise infinity norms, that is \(norms(i) = norm(M(i,:), inf)\). More... | |
| void ladel_infinity_norm_columns | ( | ladel_sparse_matrix * | M, |
| ladel_double * | norms | ||
| ) |
Computes the column-wise infinity norms, that is \(norms(i) = norm(M(:,i), inf)\).
| M | Matrix |
| norms | Output vector of infinity norms |
Definition at line 28 of file ladel_scale.c.
| void ladel_infinity_norm_rows | ( | ladel_sparse_matrix * | M, |
| ladel_double * | norms | ||
| ) |
Computes the row-wise infinity norms, that is \(norms(i) = norm(M(i,:), inf)\).
| M | Matrix |
| norms | Output vector of infinity norms |
Definition at line 40 of file ladel_scale.c.
| void ladel_scale_columns | ( | ladel_sparse_matrix * | M, |
| const ladel_double * | S | ||
| ) |
Scales the columns of M with the scalars in S, that is \(M(:,i) = S(i)*M(:,i)\).
| M | Matrix |
| S | Array with scale factors for the columns |
Definition at line 6 of file ladel_scale.c.
| void ladel_scale_rows | ( | ladel_sparse_matrix * | M, |
| const ladel_double * | S | ||
| ) |
Scales the rows of M with the scalars in S, that is \(M(i,:) = S(i)*M(i,:)\).
| M | Matrix |
| S | Array with scale factors for the rows |
Definition at line 14 of file ladel_scale.c.
| void ladel_scale_scalar | ( | ladel_sparse_matrix * | M, |
| ladel_double | s | ||
| ) |
Scales the elements of M with s, that is \(M = sM\).
| M | Matrix |
| s | Scaling factor |
Definition at line 21 of file ladel_scale.c.