Skip to content

Commit

Permalink
docs: standardize parameter description and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Mar 2, 2023
1 parent ee57f9e commit 9d552f8
Show file tree
Hide file tree
Showing 204 changed files with 303 additions and 312 deletions.
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/ccopy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var im = imagf( z );

The function has the following parameters:

- **N**: number of values to copy.
- **N**: number of indexed elements.
- **x**: input [`Complex64Array`][@stdlib/array/complex64].
- **strideX**: index increment for `x`.
- **y**: destination [`Complex64Array`][@stdlib/array/complex64].
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/blas/base/ccopy/docs/repl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Parameters
----------
N: integer
Number of values to copy.
Number of indexed elements.

x: Complex64Array
Input array.
Expand Down Expand Up @@ -80,7 +80,7 @@
Parameters
----------
N: integer
Number of values to copy.
Number of indexed elements.

x: Complex64Array
Input array.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ interface Routine {
/**
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
*
* @param N - number of values to copy
* @param N - number of indexed elements
* @param x - input array
* @param strideX - `x` stride length
* @param y - output array
Expand Down Expand Up @@ -60,7 +60,7 @@ interface Routine {
/**
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector using alternative indexing semantics.
*
* @param N - number of values to copy
* @param N - number of indexed elements
* @param x - input array
* @param strideX - `x` stride length
* @param offsetX - starting index for `x`
Expand Down Expand Up @@ -94,7 +94,7 @@ interface Routine {
/**
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
*
* @param N - number of values to copy
* @param N - number of indexed elements
* @param x - input array
* @param strideX - `x` stride length
* @param y - output array
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/ccopy/lib/ccopy.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' );
/**
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
*
* @param {PositiveInteger} N - number of values to copy
* @param {PositiveInteger} N - number of indexed elements
* @param {Complex64Array} x - input array
* @param {integer} strideX - `x` stride length
* @param {Complex64Array} y - output array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var addon = require( './../src/addon.node' );
/**
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
*
* @param {PositiveInteger} N - number of values to copy
* @param {PositiveInteger} N - number of indexed elements
* @param {Complex64Array} x - input array
* @param {integer} strideX - `x` stride length
* @param {Complex64Array} y - output array
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/ccopy/lib/ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' );
/**
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
*
* @param {PositiveInteger} N - number of values to copy
* @param {PositiveInteger} N - number of indexed elements
* @param {Complex64Array} x - input array
* @param {integer} strideX - `x` stride length
* @param {NonNegativeInteger} offsetX - starting `x` index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var addon = require( './../src/addon.node' );
/**
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
*
* @param {PositiveInteger} N - number of values to copy
* @param {PositiveInteger} N - number of indexed elements
* @param {Complex64Array} x - input array
* @param {integer} strideX - `x` stride length
* @param {NonNegativeInteger} offsetX - starting `x` index
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/ccopy/src/ccopy.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
*
* @param N number of elements to copy
* @param N number of indexed elements
* @param X input array
* @param strideX X stride length
* @param Y output array
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/ccopy/src/ccopy.f
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
! >
! > * We will gladly answer any questions regarding the software. If a modification is done, however, it is the responsibility of the person who modified the routine to provide support.
!
! @param {integer} N - number of values to copy
! @param {integer} N - number of indexed elements
! @param {Array<complex>} cx - input array
! @param {integer} strideX - `cx` stride length
! @param {Array<complex>} cy - output array
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/ccopy/src/ccopy_cblas.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
*
* @param N number of elements to copy
* @param N number of indexed elements
* @param X input array
* @param strideX X stride length
* @param Y output array
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/ccopy/src/ccopy_f.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
*
* @param N number of elements to copy
* @param N number of indexed elements
* @param X input array
* @param strideX X stride length
* @param Y output array
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/cswap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ im = imagf( z );

The function has the following parameters:

- **N**: number of values to swap.
- **N**: number of indexed elements.
- **x**: input [`Complex64Array`][@stdlib/array/complex64].
- **strideX**: index increment for `x`.
- **y**: destination [`Complex64Array`][@stdlib/array/complex64].
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/blas/base/cswap/docs/repl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Parameters
----------
N: integer
Number of values to swap.
Number of indexed elements.

x: Complex64Array
First input array.
Expand Down Expand Up @@ -95,7 +95,7 @@
Parameters
----------
N: integer
Number of values to swap.
Number of indexed elements.

x: Complex64Array
First input array.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ interface Routine {
/**
* Interchanges two complex single-precision floating-point vectors.
*
* @param N - number of values to copy
* @param N - number of indexed elements
* @param x - first input array
* @param strideX - `x` stride length
* @param y - second input array
Expand Down Expand Up @@ -69,7 +69,7 @@ interface Routine {
/**
* Interchanges two complex single-precision floating-point vectors using alternative indexing semantics.
*
* @param N - number of values to copy
* @param N - number of indexed elements
* @param x - first input array
* @param strideX - `x` stride length
* @param offsetX - starting index for `x`
Expand Down Expand Up @@ -112,7 +112,7 @@ interface Routine {
/**
* Interchanges two complex single-precision floating-point vectors.
*
* @param N - number of values to copy
* @param N - number of indexed elements
* @param x - first input array
* @param strideX - `x` stride length
* @param y - second input array
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/cswap/lib/cswap.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var Float32Array = require( '@stdlib/array/float32' );
/**
* Interchanges two complex single-precision floating-point vectors.
*
* @param {PositiveInteger} N - number of values to swap
* @param {PositiveInteger} N - number of indexed elements
* @param {Complex64Array} x - first input array
* @param {integer} strideX - `x` stride length
* @param {Complex64Array} y - second input array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var addon = require( './../src/addon.node' );
/**
* Interchanges two complex single-precision floating-point vectors.
*
* @param {PositiveInteger} N - number of values to swap
* @param {PositiveInteger} N - number of indexed elements
* @param {Complex64Array} x - first input array
* @param {integer} strideX - `x` stride length
* @param {Complex64Array} y - second input array
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/cswap/lib/ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var Float32Array = require( '@stdlib/array/float32' );
/**
* Interchanges two complex single-precision floating-point vectors.
*
* @param {PositiveInteger} N - number of values to swap
* @param {PositiveInteger} N - number of indexed elements
* @param {Complex64Array} x - first input array
* @param {integer} strideX - `x` stride length
* @param {NonNegativeInteger} offsetX - starting `x` index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var addon = require( './../src/addon.node' );
/**
* Interchanges two complex single-precision floating-point vectors.
*
* @param {PositiveInteger} N - number of values to swap
* @param {PositiveInteger} N - number of indexed elements
* @param {Complex64Array} x - first input array
* @param {integer} strideX - `x` stride length
* @param {NonNegativeInteger} offsetX - starting `x` index
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/cswap/src/cswap.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* Interchanges two complex single-precision floating-point vectors.
*
* @param N number of elements to swap
* @param N number of indexed elements
* @param X first input array
* @param strideX X stride length
* @param Y second input array
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/cswap/src/cswap.f
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
! >
! > * We will gladly answer any questions regarding the software. If a modification is done, however, it is the responsibility of the person who modified the routine to provide support.
!
! @param {integer} N - number of values to swap
! @param {integer} N - number of indexed elements
! @param {Array<complex>} cx - first input array
! @param {integer} strideX - `cx` stride length
! @param {Array<complex>} cy - second input array
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/cswap/src/cswap_cblas.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Interchanges two complex single-precision floating-point vectors.
*
* @param N number of elements to swap
* @param N number of indexed elements
* @param X first input array
* @param strideX X stride length
* @param Y second input array
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/cswap/src/cswap_f.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Interchanges two complex single-precision floating-point vectors.
*
* @param N number of elements to swap
* @param N number of indexed elements
* @param X first input array
* @param strideX X stride length
* @param Y second input array
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/dasum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var sum = dasum( x.length, x, 1 );

The function has the following parameters:

- **N**: number of elements to sum.
- **N**: number of indexed elements.
- **x**: input [`Float64Array`][mdn-float64array].
- **stride**: index increment.

Expand Down
17 changes: 7 additions & 10 deletions lib/node_modules/@stdlib/blas/base/dasum/docs/repl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Parameters
----------
N: integer
Number of elements to sum.
Number of indexed elements.

x: Float64Array
Input array.
Expand All @@ -32,20 +32,17 @@
--------
// Standard usage:
> var x = new {{alias:@stdlib/array/float64}}( [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0 ] );
> var sum = {{alias}}( x.length, x, 1 )
> var s = {{alias}}( x.length, x, 1 )
15.0

// Sum every other value:
> var N = {{alias:@stdlib/math/base/special/floor}}( x.length / 2 );
> var stride = 2;
> sum = {{alias}}( N, x, stride )
> s = {{alias}}( 3, x, 2 )
9.0

// Use view offset; e.g., starting at 2nd element:
> var x0 = new {{alias:@stdlib/array/float64}}( [ 1.0, -2.0, 3.0, -4.0, 5.0, -6.0 ] );
> var x1 = new {{alias:@stdlib/array/float64}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
> N = {{alias:@stdlib/math/base/special/floor}}( x0.length / 2 );
> sum = {{alias}}( N, x1, stride )
> s = {{alias}}( 3, x1, 2 )
12.0


Expand All @@ -59,7 +56,7 @@
Parameters
----------
N: integer
Number of elements to sum.
Number of indexed elements.

x: Float64Array
Input array.
Expand All @@ -79,12 +76,12 @@
--------
// Standard usage:
> var x = new {{alias:@stdlib/array/float64}}( [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0 ] );
> var sum = {{alias}}.ndarray( x.length, x, 1, 0 )
> var s = {{alias}}.ndarray( x.length, x, 1, 0 )
15.0

// Sum the last three elements:
> x = new {{alias:@stdlib/array/float64}}( [ 1.0, -2.0, 3.0, -4.0, 5.0, -6.0 ] );
> sum = {{alias}}.ndarray( 3, x, -1, x.length-1 )
> s = {{alias}}.ndarray( 3, x, -1, x.length-1 )
15.0

See Also
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface Routine {
/**
* Computes the sum of the absolute values.
*
* @param N - number of values to sum
* @param N - number of indexed elements
* @param x - input array
* @param stride - stride length
* @returns sum of absolute values
Expand All @@ -43,7 +43,7 @@ interface Routine {
/**
* Computes the sum of the absolute values using alternative indexing semantics.
*
* @param N - number of values to sum
* @param N - number of indexed elements
* @param x - input array
* @param stride - stride length
* @param offset - starting index
Expand All @@ -63,7 +63,7 @@ interface Routine {
/**
* Computes the sum of the absolute values.
*
* @param N - number of values to sum
* @param N - number of indexed elements
* @param x - input array
* @param stride - stride length
* @returns sum of absolute values
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/dasum/lib/dasum.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var M = 6;
/**
* Computes the sum of absolute values.
*
* @param {PositiveInteger} N - number of values to sum
* @param {PositiveInteger} N - number of indexed elements
* @param {Float64Array} x - input array
* @param {PositiveInteger} stride - `x` stride length
* @returns {number} sum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var addon = require( './../src/addon.node' );
/**
* Computes the sum of absolute values.
*
* @param {PositiveInteger} N - number of values to sum
* @param {PositiveInteger} N - number of indexed elements
* @param {Float64Array} x - input array
* @param {PositiveInteger} stride - `x` stride length
* @returns {number} sum
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/dasum/lib/ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var M = 6;
/**
* Computes the sum of absolute values.
*
* @param {PositiveInteger} N - number of values to sum
* @param {PositiveInteger} N - number of indexed elements
* @param {Float64Array} x - input array
* @param {integer} stride - `x` stride length
* @param {NonNegativeInteger} offset - starting `x` index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var addon = require( './dasum.native.js' );
/**
* Computes the sum of absolute values.
*
* @param {PositiveInteger} N - number of values to sum
* @param {PositiveInteger} N - number of indexed elements
* @param {Float64Array} x - input array
* @param {integer} stride - `x` stride length
* @param {NonNegativeInteger} offset - starting `x` index
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/dasum/src/dasum.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Computes the sum of absolute values.
*
* @param N number of elements to sum
* @param N number of indexed elements
* @param X input array
* @param stride stride length
* @return sum of absolute values
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/dasum/src/dasum.f
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
! >
! > * We will gladly answer any questions regarding the software. If a modification is done, however, it is the responsibility of the person who modified the routine to provide support.
!
! @param {integer} N - number of values to sum
! @param {integer} N - number of indexed elements
! @param {Array<double>} dx - input array
! @param {integer} stride - stride length
! @returns {double} sum of absolute values
Expand Down
Loading

0 comments on commit 9d552f8

Please sign in to comment.