Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/blas/base/cgemv/lib/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
* var bool = isTransposed( 'no-transpose' );
* // returns false
*/
function isTransposed( str ) { // TODO: consider moving to a separate helper utility package

Check warning on line 54 in lib/node_modules/@stdlib/blas/base/cgemv/lib/base.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected 'todo' comment: 'TODO: consider moving to a separate...'
return ( str !== 'no-transpose' );
}

Expand Down Expand Up @@ -92,7 +92,7 @@
* cgemv( 'no-transpose', 4, 2, alpha, A, 1, 4, 0, x, 1, 0, beta, y, 1, 0 );
* // y => <Complex64Array>[ -10.0, 11.0, -12.0, 14.0, -14.0, 17.0, -16.0, 20.0 ]
*/
function cgemv( trans, M, N, alpha, A, strideA1, strideA2, offsetA, x, strideX, offsetX, beta, y, strideY, offsetY ) { // eslint-disable-line max-params, max-len

Check warning on line 95 in lib/node_modules/@stdlib/blas/base/cgemv/lib/base.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Function 'cgemv' has too many statements (108). Maximum allowed is 100
var realpha;
var imalpha;
var rebeta;
Expand Down Expand Up @@ -143,7 +143,7 @@

// 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 );
}
Expand All @@ -160,8 +160,8 @@
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;
Expand Down Expand Up @@ -207,7 +207,7 @@
}
// Form: y = α*A^T*x + y

// ( !isrm && isTransposed( trans ) ) || ( isrm && !isTransposed( trans ) )

Check warning on line 210 in lib/node_modules/@stdlib/blas/base/cgemv/lib/base.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unknown word: "isrm"

Check warning on line 210 in lib/node_modules/@stdlib/blas/base/cgemv/lib/base.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unknown word: "isrm"
if ( isrm ) {
// For row-major matrices, the last dimension has the fastest changing index...
da0 = sa2; // stride for innermost loop
Expand Down
3 changes: 3 additions & 0 deletions lib/node_modules/@stdlib/blas/base/cgemv/lib/ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/ext/base/ddiff/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down
58 changes: 29 additions & 29 deletions lib/node_modules/@stdlib/stats/base/ndarray/dmaxsorted/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
```

Expand Down