diff --git a/blas/base/idamax/coverage.ndjson b/blas/base/idamax/coverage.ndjson new file mode 100644 index 000000000..3b3ad1e15 --- /dev/null +++ b/blas/base/idamax/coverage.ndjson @@ -0,0 +1 @@ +[404,408,99.0196,30,32,93.75,4,4,100,404,408,99.0196,"95653a3f070bf770e5281a46d0d85ba18d72948b","2024-04-16 04:04:35 -0700"] diff --git a/blas/base/idamax/idamax.js.html b/blas/base/idamax/idamax.js.html new file mode 100644 index 000000000..81bea4eaa --- /dev/null +++ b/blas/base/idamax/idamax.js.html @@ -0,0 +1,346 @@ + + + + + + Code coverage report for blas/base/idamax/lib/idamax.js + + + + + + + + + +
+
+

All files / blas/base/idamax/lib idamax.js

+
+ +
+ 97.7% + Statements + 85/87 +
+ + +
+ 92.3% + Branches + 12/13 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 97.7% + Lines + 85/87 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
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 +882x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +7x +7x +7x +7x +7x +7x +7x +7x +3x +3x +4x +7x +  +  +7x +2x +2x +2x +5x +5x +3x +3x +3x +5x +2x +2x +2x +2x +2x +7x +5x +5x +4x +4x +4x +5x +5x +2x +7x +2x +2x +2x +2x +2x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MODULES //
+ 
+var abs = require( '@stdlib/math/base/special/abs' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Finds the index of the first element having the maximum absolute value.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {Float64Array} x - input array
+* @param {integer} strideX - `x` stride length
+* @returns {integer} index value
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
+*
+* var idx = idamax( x.length, x, 1 );
+* // returns 4
+*/
+function idamax( N, x, strideX ) {
+	var dmax;
+	var idx;
+	var ix;
+	var v;
+	var i;
+ 
+	if ( N < 1 || strideX <= 0 ) {
+		return -1;
+	}
+	idx = 0;
+	if ( N === 1 ) {
+		return idx;
+	}
+	if (strideX === 1 ) {
+		// Code for stride equal to `1`...
+		dmax = abs( x[ 0 ] );
+		for ( i = 1; i < N; i++ ) {
+			v = abs( x[ i ] );
+			if ( v > dmax ) {
+				idx = i;
+				dmax = v;
+			}
+		}
+		return idx;
+	}
+	// Code for stride not equal to `1`...
+	dmax = abs( x[ 0 ] );
+	ix = strideX;
+	for ( i = 1; i < N; i++ ) {
+		v = abs( x[ ix ] );
+		if ( v > dmax ) {
+			idx = i;
+			dmax = v;
+		}
+		ix += strideX;
+	}
+	return idx;
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = idamax;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/base/idamax/idamax.native.js.html b/blas/base/idamax/idamax.native.js.html new file mode 100644 index 000000000..9329b2153 --- /dev/null +++ b/blas/base/idamax/idamax.native.js.html @@ -0,0 +1,238 @@ + + + + + + Code coverage report for blas/base/idamax/lib/idamax.native.js + + + + + + + + + +
+
+

All files / blas/base/idamax/lib idamax.native.js

+
+ +
+ 100% + Statements + 51/51 +
+ + +
+ 100% + Branches + 2/2 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 51/51 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
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 +523x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +15x +15x +15x +3x +3x +3x +3x +3x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MODULES //
+ 
+var addon = require( './../src/addon.node' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Finds the index of the first element having the maximum absolute value.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {Float64Array} x - input array
+* @param {integer} strideX - `x` stride length
+* @returns {integer} index value
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var x = new Float64Array( [ 4.0, 2.0, -3.0, 5.0, -1.0 ] );
+*
+* var idx = idamax( x.length, x, 1 );
+* // returns 3
+*/
+function idamax( N, x, strideX ) {
+	return addon( N, x, strideX );
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = idamax;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/base/idamax/index.html b/blas/base/idamax/index.html new file mode 100644 index 000000000..45e28b7be --- /dev/null +++ b/blas/base/idamax/index.html @@ -0,0 +1,206 @@ + + + + + + Code coverage report for blas/base/idamax/lib + + + + + + + + + +
+
+

All files blas/base/idamax/lib

+
+ +
+ 99.01% + Statements + 404/408 +
+ + +
+ 93.75% + Branches + 30/32 +
+ + +
+ 100% + Functions + 4/4 +
+ + +
+ 99.01% + Lines + 404/408 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
idamax.js +
+
97.7%85/8792.3%12/13100%1/197.7%85/87
idamax.native.js +
+
100%51/51100%2/2100%1/1100%51/51
index.js +
+
100%68/68100%3/3100%0/0100%68/68
main.js +
+
100%35/35100%1/1100%0/0100%35/35
native.js +
+
100%35/35100%1/1100%0/0100%35/35
ndarray.js +
+
97.33%73/7590%9/10100%1/197.33%73/75
ndarray.native.js +
+
100%57/57100%2/2100%1/1100%57/57
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/base/idamax/index.js.html b/blas/base/idamax/index.js.html new file mode 100644 index 000000000..a72dc3e68 --- /dev/null +++ b/blas/base/idamax/index.js.html @@ -0,0 +1,289 @@ + + + + + + Code coverage report for blas/base/idamax/lib/index.js + + + + + + + + + +
+
+

All files / blas/base/idamax/lib index.js

+
+ +
+ 100% + Statements + 68/68 +
+ + +
+ 100% + Branches + 3/3 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 68/68 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
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 +693x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +3x +1x +3x +2x +2x +3x +3x +3x +3x +3x +3x +3x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+/**
+* BLAS level 1 routine to find the index of the first element having the maximum absolute value.
+*
+* @module @stdlib/blas/base/idamax
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+* var idamax = require( '@stdlib/blas/base/idamax' );
+*
+* var x = new Float64Array( [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, -3.0 ] );
+*
+* var idx = idamax( x.length, x, 1 );
+* // returns 3
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+* var idamax = require( '@stdlib/blas/base/idamax' );
+*
+* var x = new Float64Array( [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, -3.0 ] );
+*
+* var idx = idamax.ndarray( x.length, x, 1, 0 );
+* // returns 3
+*/
+ 
+// MODULES //
+ 
+var join = require( 'path' ).join;
+var tryRequire = require( '@stdlib/utils/try-require' );
+var isError = require( '@stdlib/assert/is-error' );
+var main = require( './main.js' );
+ 
+ 
+// MAIN //
+ 
+var idamax;
+var tmp = tryRequire( join( __dirname, './native.js' ) );
+if ( isError( tmp ) ) {
+	idamax = main;
+} else {
+	idamax = tmp;
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = idamax;
+ 
+// exports: { "ndarray": "idamax.ndarray" }
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/base/idamax/main.js.html b/blas/base/idamax/main.js.html new file mode 100644 index 000000000..963036aaa --- /dev/null +++ b/blas/base/idamax/main.js.html @@ -0,0 +1,190 @@ + + + + + + Code coverage report for blas/base/idamax/lib/main.js + + + + + + + + + +
+
+

All files / blas/base/idamax/lib main.js

+
+ +
+ 100% + Statements + 35/35 +
+ + +
+ 100% + Branches + 1/1 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 35/35 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
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 +361x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MODULES //
+ 
+var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
+var idamax = require( './idamax.js' );
+var ndarray = require( './ndarray.js' );
+ 
+ 
+// MAIN //
+ 
+setReadOnly( idamax, 'ndarray', ndarray );
+ 
+ 
+// EXPORTS //
+ 
+module.exports = idamax;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/base/idamax/native.js.html b/blas/base/idamax/native.js.html new file mode 100644 index 000000000..f121caf00 --- /dev/null +++ b/blas/base/idamax/native.js.html @@ -0,0 +1,190 @@ + + + + + + Code coverage report for blas/base/idamax/lib/native.js + + + + + + + + + +
+
+

All files / blas/base/idamax/lib native.js

+
+ +
+ 100% + Statements + 35/35 +
+ + +
+ 100% + Branches + 1/1 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 35/35 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
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 +361x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MODULES //
+ 
+var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
+var idamax = require( './idamax.native.js' );
+var ndarray = require( './ndarray.native.js' );
+ 
+ 
+// MAIN //
+ 
+setReadOnly( idamax, 'ndarray', ndarray );
+ 
+ 
+// EXPORTS //
+ 
+module.exports = idamax;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/base/idamax/ndarray.js.html b/blas/base/idamax/ndarray.js.html new file mode 100644 index 000000000..81726ea17 --- /dev/null +++ b/blas/base/idamax/ndarray.js.html @@ -0,0 +1,310 @@ + + + + + + Code coverage report for blas/base/idamax/lib/ndarray.js + + + + + + + + + +
+
+

All files / blas/base/idamax/lib ndarray.js

+
+ +
+ 97.33% + Statements + 73/75 +
+ + +
+ 90% + Branches + 9/10 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 97.33% + Lines + 73/75 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
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 +762x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +8x +8x +8x +8x +8x +8x +8x +8x +3x +3x +5x +8x +  +  +5x +5x +8x +14x +14x +11x +11x +11x +14x +14x +5x +8x +2x +2x +2x +2x +2x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MODULES //
+ 
+var abs = require( '@stdlib/math/base/special/abs' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Finds the index of the first element having the maximum absolute value.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {Float64Array} x - input array
+* @param {integer} strideX - `x` stride length
+* @param {NonNegativeInteger} offsetX - starting index for `x`
+* @returns {integer} index value
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
+*
+* var idx = idamax( x.length, x, 1, 0 );
+* // returns 4
+*/
+function idamax( N, x, strideX, offsetX ) {
+	var dmax;
+	var idx;
+	var ix;
+	var v;
+	var i;
+ 
+	if ( N < 1 || strideX <= 0 ) {
+		return -1;
+	}
+	idx = 0;
+	if ( N === 1 ) {
+		return idx;
+	}
+	dmax = abs( x[ offsetX ] );
+	ix = offsetX + strideX;
+	for ( i = 1; i < N; i++ ) {
+		v = abs( x[ ix ] );
+		if ( v > dmax ) {
+			idx = i;
+			dmax = v;
+		}
+		ix += strideX;
+	}
+	return idx;
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = idamax;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/blas/base/idamax/ndarray.native.js.html b/blas/base/idamax/ndarray.native.js.html new file mode 100644 index 000000000..732b68e90 --- /dev/null +++ b/blas/base/idamax/ndarray.native.js.html @@ -0,0 +1,256 @@ + + + + + + Code coverage report for blas/base/idamax/lib/ndarray.native.js + + + + + + + + + +
+
+

All files / blas/base/idamax/lib ndarray.native.js

+
+ +
+ 100% + Statements + 57/57 +
+ + +
+ 100% + Branches + 2/2 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 57/57 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
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 +582x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +8x +8x +8x +8x +8x +8x +2x +2x +2x +2x +2x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MODULES //
+ 
+var minViewBufferIndex = require( '@stdlib/strided/base/min-view-buffer-index' );
+var offsetView = require( '@stdlib/strided/base/offset-view' );
+var addon = require( './idamax.native.js' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Finds the index of the first element having the maximum absolute value.
+*
+* @param {integer} N - number of indexed elements
+* @param {Float64Array} x - input array
+* @param {integer} strideX - `x` stride length
+* @param {NonNegativeInteger} offsetX - starting index for `x`
+* @returns {integer} index value
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var x = new Float64Array( [ 4.0, 2.0, -3.0, 5.0, -1.0 ] );
+*
+* var idx = idamax( x.length, x, 1, 0 );
+* // returns 3
+*/
+function idamax( N, x, strideX, offsetX ) {
+	var viewX;
+	offsetX = minViewBufferIndex( N, strideX, offsetX );
+	viewX = offsetView( x, offsetX );
+	return addon( N, viewX, strideX );
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = idamax;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file