-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathrepl.txt
More file actions
115 lines (88 loc) · 2.88 KB
/
repl.txt
File metadata and controls
115 lines (88 loc) · 2.88 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{{alias}}( order, N, A, LDA, IPIV, JPIV )
Computes the LU factorization with complete pivoting of the general
n-by-n matrix `A`.
The function overwrites the input matrix A with the factors L and U
from the factorization A = P*L*U*Q; the unit diagonal elements of L
are not stored.
Parameters
----------
order: string
Row-major (C-style) or column-major (Fortran-style) order. Must be
either 'row-major' or 'column-major'.
N: integer
Number of columns in matrix A.
A: Float64Array
Input matrix (overwritten with `L` and `U` on output).
LDA: integer
Stride of the first dimension of A (a.k.a., leading dimension of the
matrix A) `LDA` >= max(1,N).
IPIV: Int32Array
Vector of `N` pivot indices of rows.
JPIV: Int32Array
Vector of `N` pivot indices of rows.
Returns
-------
info: integer
Status code.
Examples
--------
> var A = new {{alias:@stdlib/array/float64}}([ 1,2,3,4,5,6,7,8,10 ]);
> var IPIV = new {{alias:@stdlib/array/int32}}( 3 );
> var JPIV = new {{alias:@stdlib/array/int32}}( 3 );
> {{alias}}( 'column-major', 3, A, 3, IPIV, JPIV )
0
> A
<Float64Array>[ 10, 0.7, 0.8, 3, ~-1.1, ~0.36, 6, ~-0.2, ~0.27 ]
> IPIV
<Int32Array>[ 3, 3, 3 ]
> JPIV
<Int32Array>[ 3, 3, 3 ]
{{alias}}.ndarray( N, A, sa1, sa2, oa, IPIV, si, oi, JPIV, sj, oj )
Computes the LU factorization with complete pivoting of the general
n-by-n matrix `A` using alternating indexing semantics.
While typed array views mandate a view offset based on the underlying
buffer, the offset parameters support indexing semantics based on starting
indices.
Parameters
----------
N: integer
Number of columns in matrix A.
A: Float64Array
Input matrix (overwritten with `L` and `U` on output).
sa1: integer
Stride of the first dimension of A.
sa2: integer
Stride of the second dimension of A.
oa: integer
Index offset for A.
IPIV: Int32Array
Vector of `N` pivot indices of rows.
si: integer
Stride length for IPIV.
oi: integer
Index offset for IPIV.
JPIV: Int32Array
Vector of `N` pivot indices of columns.
sj: integer
Stride length for JPIV.
oj: integer
Index offset for JPIV.
Returns
-------
info: integer
Status code.
Examples
--------
> var A = new {{alias:@stdlib/array/float64}}([ 1,2,3,4,5,6,7,8,10 ]);
> var IPIV = new {{alias:@stdlib/array/int32}}( 3 );
> var JPIV = new {{alias:@stdlib/array/int32}}( 3 );
> {{alias}}.ndarray( 3, A, 1, 3, 0, IPIV, 1, 0, JPIV, 1, 0 )
0
> A
<Float64Array>[ 10, 0.7, 0.8, 3, ~-1.1, ~0.36, 6, ~-0.2, ~0.27 ]
> IPIV
<Int32Array>[ 3, 3, 3 ]
> JPIV
<Int32Array>[ 3, 3, 3 ]
See Also
--------