LADEL main
Sparse LDL factorization package with rank 1 and rowadd/rowdel updates
ladel_transpose.h
Go to the documentation of this file.
1/**
2 * @file ladel_transpose.h
3 * @author Ben Hermans
4 * @brief Routine to compute the transpose of a matrix.
5 */
6
7#ifndef LADEL_TRANSPOSE_H
8#define LADEL_TRANSPOSE_H
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#include "ladel_types.h"
15
16/**
17 * Returns the transpose of a matrix, that is @f$out = M^T@f$.
18 *
19 * If @a M is a pattern matrix, or if @a values==FALSE, a pattern matrix is returned
20 * with the pattern of @f$M^T@f$.
21 *
22 * @param M Input matrix
23 * @param values Flag to indicate value or pattern computation
24 * @param work LADEL workspace
25 * @return @f$M^T@f$ (or its pattern)
26 */
28 ladel_int values,
29 ladel_work *work);
30
31#ifdef __cplusplus
32}
33#endif
34
35#endif /*LADEL_TRANSPOSE_H*/
ladel_sparse_matrix * ladel_transpose(ladel_sparse_matrix *M, ladel_int values, ladel_work *work)
Returns the transpose of a matrix, 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
Workspace required for various routines in LADEL.
Definition: ladel_types.h:109