Debian Codegraph @

common/core_linalg2.h

raw
1 /*****************************************************************************
2 * Free42 -- an HP-42S calculator simulator
3 * Copyright (C) 2004-2026 Thomas Okken
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License, version 2,
7 * as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see http://www.gnu.org/licenses/.
16 *****************************************************************************/
17
18 #ifndef CORE_LINALG2_H
19 #define CORE_LINALG2_H 1
20
21 #include "core_variables.h"
22
23 int lu_decomp_r(vartype_realmatrix *a, int4 *perm,
24 int (*completion)(int, vartype_realmatrix *,
25 int4 *, phloat));
26
27 int lu_decomp_c(vartype_complexmatrix *a, int4 *perm,
28 int (*completion)(int, vartype_complexmatrix *,
29 int4 *, phloat, phloat));
30
31 int lu_backsubst_rr(vartype_realmatrix *a,
32 int4 *perm,
33 vartype_realmatrix *b,
34 int (*completion)(int, vartype_realmatrix *,
35 int4 *, vartype_realmatrix *));
36
37 int lu_backsubst_rc(vartype_realmatrix *a,
38 int4 *perm,
39 vartype_complexmatrix *b,
40 int (*completion)(int, vartype_realmatrix *,
41 int4 *, vartype_complexmatrix *));
42
43 int lu_backsubst_cc(vartype_complexmatrix *a,
44 int4 *perm,
45 vartype_complexmatrix *b,
46 int (*completion)(int, vartype_complexmatrix *,
47 int4 *, vartype_complexmatrix *));
48
49 #endif