-
-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1ffa9b
commit d363531
Showing
1 changed file
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
|
||
{{alias}}( order, M, N, A, LDA ) | ||
Return last non-zero row of matrix `A`. | ||
|
||
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'. | ||
|
||
M: integer | ||
Number of rows in `A`. | ||
|
||
N: integer | ||
Number of columns in `A`. | ||
|
||
A: Float64Array | ||
Input matrix `A`. | ||
|
||
LDA: integer | ||
Stride of the first dimension of `A` (a.k.a., leading dimension of the | ||
matrix `A`). | ||
|
||
Returns | ||
------- | ||
out: integer | ||
Index of last non-zero row. | ||
|
||
Examples | ||
-------- | ||
> var A = new {{alias:@stdlib/array/float64}}( [ 1.0, 2.0, 3.0, 4.0 ] ); | ||
> {{alias}}( 'row-major', 2, 2, A, 2 ) | ||
1 | ||
|
||
|
||
{{alias}}.ndarray( M, N, A, sa1, sa2, oa ) | ||
Returns last non-zero row of matrix `A` using alternative 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 | ||
---------- | ||
M: integer | ||
Number of rows in `A`. | ||
|
||
N: integer | ||
Number of columns in `A`. | ||
|
||
A: Float64Array | ||
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 | ||
------- | ||
out: integer | ||
Index of last non-zero row. | ||
|
||
Examples | ||
-------- | ||
> var A = new {{alias:@stdlib/array/float64}}( [ 1.0, 2.0, 3.0, 4.0 ] ); | ||
> {{alias}}.ndarray( 2, 2, A, 2, 1, 0 ) | ||
1 | ||
|
||
See Also | ||
-------- |