Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update repl documentation for ComplexArray #2431

Merged
merged 1 commit into from
Jun 22, 2024
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
30 changes: 15 additions & 15 deletions lib/node_modules/@stdlib/array/complex128/docs/repl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
<Complex128Array>
> var len = arr1.length
2
> var buf = [ new {{alias:@stdlib/complex/float64/ctor}}( 1.0, -1.0 ), new {{alias:@stdlib/complex/float64/ctor}}( 2.0, -2.0 ) ]
> var buf = [ new {{alias:@stdlib/complex/float64/ctor}}( 1.0, -1.0 ), new {{alias:@stdlib/complex/float64/ctor}}( 2.0, -2.0 ) ];
> var arr2 = new {{alias}}( buf )
<Complex128Array>
> len = arr2.length
Expand Down Expand Up @@ -212,8 +212,8 @@
<Complex128Array>
> var len = arr.length
2
> var z1 = new {{alias:@stdlib/complex/float64/ctor}}( 1.0, -1.0 )
> var z2 = new {{alias:@stdlib/complex/float64/ctor}}( 2.0, -2.0 )
> var z1 = new {{alias:@stdlib/complex/float64/ctor}}( 1.0, -1.0 );
> var z2 = new {{alias:@stdlib/complex/float64/ctor}}( 2.0, -2.0 );
> arr = {{alias}}.of( z1, z2 )
<Complex128Array>
> len = arr.length
Expand Down Expand Up @@ -276,7 +276,7 @@
<Complex128Array>
> var offset = arr.byteOffset
0
> var buf = new {{alias:@stdlib/array/buffer}}( 480 )
> var buf = new {{alias:@stdlib/array/buffer}}( 480 );
> arr = new {{alias}}( buf, 128 )
<Complex128Array>
> offset = arr.byteOffset
Expand Down Expand Up @@ -429,7 +429,7 @@

Examples
--------
> function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) > 0.0 ); }
> function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) > 0.0 ); };
> var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] )
<Complex128Array>
> var bool = arr.every( predicate )
Expand Down Expand Up @@ -511,7 +511,7 @@

Examples
--------
> function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); }
> function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); };
> var arr = new {{alias}}( [ 1.0, -1.0, 2.0, 2.0, 3.0, -3.0 ] )
<Complex128Array>
> var out = arr.filter( predicate )
Expand Down Expand Up @@ -554,7 +554,7 @@

Examples
--------
> function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); }
> function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); };
> var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] )
<Complex128Array>
> var z = arr.find( predicate )
Expand Down Expand Up @@ -593,7 +593,7 @@

Examples
--------
> function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); }
> function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); };
> var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] )
<Complex128Array>
> var idx = arr.findIndex( predicate )
Expand Down Expand Up @@ -628,7 +628,7 @@

Examples
--------
> function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); }
> function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); };
> var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] )
<Complex128Array>
> var z = arr.findLast( predicate )
Expand Down Expand Up @@ -667,7 +667,7 @@

Examples
--------
> function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); }
> function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); };
> var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] )
<Complex128Array>
> var idx = arr.findLastIndex( predicate )
Expand All @@ -694,7 +694,7 @@
Examples
--------
> var str = '%';
> function clbk( v ) { str += v.toString() + '%'; }
> function clbk( v ) { str += v.toString() + '%'; };
> var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] )
<Complex128Array>
> arr.forEach( clbk );
Expand Down Expand Up @@ -890,7 +890,7 @@

Examples
--------
> function clbk( v ) { return v; }
> function clbk( v ) { return v; };
> var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] )
<Complex128Array>
> var out = arr.map( clbk )
Expand Down Expand Up @@ -1138,7 +1138,7 @@

Examples
--------
> function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); }
> function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); };
> var arr = new {{alias}}( [ 1.0, -1.0, 2.0, 2.0, 3.0, -3.0 ] )
<Complex128Array>
> var bool = arr.some( predicate )
Expand Down Expand Up @@ -1170,7 +1170,7 @@

Examples
--------
> function compare( a, b ) { return ( {{alias:@stdlib/complex/real}}( a ) - {{alias:@stdlib/complex/real}}( b ) ); }
> function compare( a, b ) { return ( {{alias:@stdlib/complex/real}}( a ) - {{alias:@stdlib/complex/real}}( b ) ); };
> var arr = new {{alias}}( [ 2.0, -2.0, 3.0, -3.0, 1.0, -1.0 ] )
<Complex128Array>
> arr.sort( compare );
Expand Down Expand Up @@ -1318,7 +1318,7 @@

Examples
--------
> function compare( a, b ) { return ( {{alias:@stdlib/complex/real}}( a ) - {{alias:@stdlib/complex/real}}( b ) ); }
> function compare( a, b ) { return ( {{alias:@stdlib/complex/real}}( a ) - {{alias:@stdlib/complex/real}}( b ) ); };
> var arr = new {{alias}}( [ 2.0, -2.0, 3.0, -3.0, 1.0, -1.0 ] )
<Complex128Array>
> var out = arr.toSorted( compare );
Expand Down
30 changes: 15 additions & 15 deletions lib/node_modules/@stdlib/array/complex64/docs/repl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<Complex64Array>
> var len = arr1.length
2
> var buf = [ new {{alias:@stdlib/complex/float32/ctor}}( 1.0, -1.0 ), new {{alias:@stdlib/complex/float32/ctor}}( 2.0, -2.0 )]
> var buf = [ new {{alias:@stdlib/complex/float32/ctor}}( 1.0, -1.0 ), new {{alias:@stdlib/complex/float32/ctor}}( 2.0, -2.0 )];
> var arr2 = new {{alias}}( buf )
<Complex64Array>
> len = arr2.length
Expand Down Expand Up @@ -211,8 +211,8 @@
<Complex64Array>
> var len = arr.length
2
> var z1 = new {{alias:@stdlib/complex/float32/ctor}}( 1.0, -1.0 )
> var z2 = new {{alias:@stdlib/complex/float32/ctor}}( 2.0, -2.0 )
> var z1 = new {{alias:@stdlib/complex/float32/ctor}}( 1.0, -1.0 );
> var z2 = new {{alias:@stdlib/complex/float32/ctor}}( 2.0, -2.0 );
> arr = {{alias}}.of( z1, z2 )
<Complex64Array>
> len = arr.length
Expand Down Expand Up @@ -275,7 +275,7 @@
<Complex64Array>
> var offset = arr.byteOffset
0
> var buf = new {{alias:@stdlib/array/buffer}}( 240 )
> var buf = new {{alias:@stdlib/array/buffer}}( 240 );
> arr = new {{alias}}( buf, 64 )
<Complex64Array>
> offset = arr.byteOffset
Expand Down Expand Up @@ -428,7 +428,7 @@

Examples
--------
> function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) > 0.0 ); }
> function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) > 0.0 ); };
> var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] )
<Complex64Array>
> var bool = arr.every( predicate )
Expand Down Expand Up @@ -510,7 +510,7 @@

Examples
--------
> function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); }
> function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); };
> var arr = new {{alias}}( [ 1.0, -1.0, 2.0, 2.0, 3.0, -3.0 ] )
<Complex64Array>
> var out = arr.filter( predicate )
Expand Down Expand Up @@ -553,7 +553,7 @@

Examples
--------
> function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); }
> function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); };
> var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] )
<Complex64Array>
> var z = arr.find( predicate )
Expand Down Expand Up @@ -592,7 +592,7 @@

Examples
--------
> function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); }
> function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); };
> var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] )
<Complex64Array>
> var idx = arr.findIndex( predicate )
Expand Down Expand Up @@ -627,7 +627,7 @@

Examples
--------
> function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); }
> function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); };
> var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] )
<Complex64Array>
> var z = arr.findLast( predicate )
Expand Down Expand Up @@ -666,7 +666,7 @@

Examples
--------
> function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); }
> function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); };
> var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] )
<Complex64Array>
> var idx = arr.findLastIndex( predicate )
Expand All @@ -693,7 +693,7 @@
Examples
--------
> var str = '%';
> function clbk( v ) { str += v.toString() + '%'; }
> function clbk( v ) { str += v.toString() + '%'; };
> var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] )
<Complex64Array>
> arr.forEach( clbk );
Expand Down Expand Up @@ -889,7 +889,7 @@

Examples
--------
> function clbk( v ) { return v; }
> function clbk( v ) { return v; };
> var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] )
<Complex64Array>
> var out = arr.map( clbk )
Expand Down Expand Up @@ -1137,7 +1137,7 @@

Examples
--------
> function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); }
> function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); };
> var arr = new {{alias}}( [ 1.0, -1.0, 2.0, 2.0, 3.0, -3.0 ] )
<Complex64Array>
> var bool = arr.some( predicate )
Expand Down Expand Up @@ -1169,7 +1169,7 @@

Examples
--------
> function compare( a, b ) { return ( {{alias:@stdlib/complex/realf}}( a ) - {{alias:@stdlib/complex/realf}}( b ) ); }
> function compare( a, b ) { return ( {{alias:@stdlib/complex/realf}}( a ) - {{alias:@stdlib/complex/realf}}( b ) ); };
> var arr = new {{alias}}( [ 2.0, -2.0, 3.0, -3.0, 1.0, -1.0 ] )
<Complex64Array>
> arr.sort( compare );
Expand Down Expand Up @@ -1317,7 +1317,7 @@

Examples
--------
> function compare( a, b ) { return ( {{alias:@stdlib/complex/realf}}( a ) - {{alias:@stdlib/complex/realf}}( b ) ); }
> function compare( a, b ) { return ( {{alias:@stdlib/complex/realf}}( a ) - {{alias:@stdlib/complex/realf}}( b ) ); };
> var arr = new {{alias}}( [ 2.0, -2.0, 3.0, -3.0, 1.0, -1.0 ] )
<Complex64Array>
> var out = arr.toSorted( compare );
Expand Down
Loading