-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathrepl.txt
More file actions
134 lines (97 loc) · 3.37 KB
/
repl.txt
File metadata and controls
134 lines (97 loc) · 3.37 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{{alias}}( order, uplo, N, α, A, lda, x, sx, β, y, sy )
Performs the matrix-vector operation `y = α*A*x + β*y` where `α` and `β` are
scalars, `x` and `y` are `N` element vectors, and `A` is an `N` by `N`
symmetric matrix.
Indexing is relative to the first index. To introduce an offset, use typed
array views.
If `N` is equal to `0`, the function returns `y` unchanged.
If `α` equals `0` and `β` equals `1`, the function returns `y` unchanged.
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 reference the upper or lower triangular part of
`A`. Must be either 'upper' or 'lower'.
N: integer
Number of elements along each dimension of `A`.
α: number
Scalar constant.
A: Float64Array
Input matrix.
lda: integer
Stride of the first dimension of `A` (a.k.a., leading dimension of the
matrix `A`).
x: Float64Array
Input vector.
sx: integer
Index increment for `x`.
β: number
Scalar constant.
y: Float64Array
Output vector.
sy: integer
Index increment for `y`.
Returns
-------
y: Float64Array
Output vector.
Examples
--------
> var x = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0 ] );
> var y = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0 ] );
> var A = new {{alias:@stdlib/array/float64}}( [ 1.0, 2.0, 2.0, 1.0 ] );
> {{alias}}( 'row-major', 'upper', 2, 1.0, A, 2, x, 1, 1.0, y, 1 )
<Float64Array>[ 4.0, 4.0 ]
{{alias}}.ndarray( uplo, N, α, A, sa1, sa2, oa, x, sx, ox, β, y, sy, oy )
Performs the matrix-vector operation `y = α*A*x + β*y` using alternative
indexing semantics and where `α` and `β` are scalars, `x` and `y` are `N`
element vectors, and `A` is an `N` by `N` symmetric matrix.
While typed array views mandate a view offset based on the underlying
buffer, the offset parameters support indexing semantics based on starting
indices.
Parameters
----------
uplo: string
Specifies whether to reference the upper or lower triangular part of
`A`. Must be either 'upper' or 'lower'.
N: integer
Number of elements along each dimension of `A`.
α: number
Scalar constant.
A: Float64Array
Input matrix.
sa1: integer
Stride for the first dimension of `A`.
sa2: integer
Stride for the second dimension of `A`.
oa: integer
Starting index for `A`.
x: Float64Array
Input vector.
sx: integer
Index increment for `x`.
ox: integer
Starting index for `x`.
β: number
Scalar constant.
y: Float64Array
Output vector.
sy: integer
Index increment for `y`.
oy: integer
Starting index for `y`.
Returns
-------
y: Float64Array
Output array.
Examples
--------
> var x = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0 ] );
> var y = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0 ] );
> var A = new {{alias:@stdlib/array/float64}}( [ 1.0, 2.0, 2.0, 1.0 ] );
> {{alias}}.ndarray( 'upper', 2, 1.0, A, 2, 1, 0, x, 1, 0, 1.0, y, 1, 0 )
<Float64Array>[ 4.0, 4.0 ]
See Also
--------