1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (C) 2016-2018 ERGO-Code
// Copyright (C) 2022-2023 Richard Lincoln
use cratedfs;
use crateLUInt;
// Symbolic solve with triangular matrix.
//
// The pattern of the right-hand side is given in `irhs[0..nrhs-1]`. The
// pattern of the solution is returned in `ilhs[top..m-1]` in topological
// order, top is the function return value.
//
// When `end` is not `None`, then the pattern of column `j` of the matrix must be
// given in `index[begin[j]..end[j]-1]`. When end is `None`, then each column must
// be terminated by a negative index.
//
// The method is due to J. Gilbert and T. Peierls, "Sparse partial pivoting
// in time proportional to arithmetic operations", (1988).
pub