diff --git a/lib/node_modules/@stdlib/blas/base/dcopy/README.md b/lib/node_modules/@stdlib/blas/base/dcopy/README.md index 28c5aca74a6..e25a02a6584 100644 --- a/lib/node_modules/@stdlib/blas/base/dcopy/README.md +++ b/lib/node_modules/@stdlib/blas/base/dcopy/README.md @@ -207,6 +207,31 @@ The function accepts the following arguments: void c_dcopy( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ); ``` +#### c_dcopy_ndarray( N, \*X, strideX, offsetX, \*Y, strideY, offsetY ) + +Copies values from `x` into `y` using alternative indexing semantics. + +```c +double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0 }; +double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0 }; + +c_dcopy_ndarray( 3, x, 1, 2, y, 1, 2 ); +``` + +The function accepts the following arguments: + +- **N**: `[in] CBLAS_INT` number of indexed elements. +- **X**: `[in] double*` input array. +- **strideX**: `[in] CBLAS_INT` index increment for `X`. +- **offsetX**: `[in] CBLAS_INT` starting index for `X`. +- **Y**: `[out] double*` output array. +- **strideY**: `[in] CBLAS_INT` index increment for `Y`. +- **offsetY**: `[in] CBLAS_INT` starting index for `Y`. + +```c +void c_dcopy_ndarray( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, double *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY ); +``` + @@ -248,6 +273,14 @@ int main( void ) { for ( int i = 0; i < 8; i++ ) { printf( "y[ %i ] = %lf\n", i, y[ i ] ); } + + // Copy elements: + c_dcopy_ndarray( N, x, strideX, 0, y, strideY, 6 ); + + // Print the result: + for ( int i = 0; i < 8; i++ ) { + printf( "y[ %i ] = %lf\n", i, y[ i ] ); + } } ``` diff --git a/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/c/benchmark.length.c index d2da62e55dd..64010d6eb23 100644 --- a/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/blas/base/dcopy/benchmark/c/benchmark.length.c @@ -94,7 +94,7 @@ static double rand_double( void ) { * @param len array length * @return elapsed time in seconds */ -static double benchmark( int iterations, int len ) { +static double benchmark1( int iterations, int len ) { double elapsed; double x[ len ]; double y[ len ]; @@ -120,6 +120,39 @@ static double benchmark( int iterations, int len ) { return elapsed; } +/** +* Runs a benchmark. +* +* @param iterations number of iterations +* @param len array length +* @return elapsed time in seconds +*/ +static double benchmark2( int iterations, int len ) { + double elapsed; + double x[ len ]; + double y[ len ]; + double t; + int i; + + for ( i = 0; i < len; i++ ) { + x[ i ] = ( rand_double()*20000.0 ) - 10000.0; + y[ i ] = 0.0; + } + t = tic(); + for ( i = 0; i < iterations; i++ ) { + c_dcopy_ndarray( len, x, 1, 0, y, 1, 0 ); + if ( y[ 0 ] != y[ 0 ] ) { + printf( "should not return NaN\n" ); + break; + } + } + elapsed = tic() - t; + if ( y[ 0 ] != y[ 0 ] ) { + printf( "should not return NaN\n" ); + } + return elapsed; +} + /** * Main execution sequence. */ @@ -142,7 +175,14 @@ int main( void ) { for ( j = 0; j < REPEATS; j++ ) { count += 1; printf( "# c::%s:len=%d\n", NAME, len ); - elapsed = benchmark( iter, len ); + elapsed = benchmark1( iter, len ); + print_results( iter, elapsed ); + printf( "ok %d benchmark finished\n", count ); + } + for ( j = 0; j < REPEATS; j++ ) { + count += 1; + printf( "# c::%s:ndarray:len=%d\n", NAME, len ); + elapsed = benchmark2( iter, len ); print_results( iter, elapsed ); printf( "ok %d benchmark finished\n", count ); } diff --git a/lib/node_modules/@stdlib/blas/base/dcopy/examples/c/example.c b/lib/node_modules/@stdlib/blas/base/dcopy/examples/c/example.c index b521f799c10..0d5532e46dd 100644 --- a/lib/node_modules/@stdlib/blas/base/dcopy/examples/c/example.c +++ b/lib/node_modules/@stdlib/blas/base/dcopy/examples/c/example.c @@ -38,4 +38,12 @@ int main( void ) { for ( int i = 0; i < 8; i++ ) { printf( "y[ %i ] = %lf\n", i, y[ i ] ); } + + // Copy elements: + c_dcopy_ndarray( N, x, strideX, 0, y, strideY, 6 ); + + // Print the result: + for ( int i = 0; i < 8; i++ ) { + printf( "y[ %i ] = %lf\n", i, y[ i ] ); + } } diff --git a/lib/node_modules/@stdlib/blas/base/dcopy/include/stdlib/blas/base/dcopy.h b/lib/node_modules/@stdlib/blas/base/dcopy/include/stdlib/blas/base/dcopy.h index 285f20ffb69..6d82cc838e4 100644 --- a/lib/node_modules/@stdlib/blas/base/dcopy/include/stdlib/blas/base/dcopy.h +++ b/lib/node_modules/@stdlib/blas/base/dcopy/include/stdlib/blas/base/dcopy.h @@ -36,6 +36,11 @@ extern "C" { */ void API_SUFFIX(c_dcopy)( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ); +/** +* Copies values from `X` into `Y` using alternative indexing semantics. +*/ +void API_SUFFIX(c_dcopy_ndarray)( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, double *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY ); + #ifdef __cplusplus } #endif diff --git a/lib/node_modules/@stdlib/blas/base/dcopy/lib/ndarray.native.js b/lib/node_modules/@stdlib/blas/base/dcopy/lib/ndarray.native.js index 70e4cbf4683..563a32dd5f2 100644 --- a/lib/node_modules/@stdlib/blas/base/dcopy/lib/ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/dcopy/lib/ndarray.native.js @@ -20,9 +20,7 @@ // MODULES // -var minViewBufferIndex = require( '@stdlib/strided/base/min-view-buffer-index' ); -var offsetView = require( '@stdlib/strided/base/offset-view' ); -var addon = require( './dcopy.native.js' ); +var addon = require( './../src/addon.node' ); // MAIN // @@ -49,16 +47,7 @@ var addon = require( './dcopy.native.js' ); * // y => [ 1.0, 2.0, 3.0, 4.0, 5.0 ] */ function dcopy( N, x, strideX, offsetX, y, strideY, offsetY ) { - var viewX; - var viewY; - - offsetX = minViewBufferIndex( N, strideX, offsetX ); - offsetY = minViewBufferIndex( N, strideY, offsetY ); - - viewX = offsetView( x, offsetX ); - viewY = offsetView( y, offsetY ); - - addon( N, viewX, strideX, viewY, strideY ); + addon.ndarray( N, x, strideX, offsetX, y, strideY, offsetY ); return y; } diff --git a/lib/node_modules/@stdlib/blas/base/dcopy/manifest.json b/lib/node_modules/@stdlib/blas/base/dcopy/manifest.json index e87dbb09489..7ceb34d9bdf 100644 --- a/lib/node_modules/@stdlib/blas/base/dcopy/manifest.json +++ b/lib/node_modules/@stdlib/blas/base/dcopy/manifest.json @@ -44,6 +44,7 @@ "libpath": [], "dependencies": [ "@stdlib/blas/base/shared", + "@stdlib/strided/base/min-view-buffer-index", "@stdlib/napi/export", "@stdlib/napi/argv", "@stdlib/napi/argv-int64", @@ -56,7 +57,8 @@ "blas": "", "wasm": false, "src": [ - "./src/dcopy.c" + "./src/dcopy.c", + "./src/dcopy_ndarray.c" ], "include": [ "./include" @@ -64,7 +66,8 @@ "libraries": [], "libpath": [], "dependencies": [ - "@stdlib/blas/base/shared" + "@stdlib/blas/base/shared", + "@stdlib/strided/base/stride2offset" ] }, { @@ -73,7 +76,8 @@ "blas": "", "wasm": false, "src": [ - "./src/dcopy.c" + "./src/dcopy.c", + "./src/dcopy_ndarray.c" ], "include": [ "./include" @@ -81,7 +85,8 @@ "libraries": [], "libpath": [], "dependencies": [ - "@stdlib/blas/base/shared" + "@stdlib/blas/base/shared", + "@stdlib/strided/base/stride2offset" ] }, @@ -103,6 +108,7 @@ "libpath": [], "dependencies": [ "@stdlib/blas/base/shared", + "@stdlib/strided/base/min-view-buffer-index", "@stdlib/napi/export", "@stdlib/napi/argv", "@stdlib/napi/argv-int64", @@ -126,7 +132,8 @@ ], "libpath": [], "dependencies": [ - "@stdlib/blas/base/shared" + "@stdlib/blas/base/shared", + "@stdlib/strided/base/min-view-buffer-index" ] }, { @@ -146,7 +153,8 @@ ], "libpath": [], "dependencies": [ - "@stdlib/blas/base/shared" + "@stdlib/blas/base/shared", + "@stdlib/strided/base/min-view-buffer-index" ] }, @@ -166,6 +174,7 @@ "libpath": [], "dependencies": [ "@stdlib/blas/base/shared", + "@stdlib/strided/base/min-view-buffer-index", "@stdlib/napi/export", "@stdlib/napi/argv", "@stdlib/napi/argv-int64", @@ -178,7 +187,8 @@ "blas": "", "wasm": false, "src": [ - "./src/dcopy.c" + "./src/dcopy.c", + "./src/dcopy_ndarray.c" ], "include": [ "./include" @@ -186,7 +196,8 @@ "libraries": [], "libpath": [], "dependencies": [ - "@stdlib/blas/base/shared" + "@stdlib/blas/base/shared", + "@stdlib/strided/base/stride2offset" ] }, { @@ -195,7 +206,8 @@ "blas": "", "wasm": false, "src": [ - "./src/dcopy.c" + "./src/dcopy.c", + "./src/dcopy_ndarray.c" ], "include": [ "./include" @@ -203,7 +215,8 @@ "libraries": [], "libpath": [], "dependencies": [ - "@stdlib/blas/base/shared" + "@stdlib/blas/base/shared", + "@stdlib/strided/base/stride2offset" ] }, @@ -224,6 +237,7 @@ "libpath": [], "dependencies": [ "@stdlib/blas/base/shared", + "@stdlib/strided/base/min-view-buffer-index", "@stdlib/napi/export", "@stdlib/napi/argv", "@stdlib/napi/argv-int64", @@ -246,7 +260,8 @@ ], "libpath": [], "dependencies": [ - "@stdlib/blas/base/shared" + "@stdlib/blas/base/shared", + "@stdlib/strided/base/min-view-buffer-index" ] }, { @@ -265,7 +280,8 @@ ], "libpath": [], "dependencies": [ - "@stdlib/blas/base/shared" + "@stdlib/blas/base/shared", + "@stdlib/strided/base/min-view-buffer-index" ] }, @@ -287,6 +303,7 @@ "libpath": [], "dependencies": [ "@stdlib/blas/base/shared", + "@stdlib/strided/base/min-view-buffer-index", "@stdlib/napi/export", "@stdlib/napi/argv", "@stdlib/napi/argv-int64", @@ -310,7 +327,8 @@ ], "libpath": [], "dependencies": [ - "@stdlib/blas/base/shared" + "@stdlib/blas/base/shared", + "@stdlib/strided/base/min-view-buffer-index" ] }, { @@ -330,7 +348,8 @@ ], "libpath": [], "dependencies": [ - "@stdlib/blas/base/shared" + "@stdlib/blas/base/shared", + "@stdlib/strided/base/min-view-buffer-index" ] }, @@ -340,7 +359,8 @@ "blas": "", "wasm": false, "src": [ - "./src/dcopy.c" + "./src/dcopy.c", + "./src/dcopy_ndarray.c" ], "include": [ "./include" @@ -349,6 +369,7 @@ "libpath": [], "dependencies": [ "@stdlib/blas/base/shared", + "@stdlib/strided/base/min-view-buffer-index", "@stdlib/napi/export", "@stdlib/napi/argv", "@stdlib/napi/argv-int64", @@ -361,7 +382,8 @@ "blas": "", "wasm": false, "src": [ - "./src/dcopy.c" + "./src/dcopy.c", + "./src/dcopy_ndarray.c" ], "include": [ "./include" @@ -369,7 +391,8 @@ "libraries": [], "libpath": [], "dependencies": [ - "@stdlib/blas/base/shared" + "@stdlib/blas/base/shared", + "@stdlib/strided/base/stride2offset" ] }, { @@ -378,7 +401,8 @@ "blas": "", "wasm": false, "src": [ - "./src/dcopy.c" + "./src/dcopy.c", + "./src/dcopy_ndarray.c" ], "include": [ "./include" @@ -386,7 +410,8 @@ "libraries": [], "libpath": [], "dependencies": [ - "@stdlib/blas/base/shared" + "@stdlib/blas/base/shared", + "@stdlib/strided/base/stride2offset" ] }, @@ -396,7 +421,8 @@ "blas": "", "wasm": true, "src": [ - "./src/dcopy.c" + "./src/dcopy.c", + "./src/dcopy_ndarray.c" ], "include": [ "./include" @@ -404,7 +430,8 @@ "libraries": [], "libpath": [], "dependencies": [ - "@stdlib/blas/base/shared" + "@stdlib/blas/base/shared", + "@stdlib/strided/base/stride2offset" ] } ] diff --git a/lib/node_modules/@stdlib/blas/base/dcopy/src/addon.c b/lib/node_modules/@stdlib/blas/base/dcopy/src/addon.c index 4af5343d04f..8cff9e95d53 100644 --- a/lib/node_modules/@stdlib/blas/base/dcopy/src/addon.c +++ b/lib/node_modules/@stdlib/blas/base/dcopy/src/addon.c @@ -42,4 +42,24 @@ static napi_value addon( napi_env env, napi_callback_info info ) { return NULL; } -STDLIB_NAPI_MODULE_EXPORT_FCN( addon ) +/** +* Receives JavaScript callback invocation data. +* +* @param env environment under which the function is invoked +* @param info callback data +* @return Node-API value +*/ +static napi_value addon_method( napi_env env, napi_callback_info info ) { + STDLIB_NAPI_ARGV( env, info, argv, argc, 7 ); + STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 ); + STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 ); + STDLIB_NAPI_ARGV_INT64( env, offsetX, argv, 3 ); + STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 5 ); + STDLIB_NAPI_ARGV_INT64( env, offsetY, argv, 6 ); + STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 ); + STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, strideY, argv, 4 ); + API_SUFFIX(c_dcopy_ndarray)( N, X, strideX, offsetX, Y, strideY, offsetY ); + return NULL; +} + +STDLIB_NAPI_MODULE_EXPORT_FCN_WITH_METHOD( addon, "ndarray", addon_method ) diff --git a/lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy.c b/lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy.c index 5ab63d32466..b67280675eb 100644 --- a/lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy.c +++ b/lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy.c @@ -18,6 +18,7 @@ #include "stdlib/blas/base/dcopy.h" #include "stdlib/blas/base/shared.h" +#include "stdlib/strided/base/stride2offset.h" /** * Copies values from `X` into `Y`. @@ -29,44 +30,7 @@ * @param strideY Y stride length */ void API_SUFFIX(c_dcopy)( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ) { - CBLAS_INT ix; - CBLAS_INT iy; - CBLAS_INT i; - CBLAS_INT m; - - if ( N <= 0 ) { - return; - } - // If both strides are equal to `1`, use unrolled loops... - if ( strideX == 1 && strideY == 1 ) { - m = N % 7; - - // If we have a remainder, do a clean-up loop... - if ( m > 0 ) { - for ( i = 0; i < m; i++ ) { - Y[ i ] = X[ i ]; - } - if ( N < 7 ) { - return; - } - } - for ( i = m; i < N; i += 7 ) { - Y[ i ] = X[ i ]; - Y[ i+1 ] = X[ i+1 ]; - Y[ i+2 ] = X[ i+2 ]; - Y[ i+3 ] = X[ i+3 ]; - Y[ i+4 ] = X[ i+4 ]; - Y[ i+5 ] = X[ i+5 ]; - Y[ i+6 ] = X[ i+6 ]; - } - return; - } - ix = STDLIB_BLAS_BASE_STRIDE2OFFSET( N, strideX ); - iy = STDLIB_BLAS_BASE_STRIDE2OFFSET( N, strideY ); - for ( i = 0; i < N; i++ ) { - Y[ iy ] = X[ ix ]; - ix += strideX; - iy += strideY; - } - return; + CBLAS_INT ox = stdlib_strided_stride2offset( N, strideX ); + CBLAS_INT oy = stdlib_strided_stride2offset( N, strideY ); + API_SUFFIX(c_dcopy_ndarray)( N, X, strideX, ox, Y, strideY, oy ); } diff --git a/lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy_cblas.c b/lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy_cblas.c index 2457f94e790..5ce78be188b 100644 --- a/lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy_cblas.c +++ b/lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy_cblas.c @@ -19,6 +19,7 @@ #include "stdlib/blas/base/dcopy.h" #include "stdlib/blas/base/dcopy_cblas.h" #include "stdlib/blas/base/shared.h" +#include "stdlib/strided/base/min_view_buffer_index.h" /** * Copies values from `X` into `Y`. @@ -32,3 +33,20 @@ void API_SUFFIX(c_dcopy)( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ) { API_SUFFIX(cblas_dcopy)( N, X, strideX, Y, strideY ); } + +/** +* Copies values from `X` into `Y` using alternative indexing semantics. +* +* @param N number of indexed elements +* @param X input array +* @param strideX X stride length +* @param offsetX starting index for X +* @param Y output array +* @param strideY Y stride length +* @param offsetY starting index for Y +*/ +void API_SUFFIX(c_dcopy_ndarray)( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, double *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY ) { + X += stdlib_strided_min_view_buffer_index( N, strideX, offsetX ); // adjust array pointer + Y += stdlib_strided_min_view_buffer_index( N, strideY, offsetY ); // adjust array pointer + API_SUFFIX(cblas_dcopy)( N, X, strideX, Y, strideY ); +} diff --git a/lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy_f.c b/lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy_f.c index 5f30faf9092..e285a4ace62 100644 --- a/lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy_f.c +++ b/lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy_f.c @@ -19,6 +19,7 @@ #include "stdlib/blas/base/dcopy.h" #include "stdlib/blas/base/dcopy_fortran.h" #include "stdlib/blas/base/shared.h" +#include "stdlib/strided/base/min_view_buffer_index.h" /** * Copies values from `X` into `Y`. @@ -32,3 +33,20 @@ void API_SUFFIX(c_dcopy)( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ) { dcopy( &N, X, &strideX, Y, &strideY ); } + +/** +* Copies values from `X` into `Y` using alternative indexing semantics. +* +* @param N number of indexed elements +* @param X input array +* @param strideX X stride length +* @param offsetX starting index for X +* @param Y output array +* @param strideY Y stride length +* @param offsetY starting index for Y +*/ +void API_SUFFIX(c_dcopy_ndarray)( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, double *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY ) { + X += stdlib_strided_min_view_buffer_index( N, strideX, offsetX ); // adjust array pointer + Y += stdlib_strided_min_view_buffer_index( N, strideY, offsetY ); // adjust array pointer + dcopy( &N, X, &strideX, Y, &strideY ); +} diff --git a/lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy_ndarray.c b/lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy_ndarray.c new file mode 100644 index 00000000000..f84e08241ba --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy_ndarray.c @@ -0,0 +1,79 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2023 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. +*/ + +#include "stdlib/blas/base/dcopy.h" +#include "stdlib/blas/base/shared.h" + +static const CBLAS_INT M = 7; + +/** +* Copies values from `X` into `Y`. +* +* @param N number of indexed elements +* @param X input array +* @param strideX X stride length +* @param offsetX starting index for X +* @param Y output array +* @param strideY Y stride length +* @param offsetY starting index for Y +*/ +void API_SUFFIX(c_dcopy_ndarray)( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, double *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY ) { + CBLAS_INT ix; + CBLAS_INT iy; + CBLAS_INT i; + CBLAS_INT m; + + if ( N <= 0 ) { + return; + } + ix = offsetX; + iy = offsetY; + + // If both strides are equal to `1`, use unrolled loops... + if ( strideX == 1 && strideY == 1 ) { + m = N % M; + + // If we have a remainder, do a clean-up loop... + if ( m > 0 ) { + for ( i = 0; i < m; i++ ) { + Y[ iy ] = X[ ix ]; + ix += strideX; + iy += strideY; + } + if ( N < 7 ) { + return; + } + } + for ( i = m; i < N; i += 7 ) { + Y[ iy ] = X[ ix ]; + Y[ iy+1 ] = X[ ix+1 ]; + Y[ iy+2 ] = X[ ix+2 ]; + Y[ iy+3 ] = X[ ix+3 ]; + Y[ iy+4 ] = X[ ix+4 ]; + Y[ iy+5 ] = X[ ix+5 ]; + Y[ iy+6 ] = X[ ix+6 ]; + } + return; + } + for ( i = 0; i < N; i++ ) { + Y[ iy ] = X[ ix ]; + ix += strideX; + iy += strideY; + } + return; +}