diff --git a/lib/node_modules/@stdlib/blas/base/cgemv/lib/base.js b/lib/node_modules/@stdlib/blas/base/cgemv/lib/base.js index e59ab4b6287c..996661640e2f 100644 --- a/lib/node_modules/@stdlib/blas/base/cgemv/lib/base.js +++ b/lib/node_modules/@stdlib/blas/base/cgemv/lib/base.js @@ -143,7 +143,7 @@ function cgemv( trans, M, N, alpha, A, strideA1, strideA2, offsetA, x, strideX, // y = beta*y if ( rebeta === 0.0 && imbeta === 0.0 ) { - cfill( ylen, alpha, y, strideY, offsetY ); + cfill( ylen, beta, y, strideY, offsetY ); } else if ( rebeta !== 1.0 || imbeta !== 0.0 ) { cscal( ylen, beta, y, strideY, offsetY ); } @@ -160,8 +160,8 @@ function cgemv( trans, M, N, alpha, A, strideA1, strideA2, offsetA, x, strideX, sign = 1; } oa = offsetA * 2; - sa1 = strideA1 *2; - sa2 = strideA2 *2; + sa1 = strideA1 * 2; + sa2 = strideA2 * 2; ox = offsetX * 2; oy = offsetY * 2; sx = strideX * 2; diff --git a/lib/node_modules/@stdlib/blas/base/cgemv/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/cgemv/lib/ndarray.js index 35ea6e68a66e..71af081d37ad 100644 --- a/lib/node_modules/@stdlib/blas/base/cgemv/lib/ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/cgemv/lib/ndarray.js @@ -24,6 +24,9 @@ var isMatrixTranspose = require( '@stdlib/blas/base/assert/is-transpose-operatio var format = require( '@stdlib/string/format' ); var base = require( './base.js' ); + +// MAIN // + /** * Performs one of the matrix-vector operations `y = α*A*x + β*y` or `y = α*A^T*x + β*y` or `y = α*A^H*x + β*y`, where `α` and `β` are scalars, `x` and `y` are vectors, and `A` is an `M` by `N` matrix. * diff --git a/lib/node_modules/@stdlib/blas/ext/base/ddiff/README.md b/lib/node_modules/@stdlib/blas/ext/base/ddiff/README.md index b91ed3b0c5b0..fa7ec9adb4a9 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ddiff/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/ddiff/README.md @@ -68,7 +68,7 @@ The function has the following parameters: - **workspace**: workspace [`Float64Array`][@stdlib/array/float64]. Must have `N + N1 + N2 - 1` elements. - **strideW**: stride length for `workspace`. -The `N` and stride parameters determine which elements in the strided array are accessed at runtime. For example, to differences of every other element: +The `N` and stride parameters determine which elements in the strided array are accessed at runtime. For example, to compute differences of every other element: ```javascript var Float64Array = require( '@stdlib/array/float64' ); diff --git a/lib/node_modules/@stdlib/napi/argv-booleanarray/lib/native.js b/lib/node_modules/@stdlib/napi/argv-booleanarray/lib/native.js index 95f311fd675a..72458ed3f42a 100644 --- a/lib/node_modules/@stdlib/napi/argv-booleanarray/lib/native.js +++ b/lib/node_modules/@stdlib/napi/argv-booleanarray/lib/native.js @@ -32,7 +32,7 @@ var addon = require( './../src/addon.node' ); * * @private * @param {BooleanArray} v - input array -* @returns {Uint8Array} input array +* @returns {BooleanArray} input array * * @example * var BooleanArray = require( '@stdlib/array/bool' ); diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/dmaxsorted/README.md b/lib/node_modules/@stdlib/stats/base/ndarray/dmaxsorted/README.md index 366935382169..4f9d3bb38c00 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/dmaxsorted/README.md +++ b/lib/node_modules/@stdlib/stats/base/ndarray/dmaxsorted/README.md @@ -192,46 +192,46 @@ int main( void ) { // Create a sorted data buffer (ascending): const double data[] = { -8.0, -6.0, -4.0, -2.0, 1.0, 3.0, 5.0, 7.0 }; - // Specify the number of array dimensions: - const int64_t ndims = 1; + // Specify the number of array dimensions: + const int64_t ndims = 1; - // Specify the array shape: - int64_t shape[] = { 4 }; + // Specify the array shape: + int64_t shape[] = { 4 }; - // Specify the array strides: - int64_t strides[] = { 2*STDLIB_NDARRAY_FLOAT64_BYTES_PER_ELEMENT }; + // Specify the array strides: + int64_t strides[] = { 2*STDLIB_NDARRAY_FLOAT64_BYTES_PER_ELEMENT }; - // Specify the byte offset: - const int64_t offset = 0; + // Specify the byte offset: + const int64_t offset = 0; - // Specify the array order: - const enum STDLIB_NDARRAY_ORDER order = STDLIB_NDARRAY_ROW_MAJOR; + // Specify the array order: + const enum STDLIB_NDARRAY_ORDER order = STDLIB_NDARRAY_ROW_MAJOR; - // Specify the index mode: - const enum STDLIB_NDARRAY_INDEX_MODE imode = STDLIB_NDARRAY_INDEX_ERROR; + // Specify the index mode: + const enum STDLIB_NDARRAY_INDEX_MODE imode = STDLIB_NDARRAY_INDEX_ERROR; - // Specify the subscript index modes: - int8_t submodes[] = { STDLIB_NDARRAY_INDEX_ERROR }; - const int64_t nsubmodes = 1; + // Specify the subscript index modes: + int8_t submodes[] = { STDLIB_NDARRAY_INDEX_ERROR }; + const int64_t nsubmodes = 1; - // Create an ndarray: - struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT64, (uint8_t *)data, ndims, shape, strides, offset, order, imode, nsubmodes, submodes ); - if ( x == NULL ) { - fprintf( stderr, "Error allocating memory.\n" ); - exit( 1 ); - } + // Create an ndarray: + struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT64, (uint8_t *)data, ndims, shape, strides, offset, order, imode, nsubmodes, submodes ); + if ( x == NULL ) { + fprintf( stderr, "Error allocating memory.\n" ); + exit( 1 ); + } - // Define a list of ndarrays: - const struct ndarray *arrays[] = { x }; + // Define a list of ndarrays: + const struct ndarray *arrays[] = { x }; - // Compute the maximum value: - double v = stdlib_stats_dmaxsorted( arrays ); + // Compute the maximum value: + double v = stdlib_stats_dmaxsorted( arrays ); - // Print the result: - printf( "max: %lf\n", v ); + // Print the result: + printf( "max: %lf\n", v ); - // Free allocated memory: - stdlib_ndarray_free( x ); + // Free allocated memory: + stdlib_ndarray_free( x ); } ```