LADEL main
Sparse LDL factorization package with rank 1 and rowadd/rowdel updates
ladel_submatrix.h
Go to the documentation of this file.
1/**
2 * @file ladel_submatrix.h
3 * @author Ben Hermans
4 * @brief Routines to produce submatrices from a given submatrix. For now, only a selection of columns is supported.
5 */
6
7#ifndef LADEL_SUBMATRIX_H
8#define LADEL_SUBMATRIX_H
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#include "ladel_types.h"
15
16/**
17 * Returns a matrix that is a selection of columns of @a M, that is @f$out = M(:,cols)@f$.
18 *
19 * @param M Input matrix
20 * @param cols List of columns to put in the submatrix
21 * @param nb_cols Number of columns to take (size of cols)
22 * @return @f$M(:,cols)@f$
23 */
25 const ladel_int *cols,
26 ladel_int nb_cols);
27
28#ifdef __cplusplus
29}
30#endif
31
32#endif /* LADEL_SUBMATRIX_H */
ladel_sparse_matrix * ladel_column_submatrix(const ladel_sparse_matrix *M, const ladel_int *cols, ladel_int nb_cols)
Returns a matrix that is a selection of columns of M, that is .
Structures and types used in LADEL routines.
int64_t ladel_int
Type for integer numbers (default: int64_t)
Definition: ladel_types.h:24
Sparse matrix in compressed column storage.
Definition: ladel_types.h:35