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

Detailed Description

Routines to add matrices.

Author
Ben Hermans

The add_matrices and add_matrices_pattern routines compute the scaled addition of the matrices provided or of the patterns of the matrices respectively.

Definition in file ladel_add.h.

#include "ladel_types.h"
+ Include dependency graph for ladel_add.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

ladel_sparse_matrixladel_add_matrices (ladel_double alpha, const ladel_sparse_matrix *A, ladel_double beta, const ladel_sparse_matrix *B, ladel_work *work)
 Returns a sparse matrix \(C = \alpha A + \beta B\). More...
 
ladel_sparse_matrixladel_add_matrices_pattern (const ladel_sparse_matrix *A, const ladel_sparse_matrix *B, ladel_work *work)
 Returns a pattern matrix whose pattern includes the patterns of A and B. More...
 
ladel_sparse_matrixladel_add_matrices_advanced (ladel_double alpha, const ladel_sparse_matrix *A, ladel_double beta, const ladel_sparse_matrix *B, ladel_int values, ladel_work *work)
 Returns a sparse matrix \(C = \alpha A + \beta B\) if values==TRUE, or a pattern matrix that includes the patterns of A and B if values==FALSE. More...
 

Function Documentation

◆ ladel_add_matrices()

ladel_sparse_matrix * ladel_add_matrices ( ladel_double  alpha,
const ladel_sparse_matrix A,
ladel_double  beta,
const ladel_sparse_matrix B,
ladel_work work 
)

Returns a sparse matrix \(C = \alpha A + \beta B\).

Parameters
alphaScaling for the first matrix
AThe first matrix
betaScaling for the second matrix
BThe second matrix
workLADEL workspace
Returns
\(C = \alpha A + \beta B\)

Definition at line 6 of file ladel_add.c.

+ Here is the call graph for this function:

◆ ladel_add_matrices_advanced()

ladel_sparse_matrix * ladel_add_matrices_advanced ( ladel_double  alpha,
const ladel_sparse_matrix A,
ladel_double  beta,
const ladel_sparse_matrix B,
ladel_int  values,
ladel_work work 
)

Returns a sparse matrix \(C = \alpha A + \beta B\) if values==TRUE, or a pattern matrix that includes the patterns of A and B if values==FALSE.

Parameters
alphaScaling for the first matrix
AThe first matrix
betaScaling for the second matrix
BThe second matrix
valuesFlag to choose between values and just pattern
workLADEL workspace
Returns
\(C = \alpha A + \beta B\) or the sum of the patterns

Definition at line 16 of file ladel_add.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ladel_add_matrices_pattern()

ladel_sparse_matrix * ladel_add_matrices_pattern ( const ladel_sparse_matrix A,
const ladel_sparse_matrix B,
ladel_work work 
)

Returns a pattern matrix whose pattern includes the patterns of A and B.

Parameters
AThe first matrix
BThe second matrix
workLADEL workspace
Returns
A sparse matrix whose pattern contains that of A and B

Definition at line 11 of file ladel_add.c.

+ Here is the call graph for this function: