Skip to content
Open
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
11 changes: 2 additions & 9 deletions lib/node_modules/@stdlib/ndarray/base/unary/lib/0d_accessors.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@
* @example
* var Complex64Array = require( '@stdlib/array/complex64' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* function scale( z ) {
* return new Complex64( realf(z)*10.0, imagf(z)*10.0 );
* return new Complex64( z.re*10.0, z.im*10.0 );
* }
*
* // Create data buffers:
Expand Down Expand Up @@ -101,12 +99,7 @@
* unary0d( x, y, scale );
*
* var v = y.data.get( 0 );
*
* var re = realf( v );
* // returns 30.0
*
* var im = imagf( v );
* // returns 40.0
* // returns <Complex64>[ 30.0, 40.0 ]
*/
function unary0d( x, y, fcn ) {
y.accessors[ 1 ]( y.data, y.offset, fcn( x.accessors[ 0 ]( x.data, x.offset ) ) ); // eslint-disable-line max-len
Expand Down
11 changes: 2 additions & 9 deletions lib/node_modules/@stdlib/ndarray/base/unary/lib/10d_accessors.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@
* @example
* var Complex64Array = require( '@stdlib/array/complex64' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* function scale( z ) {
* return new Complex64( realf(z)*10.0, imagf(z)*10.0 );
* return new Complex64( z.re*10.0, z.im*10.0 );
* }
*
* // Create data buffers:
Expand Down Expand Up @@ -104,12 +102,7 @@
* unary10d( x, y, true, scale );
*
* var v = y.data.get( 0 );
*
* var re = realf( v );
* // returns 10.0
*
* var im = imagf( v );
* // returns 20.0
* // returns <Complex64>[ 10.0, 20.0 ]
*/
function unary10d( x, y, isRowMajor, fcn ) { // eslint-disable-line max-statements
var xbuf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ var blockSize = require( '@stdlib/ndarray/base/unary-tiling-block-size' );
* @example
* var Complex64Array = require( '@stdlib/array/complex64' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* function scale( z ) {
* return new Complex64( realf(z)*10.0, imagf(z)*10.0 );
* return new Complex64( z.re*10.0, z.im*10.0 );
* }
*
* // Create data buffers:
Expand Down Expand Up @@ -108,12 +106,7 @@ var blockSize = require( '@stdlib/ndarray/base/unary-tiling-block-size' );
* blockedunary10d( x, y, scale );
*
* var v = y.data.get( 0 );
*
* var re = realf( v );
* // returns 10.0
*
* var im = imagf( v );
* // returns 20.0
* // returns <Complex64>[ 10.0, 20.0 ]
*/
function blockedunary10d( x, y, fcn ) { // eslint-disable-line max-statements, max-lines-per-function
var bsize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* function scale( z ) {
* return new Complex64( realf(z)*10.0, imagf(z)*10.0 );
* return new Complex64( z.re*10.0, z.im*10.0 );
* }
*
* // Create data buffers:
Expand Down Expand Up @@ -101,12 +101,7 @@
* unary1d( x, y, scale );
*
* var v = y.data.get( 0 );
*
* var re = realf( v );
* // returns 10.0
*
* var im = imagf( v );
* // returns 20.0
* // returns <Complex64>[ 10.0, 20.0 ]
*/
function unary1d( x, y, fcn ) {
var xbuf;
Expand Down
11 changes: 2 additions & 9 deletions lib/node_modules/@stdlib/ndarray/base/unary/lib/2d_accessors.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@
* @example
* var Complex64Array = require( '@stdlib/array/complex64' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* function scale( z ) {
* return new Complex64( realf(z)*10.0, imagf(z)*10.0 );
* return new Complex64( z.re*10.0, z.im*10.0 );
* }
*
* // Create data buffers:
Expand Down Expand Up @@ -102,12 +100,7 @@
* unary2d( x, y, true, scale );
*
* var v = y.data.get( 0 );
*
* var re = realf( v );
* // returns 10.0
*
* var im = imagf( v );
* // returns 20.0
* // returns <Complex64>[ 10.0, 20.0 ]
*/
function unary2d( x, y, isRowMajor, fcn ) {
var xbuf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ var blockSize = require( '@stdlib/ndarray/base/unary-tiling-block-size' );
* @example
* var Complex64Array = require( '@stdlib/array/complex64' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* function scale( z ) {
* return new Complex64( realf(z)*10.0, imagf(z)*10.0 );
* return new Complex64( z.re*10.0, z.im*10.0 );
* }
*
* // Create data buffers:
Expand Down Expand Up @@ -106,12 +104,7 @@ var blockSize = require( '@stdlib/ndarray/base/unary-tiling-block-size' );
* blockedunary2d( x, y, scale );
*
* var v = y.data.get( 0 );
*
* var re = realf( v );
* // returns 10.0
*
* var im = imagf( v );
* // returns 20.0
* // returns <Complex64>[ 10.0, 20.0 ]
*/
function blockedunary2d( x, y, fcn ) {
var bsize;
Expand Down
11 changes: 2 additions & 9 deletions lib/node_modules/@stdlib/ndarray/base/unary/lib/3d_accessors.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@
* @example
* var Complex64Array = require( '@stdlib/array/complex64' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* function scale( z ) {
* return new Complex64( realf(z)*10.0, imagf(z)*10.0 );
* return new Complex64( z.re*10.0, z.im*10.0 );
* }
*
* // Create data buffers:
Expand Down Expand Up @@ -102,12 +100,7 @@
* unary3d( x, y, true, scale );
*
* var v = y.data.get( 0 );
*
* var re = realf( v );
* // returns 10.0
*
* var im = imagf( v );
* // returns 20.0
* // returns <Complex64>[ 10.0, 20.0 ]
*/
function unary3d( x, y, isRowMajor, fcn ) {
var xbuf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ var blockSize = require( '@stdlib/ndarray/base/unary-tiling-block-size' );
* @example
* var Complex64Array = require( '@stdlib/array/complex64' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* function scale( z ) {
* return new Complex64( realf(z)*10.0, imagf(z)*10.0 );
* return new Complex64( z.re*10.0, z.im*10.0 );
* }
*
* // Create data buffers:
Expand Down Expand Up @@ -108,12 +106,7 @@ var blockSize = require( '@stdlib/ndarray/base/unary-tiling-block-size' );
* blockedunary3d( x, y, scale );
*
* var v = y.data.get( 0 );
*
* var re = realf( v );
* // returns 10.0
*
* var im = imagf( v );
* // returns 20.0
* // returns <Complex64>[ 10.0, 20.0 ]
*/
function blockedunary3d( x, y, fcn ) {
var bsize;
Expand Down
11 changes: 2 additions & 9 deletions lib/node_modules/@stdlib/ndarray/base/unary/lib/4d_accessors.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@
* @example
* var Complex64Array = require( '@stdlib/array/complex64' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* function scale( z ) {
* return new Complex64( realf(z)*10.0, imagf(z)*10.0 );
* return new Complex64( z.re*10.0, z.im*10.0 );
* }
*
* // Create data buffers:
Expand Down Expand Up @@ -102,12 +100,7 @@
* unary4d( x, y, true, scale );
*
* var v = y.data.get( 0 );
*
* var re = realf( v );
* // returns 10.0
*
* var im = imagf( v );
* // returns 20.0
* // returns <Complex64>[ 10.0, 20.0 ]
*/
function unary4d( x, y, isRowMajor, fcn ) {
var xbuf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ var blockSize = require( '@stdlib/ndarray/base/unary-tiling-block-size' );
* @example
* var Complex64Array = require( '@stdlib/array/complex64' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* function scale( z ) {
* return new Complex64( realf(z)*10.0, imagf(z)*10.0 );
* return new Complex64( z.re*10.0, z.im*10.0 );
* }
*
* // Create data buffers:
Expand Down Expand Up @@ -108,12 +106,7 @@ var blockSize = require( '@stdlib/ndarray/base/unary-tiling-block-size' );
* blockedunary4d( x, y, scale );
*
* var v = y.data.get( 0 );
*
* var re = realf( v );
* // returns 10.0
*
* var im = imagf( v );
* // returns 20.0
* // returns <Complex64>[ 10.0, 20.0 ]
*/
function blockedunary4d( x, y, fcn ) { // eslint-disable-line max-statements
var bsize;
Expand Down
11 changes: 2 additions & 9 deletions lib/node_modules/@stdlib/ndarray/base/unary/lib/5d_accessors.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@
* @example
* var Complex64Array = require( '@stdlib/array/complex64' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* function scale( z ) {
* return new Complex64( realf(z)*10.0, imagf(z)*10.0 );
* return new Complex64( z.re*10.0, z.im*10.0 );
* }
*
* // Create data buffers:
Expand Down Expand Up @@ -102,12 +100,7 @@
* unary5d( x, y, true, scale );
*
* var v = y.data.get( 0 );
*
* var re = realf( v );
* // returns 10.0
*
* var im = imagf( v );
* // returns 20.0
* // returns <Complex64>[ 10.0, 20.0 ]
*/
function unary5d( x, y, isRowMajor, fcn ) {
var xbuf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ var blockSize = require( '@stdlib/ndarray/base/unary-tiling-block-size' );
* @example
* var Complex64Array = require( '@stdlib/array/complex64' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* function scale( z ) {
* return new Complex64( realf(z)*10.0, imagf(z)*10.0 );
* return new Complex64( z.re*10.0, z.im*10.0 );
* }
*
* // Create data buffers:
Expand Down Expand Up @@ -108,12 +106,7 @@ var blockSize = require( '@stdlib/ndarray/base/unary-tiling-block-size' );
* blockedunary5d( x, y, scale );
*
* var v = y.data.get( 0 );
*
* var re = realf( v );
* // returns 10.0
*
* var im = imagf( v );
* // returns 20.0
* // returns <Complex64>[ 10.0, 20.0 ]
*/
function blockedunary5d( x, y, fcn ) { // eslint-disable-line max-statements
var bsize;
Expand Down
11 changes: 2 additions & 9 deletions lib/node_modules/@stdlib/ndarray/base/unary/lib/6d_accessors.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@
* @example
* var Complex64Array = require( '@stdlib/array/complex64' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* function scale( z ) {
* return new Complex64( realf(z)*10.0, imagf(z)*10.0 );
* return new Complex64( z.re*10.0, z.im*10.0 );
* }
*
* // Create data buffers:
Expand Down Expand Up @@ -104,12 +102,7 @@
* unary6d( x, y, true, scale );
*
* var v = y.data.get( 0 );
*
* var re = realf( v );
* // returns 10.0
*
* var im = imagf( v );
* // returns 20.0
* // returns <Complex64>[ 10.0, 20.0 ]
*/
function unary6d( x, y, isRowMajor, fcn ) {
var xbuf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ var blockSize = require( '@stdlib/ndarray/base/unary-tiling-block-size' );
* @example
* var Complex64Array = require( '@stdlib/array/complex64' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* function scale( z ) {
* return new Complex64( realf(z)*10.0, imagf(z)*10.0 );
* return new Complex64( z.re*10.0, z.im*10.0 );
* }
*
* // Create data buffers:
Expand Down Expand Up @@ -108,12 +106,7 @@ var blockSize = require( '@stdlib/ndarray/base/unary-tiling-block-size' );
* blockedunary6d( x, y, scale );
*
* var v = y.data.get( 0 );
*
* var re = realf( v );
* // returns 10.0
*
* var im = imagf( v );
* // returns 20.0
* // returns <Complex64>[ 10.0, 20.0 ]
*/
function blockedunary6d( x, y, fcn ) { // eslint-disable-line max-statements
var bsize;
Expand Down
Loading