You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Returns the index of the first column in a double-precision floating-point input matrix which has the same elements as a provided search vector.
1018
+
*
1019
+
* ## Notes
1020
+
*
1021
+
* - If the function is provided an empty matrix or if the function is unable to find a matching column, the function returns `-1` (i.e., an invalid index).
1022
+
* - The `workspace` array is only applicable when an input matrix is stored in row-major order. When the matrix is stored in column-major order, the workspace array is ignored.
1023
+
*
1024
+
* @param order - storage layout
1025
+
* @param M - number of rows in `A`
1026
+
* @param N - number of columns in `A`
1027
+
* @param A - input matrix
1028
+
* @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`)
1029
+
* @param x - search vector
1030
+
* @param strideX - stride length for `x`
1031
+
* @param workspace - workspace array for tracking column match candidates
1032
+
* @param strideW - stride length for `workspace`
1033
+
* @returns column index
1034
+
*
1035
+
* @example
1036
+
* var Float64Array = require( '@stdlib/array/float64' );
1037
+
* var Uint8Array = require( '@stdlib/array/uint8' );
1038
+
*
1039
+
* var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 0.0, 0.0 ] );
1040
+
* var x = new Float64Array( [ 2.0, 4.0, 0.0 ] );
1041
+
* var workspace = new Uint8Array( 2 );
1042
+
*
1043
+
* var out = ns.dindexOfColumn( 'row-major', 3, 2, A, 2, x, 1, workspace, 1 );
1044
+
* // returns 1
1045
+
*
1046
+
* @example
1047
+
* var Float64Array = require( '@stdlib/array/float64' );
1048
+
* var Uint8Array = require( '@stdlib/array/uint8' );
1049
+
*
1050
+
* var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 0.0, 0.0 ] );
1051
+
* var x = new Float64Array( [ 2.0, 4.0, 0.0 ] );
1052
+
* var workspace = new Uint8Array( 2 );
1053
+
*
1054
+
* var out = ns.dindexOfColumn.ndarray( 3, 2, A, 2, 1, 0, x, 1, 0, workspace, 1, 0 );
1055
+
* // returns 1
1056
+
*/
1057
+
dindexOfColumn: typeofdindexOfColumn;
1058
+
1014
1059
/**
1015
1060
* Returns the index of the first row in a double-precision floating-point input matrix which has the same elements as a provided search vector.
1016
1061
*
@@ -4720,6 +4765,49 @@ interface Namespace {
4720
4765
*/
4721
4766
slastIndexOf: typeofslastIndexOf;
4722
4767
4768
+
/**
4769
+
* Returns the index of the last row in a single-precision floating-point input matrix which has the same elements as a provided search vector.
4770
+
*
4771
+
* ## Notes
4772
+
*
4773
+
* - If the function is provided an empty matrix or if the function is unable to find a search vector, the function returns `-1` (i.e., an invalid index).
4774
+
* - The `workspace` array is only applicable when an input matrix is stored in column-major order. When the matrix is stored in row-major order, the workspace array is ignored.
4775
+
*
4776
+
* @param order - storage layout
4777
+
* @param M - number of rows in `A`
4778
+
* @param N - number of columns in `A`
4779
+
* @param A - input matrix
4780
+
* @param LDA - stride length for the first dimension of `A` (a.k.a., leading dimension of the matrix `A`)
4781
+
* @param x - search vector
4782
+
* @param strideX - stride length for `x`
4783
+
* @param workspace - workspace array for tracking row match candidates
4784
+
* @param strideW - stride length for `workspace`
4785
+
* @returns row index
4786
+
*
4787
+
* @example
4788
+
* var Float32Array = require( '@stdlib/array/float32' );
4789
+
* var Uint8Array = require( '@stdlib/array/uint8' );
0 commit comments