Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
5 changes: 1 addition & 4 deletions lib/node_modules/@stdlib/blas/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,7 @@ interface Namespace {
* var y = array( new Float32Array( [ 2.0, 6.0, -1.0, -4.0, 8.0 ] ) );
*
* var z = ns.sdot( x, y );
* // returns <ndarray>
*
* var v = z.get();
* // returns -5.0
* // returns <ndarray>[ -5.0 ]
*/
sdot: typeof sdot;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
> var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord );
> var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord );
> var s = {{alias:@stdlib/ndarray/from-scalar}}( 0.0, { 'dtype': dt } );
> {{alias}}( [ x, y, s ] );
> {{alias:@stdlib/ndarray/to-array}}( y )
[ 1.0, -1.0, 1.0 ]
> {{alias}}( [ x, y, s ] )
<ndarray>[ 1.0, -1.0, 1.0 ]

See Also
--------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
> var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord );
> var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord );
> var s = {{alias:@stdlib/ndarray/from-scalar}}( 0.0, { 'dtype': dt } );
> {{alias}}( [ x, y, s ] );
> {{alias:@stdlib/ndarray/to-array}}( y )
[ 1.0, -1.0, 1.0 ]
> {{alias}}( [ x, y, s ] )
<ndarray>[ 1.0, -1.0, 1.0 ]

See Also
--------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
> var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord );
> var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord );
> var s = {{alias:@stdlib/ndarray/from-scalar}}( 0.0, { 'dtype': dt } );
> {{alias}}( [ x, y, s ] );
> {{alias:@stdlib/ndarray/to-array}}( y )
[ 1.0, -1.0, 1.0 ]
> {{alias}}( [ x, y, s ] )
<ndarray>[ 1.0, -1.0, 1.0 ]

See Also
--------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
> var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord );
> var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord );
> var s = {{alias:@stdlib/ndarray/from-scalar}}( 0.0, { 'dtype': dt } );
> {{alias}}( [ x, y, s ] );
> {{alias:@stdlib/ndarray/to-array}}( y )
[ 1.0, -1.0, 1.0 ]
> {{alias}}( [ x, y, s ] )
<ndarray>[ 1.0, -1.0, 1.0 ]

See Also
--------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
> var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord );
> var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord );
> var s = {{alias:@stdlib/ndarray/from-scalar}}( 0.0, { 'dtype': dt } );
> {{alias}}( [ x, y, s ] );
> {{alias:@stdlib/ndarray/to-array}}( y )
[ 1.0, -1.0, 1.0 ]
> {{alias}}( [ x, y, s ] )
<ndarray>[ 1.0, -1.0, 1.0 ]

See Also
--------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
'use strict';

var capitalize = require( '@stdlib/string/capitalize' );
var format = require( '@stdlib/string/format' );
var table = require( './../lib' );

var tbl = table();
Expand All @@ -38,7 +39,7 @@ function getState( capital ) {

// Ensure a valid capital name was provided...
if ( state === void 0 ) {
throw new Error( 'unrecognized capital. Value: `' + capital + '`.' );
throw new Error( format( 'unrecognized capital. Value: `%s`.', capital ) );
Comment thread
kgryte marked this conversation as resolved.
}
return state;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ var strided = require( '@stdlib/stats/base/cumin' ).ndarray;
* @returns {ndarrayLike} output ndarray
*
* @example
* var ndarray2array = require( '@stdlib/ndarray/to-array' );
* var ndarray = require( '@stdlib/ndarray/base/ctor' );
*
* var xbuf = [ 1.0, 3.0, 4.0, 2.0 ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

var resolve = require( 'path' ).resolve;
var readFile = require( '@stdlib/fs/read-file' );
var format = require( '@stdlib/string/format' );
var forEachAsync = require( './../lib' );

var files = [
Expand All @@ -42,7 +43,7 @@ function read( file, next ) {

function onFile( error ) {
if ( error ) {
error = new Error( 'unable to read file: '+file );
error = new Error( format( 'unable to read file: %s', file ) );
Comment thread
kgryte marked this conversation as resolved.
return next( error );
}
console.log( 'Successfully read file: %s', file );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

var resolve = require( 'path' ).resolve;
var readFile = require( '@stdlib/fs/read-file' );
var format = require( '@stdlib/string/format' );
var inmapRightAsync = require( './../lib' );

var files = [
Expand All @@ -42,7 +43,7 @@ function read( file, next ) {

function onFile( error, data ) {
if ( error ) {
error = new Error( 'unable to read file: '+file );
error = new Error( format( 'unable to read file: %s', file ) );
Comment thread
kgryte marked this conversation as resolved.
return next( error );
}
next( null, data );
Expand Down
3 changes: 2 additions & 1 deletion lib/node_modules/@stdlib/utils/async/inmap/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

var resolve = require( 'path' ).resolve;
var readFile = require( '@stdlib/fs/read-file' );
var format = require( '@stdlib/string/format' );
var inmapAsync = require( './../lib' );

var files = [
Expand All @@ -42,7 +43,7 @@ function read( file, next ) {

function onFile( error, data ) {
if ( error ) {
error = new Error( 'unable to read file: '+file );
error = new Error( format( 'unable to read file: %s', file ) );
Comment thread
kgryte marked this conversation as resolved.
return next( error );
}
next( null, data );
Expand Down
Loading