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

Detailed Description

Routines to copy matrices and vectors.

Author
Ben Hermans

Definition in file ladel_copy.h.

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

Go to the source code of this file.

Functions

ladel_sparse_matrixladel_sparse_allocate_and_copy (ladel_sparse_matrix *M)
 Copies a matrix into a newly allocated one. More...
 
void ladel_sparse_copy (ladel_sparse_matrix *M, ladel_sparse_matrix *M_copy)
 Copies a matrix (preallocated) More...
 
void ladel_int_vector_copy (ladel_int *x, ladel_int size, ladel_int *y)
 Copies an integer vector (preallocated) More...
 
void ladel_double_vector_copy (ladel_double *x, ladel_int size, ladel_double *y)
 Copies a double vector (preallocated) More...
 

Function Documentation

◆ ladel_double_vector_copy()

void ladel_double_vector_copy ( ladel_double x,
ladel_int  size,
ladel_double y 
)

Copies a double vector (preallocated)

Parameters
xVector to be copied
sizeSize of the vector
yResulting copy

Definition at line 47 of file ladel_copy.c.

+ Here is the caller graph for this function:

◆ ladel_int_vector_copy()

void ladel_int_vector_copy ( ladel_int x,
ladel_int  size,
ladel_int y 
)

Copies an integer vector (preallocated)

Parameters
xVector to be copied
sizeSize of the vector
yResulting copy

Definition at line 38 of file ladel_copy.c.

+ Here is the caller graph for this function:

◆ ladel_sparse_allocate_and_copy()

ladel_sparse_matrix * ladel_sparse_allocate_and_copy ( ladel_sparse_matrix M)

Copies a matrix into a newly allocated one.

Note that even if there is superfluous space in M (i.e. M->nz indicates the number of nonzeros per column), the returned matrix will fit the required size exactly, and not make use of the nz array.

Parameters
MMatrix to be copied
Returns
Copy of the matrix

Definition at line 5 of file ladel_copy.c.

+ Here is the call graph for this function:

◆ ladel_sparse_copy()

void ladel_sparse_copy ( ladel_sparse_matrix M,
ladel_sparse_matrix M_copy 
)

Copies a matrix (preallocated)

Parameters
MMatrix to be copied
M_copyResulting copy

Definition at line 12 of file ladel_copy.c.

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