LADEL main
Sparse LDL factorization package with rank 1 and rowadd/rowdel updates
Functions
ladel_scale.h File Reference

Detailed Description

Routines to scale the columns and rows of a matrix, or the whole matrix itself.

Author
Ben Hermans

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...
 

Function Documentation

◆ ladel_infinity_norm_columns()

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)\).

Parameters
MMatrix
normsOutput vector of infinity norms

Definition at line 28 of file ladel_scale.c.

◆ ladel_infinity_norm_rows()

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)\).

Parameters
MMatrix
normsOutput vector of infinity norms

Definition at line 40 of file ladel_scale.c.

◆ ladel_scale_columns()

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)\).

Parameters
MMatrix
SArray with scale factors for the columns

Definition at line 6 of file ladel_scale.c.

◆ ladel_scale_rows()

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,:)\).

Parameters
MMatrix
SArray with scale factors for the rows

Definition at line 14 of file ladel_scale.c.

◆ ladel_scale_scalar()

void ladel_scale_scalar ( ladel_sparse_matrix M,
ladel_double  s 
)

Scales the elements of M with s, that is \(M = sM\).

Parameters
MMatrix
sScaling factor

Definition at line 21 of file ladel_scale.c.