LADEL main
Sparse LDL factorization package with rank 1 and rowadd/rowdel updates
ladel_debug_print.h
Go to the documentation of this file.
1/**
2 * @file ladel_debug_print.h
3 * @author Ben Hermans
4 * @brief Routines to print out matrices and vectors.
5 * @details The (majority of) routines here print output that can be entered into Matlab for further inspection of the matrix/vector.
6 */
7
8#ifndef LADEL_DEBUG_PRINT_H
9#define LADEL_DEBUG_PRINT_H
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#include "ladel_global.h"
16#include "ladel_types.h"
17
18/**
19 * Prints output that can be copied into Matlab to retrieve the given matrix.
20 *
21 * @param M Matrix to be printed
22 */
24
25/**
26 * Prints the contents of all entries in a matrix.
27 *
28 * The matrix may have unused entries if the nz field is active. These entries are also printed
29 * by this function for inspection.
30 *
31 * @param M Matrix to be printed
32 */
34
35/**
36 * Prints output that can be copied into Matlab to retrieve the given double vector.
37 *
38 * @param x Vector to be printed
39 * @param len Length of the vector to be printed
40 */
42 size_t len);
43
44/**
45 * Prints output that can be copied into Matlab to retrieve the given double vector.
46 *
47 * @param x Vector to be printed
48 * @param len Length of the vector to be printed
49 */
51 size_t len);
52
53/**
54 * Prints output that can be copied into Matlab to retrieve the given factor.
55 *
56 * This function basically prints L and D_inv.
57 *
58 * @param LD Factor to be printed
59 */
61
62/**
63 * Print the content of an index set.
64 *
65 * @param set Set to be printed
66 */
67void ladel_print_set(ladel_set *set);
68
69#ifdef __cplusplus
70}
71#endif
72
73#endif
void ladel_print_dense_vector_matlab(ladel_double *x, size_t len)
Prints output that can be copied into Matlab to retrieve the given double vector.
void ladel_print_sparse_matrix_entries(ladel_sparse_matrix *M)
Prints the contents of all entries in a matrix.
void ladel_print_factor_matlab(ladel_factor *LD)
Prints output that can be copied into Matlab to retrieve the given factor.
void ladel_print_sparse_matrix_matlab(ladel_sparse_matrix *M)
Prints output that can be copied into Matlab to retrieve the given matrix.
void ladel_print_dense_int_vector_matlab(ladel_int *x, size_t len)
Prints output that can be copied into Matlab to retrieve the given double vector.
void ladel_print_set(ladel_set *set)
Print the content of an index set.
Memory allocation routines.
Structures and types used in LADEL routines.
int64_t ladel_int
Type for integer numbers (default: int64_t)
Definition: ladel_types.h:24
double ladel_double
Type for floating point numbers (default: double)
Definition: ladel_types.h:20
Sparse matrix in compressed column storage.
Definition: ladel_types.h:35
Set of integers.
Definition: ladel_types.h:81
Factors of an factorization.
Definition: ladel_types.h:69