-
-
Notifications
You must be signed in to change notification settings - Fork 804
/
Copy pathrepl.txt
113 lines (86 loc) · 3 KB
/
repl.txt
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
{{alias}}( order, uplo, M, N, alpha, beta, A, LDA )
Sets the off-diagonal elements and the diagonal elements of a double-
precision complex floating-point matrix `A` to specified values.
Indexing is relative to the first index. To introduce an offset, use typed
array views.
Parameters
----------
order: string
Row-major (C-style) or column-major (Fortran-style) order. Must be
either 'row-major' or 'column-major'.
uplo: string
Specifies whether to copy the upper or lower triangular/trapezoidal part
of a matrix `A`.
M: integer
Number of rows in `A`.
N: integer
Number of columns in `A`.
alpha: Complex128
Value assigned to off-diagonal elements.
beta: Complex128
Value assigned to diagonal elements.
A: Complex128Array
Input matrix `A`.
LDA: integer
Stride of the first dimension of `A` (a.k.a., leading dimension of the
matrix `A`).
Returns
-------
A: Complex128Array
Input matrix.
Examples
--------
> var A = new {{alias:@stdlib/array/complex128}}( 4 );
> var alpha = new {{alias:@stdlib/complex/float64/ctor}}( 1.0, 2.0 );
> var beta = new {{alias:@stdlib/complex/float64/ctor}}( 3.0, 4.0 );
> {{alias}}( 'row-major', 'all', 2, 2, alpha, beta, A, 2 );
> var z = A.get( 0 );
> {{alias:@stdlib/complex/float64/real}}( z )
3.0
> {{alias:@stdlib/complex/float64/imag}}( z )
4.0
{{alias}}.ndarray( uplo, M, N, alpha, beta, A, sa1, sa2, oa )
Sets the off-diagonal elements and the diagonal elements of a double-
precision complex floating-point matrix `A` to specified values using
alternative indexing semantics.
While typed array views mandate a view offset based on the underlying
buffer, the offset parameter supports indexing semantics based on a starting
index.
Parameters
----------
uplo: string
Specifies whether to copy the upper or lower triangular/trapezoidal part
of a matrix `A`.
M: integer
Number of rows in `A`.
N: integer
Number of columns in `A`.
alpha: Complex128
Value assigned to off-diagonal elements.
beta: Complex128
Value assigned to diagonal elements.
A: Complex128Array
Input matrix `A`.
sa1: integer
Stride of the first dimension of `A`.
sa2: integer
Stride of the second dimension of `A`.
oa: integer
Starting index for `A`.
Returns
-------
A: Complex128Array
Input matrix.
Examples
--------
> var A = new {{alias:@stdlib/array/complex128}}( 5 );
> var alpha = new {{alias:@stdlib/complex/float64/ctor}}( 1.0, 2.0 );
> var beta = new {{alias:@stdlib/complex/float64/ctor}}( 3.0, 4.0 );
> {{alias}}.ndarray( 'all', 2, 2, alpha, beta, A, 2, 1, 1 );
> var z = A.get( 1 );
> {{alias:@stdlib/complex/float64/real}}( z )
3.0
> {{alias:@stdlib/complex/float64/imag}}( z )
4.0
See Also
--------