Skip to content

Commit 4bf98b2

Browse files
committed
feat: add C implementation for stats/base/dists/f/pdf
1 parent 74f9832 commit 4bf98b2

File tree

453 files changed

+814
-37103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

453 files changed

+814
-37103
lines changed

lib/node_modules/@stdlib/array/base/falses/docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ import falses = require( './index' );
2929
// The compiler throws an error if the function is provided an argument which is not a number...
3030
{
3131
falses( 'abc' ); // $ExpectError
32-
falses( true ); // $ExpectError
3332
falses( false ); // $ExpectError
34-
falses( null ); // $ExpectError
33+
falses( false ); // $ExpectError
34+
falses( false ); // $ExpectError
3535
falses( [] ); // $ExpectError
3636
falses( {} ); // $ExpectError
3737
falses( ( x: number ): number => x ); // $ExpectError

lib/node_modules/@stdlib/array/base/trues/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import trues = require( './index' );
3131
trues( 'abc' ); // $ExpectError
3232
trues( true ); // $ExpectError
3333
trues( false ); // $ExpectError
34-
trues( null ); // $ExpectError
34+
trues( true ); // $ExpectError
3535
trues( [] ); // $ExpectError
3636
trues( {} ); // $ExpectError
3737
trues( ( x: number ): number => x ); // $ExpectError

lib/node_modules/@stdlib/array/nulls/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ bench( pkg, function benchmark( b ) {
4141
}
4242
b.toc();
4343
if ( !isCollection( arr ) ) {
44-
b.fail( 'should return an array' );
44+
b.fail( 'should return a typed array' );
4545
}
4646
b.pass( 'benchmark finished' );
4747
b.end();

lib/node_modules/@stdlib/assert/has-dataview-support/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ tape( 'if `DataView` is supported, detection result is `true`', function test( t
7171
}
7272
out = {};
7373
out.buffer = buf;
74-
out._buffer = []; // eslint-disable-line no-underscore-dangle
74+
out._buffer = new Array( byteLength ); // eslint-disable-line no-underscore-dangle
7575
for ( i = 0; i < byteLength; i++ ) {
76-
out._buffer.push( 0 ); // eslint-disable-line no-underscore-dangle
76+
out._buffer[ i ] = 0; // eslint-disable-line no-underscore-dangle
7777
}
7878
out.byteLength = byteLength;
7979
out.byteOffset = byteOffset;

lib/node_modules/@stdlib/blas/base/dgemm/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ The function has the following parameters:
5555
- **K**: number of columns in the matrix `op(A)` and number of rows in the matrix `op(B)`.
5656
- **α**: scalar constant.
5757
- **A**: first input matrix stored in linear memory as a [`Float64Array`][mdn-float64array].
58-
- **lda**: stride between successive contiguous vectors of the matrix `A` (a.k.a., leading dimension of `A`).
58+
- **lda**: stride of the first dimension of `A` (leading dimension of `A`).
5959
- **B**: second input matrix stored in linear memory as a [`Float64Array`][mdn-float64array].
60-
- **ldb**: stride between successive contiguous vectors of the matrix `B` (a.k.a., leading dimension of `B`).
60+
- **ldb**: stride of the first dimension of `B` (leading dimension of `B`).
6161
- **β**: scalar constant.
6262
- **C**: third input matrix stored in linear memory as a [`Float64Array`][mdn-float64array].
63-
- **ldc**: stride between successive contiguous vectors of the matrix `C` (a.k.a., leading dimension of `C`).
63+
- **ldc**: stride of the first dimension of `C` (leading dimension of `C`).
6464

6565
The stride parameters determine how elements in the input arrays are accessed at runtime. For example, to perform matrix multiplication of two subarrays
6666

lib/node_modules/@stdlib/blas/base/dgemm/docs/repl.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@
4343
First matrix.
4444

4545
lda: integer
46-
Stride between successive contiguous vectors of the matrix `A` (a.k.a.,
47-
leading dimension of the matrix `A`).
46+
Stride of the first dimension of `A` (a.k.a., leading dimension of the
47+
matrix `A`).
4848

4949
B: Float64Array
5050
Second matrix.
5151

5252
ldb: integer
53-
Stride between successive contiguous vectors of the matrix `B` (a.k.a.,
54-
leading dimension of the matrix `B`).
53+
Stride of the first dimension of `B` (a.k.a., leading dimension of the
54+
matrix `B`).
5555

5656
β: number
5757
Scalar constant.
@@ -60,8 +60,8 @@
6060
Third matrix.
6161

6262
ldc: integer
63-
Stride between successive contiguous vectors of the matrix `C` (a.k.a.,
64-
leading dimension of the matrix `C`).
63+
Stride of the first dimension of `C` (a.k.a., leading dimension of the
64+
matrix `C`).
6565

6666
Returns
6767
-------

lib/node_modules/@stdlib/blas/base/dgemm/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ interface Routine {
3737
* @param K - number of columns in the matrix `op(A)` and number of rows in the matrix `op(B)`
3838
* @param alpha - scalar constant
3939
* @param A - first matrix
40-
* @param LDA - stride between successive contiguous vectors of the matrix `A` (a.k.a., leading dimension of the matrix `A`)
40+
* @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`)
4141
* @param B - second matrix
42-
* @param LDB - stride between successive contiguous vectors of the matrix `B` (a.k.a., leading dimension of the matrix `B`)
42+
* @param LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`)
4343
* @param beta - scalar constant
4444
* @param C - third matrix
45-
* @param LDC - stride between successive contiguous vectors of the matrix `C` (a.k.a., leading dimension of the matrix `C`)
45+
* @param LDC - stride of the first dimension of `C` (a.k.a., leading dimension of the matrix `C`)
4646
* @returns `C`
4747
*
4848
* @example

lib/node_modules/@stdlib/blas/base/dgemm/lib/dgemm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ var base = require( './base.js' );
4242
* @param {NonNegativeInteger} K - number of columns in the matrix `op(A)` and number of rows in the matrix `op(B)`
4343
* @param {number} alpha - scalar constant
4444
* @param {Float64Array} A - first matrix
45-
* @param {PositiveInteger} LDA - stride between successive contiguous vectors of the matrix `A` (a.k.a., leading dimension of the matrix `A`)
45+
* @param {PositiveInteger} LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`)
4646
* @param {Float64Array} B - second matrix
47-
* @param {PositiveInteger} LDB - stride between successive contiguous vectors of the matrix `B` (a.k.a., leading dimension of the matrix `B`)
47+
* @param {PositiveInteger} LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`)
4848
* @param {number} beta - scalar constant
4949
* @param {Float64Array} C - third matrix
50-
* @param {PositiveInteger} LDC - stride between successive contiguous vectors of the matrix `C` (a.k.a., leading dimension of the matrix `C`)
50+
* @param {PositiveInteger} LDC - stride of the first dimension of `C` (a.k.a., leading dimension of the matrix `C`)
5151
* @throws {TypeError} first argument must be a valid order
5252
* @throws {TypeError} second argument must be a valid transpose operation
5353
* @throws {TypeError} third argument must be a valid transpose operation

lib/node_modules/@stdlib/blas/base/docs/types/index.d.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ import matrixTriangleResolveEnum = require( '@stdlib/blas/base/matrix-triangle-r
8383
import matrixTriangleResolveStr = require( '@stdlib/blas/base/matrix-triangle-resolve-str' );
8484
import matrixTriangleStr2Enum = require( '@stdlib/blas/base/matrix-triangle-str2enum' );
8585
import matrixTriangles = require( '@stdlib/blas/base/matrix-triangles' );
86-
import ndarray = require( '@stdlib/blas/base/ndarray' );
8786
import operationSideEnum2Str = require( '@stdlib/blas/base/operation-side-enum2str' );
8887
import operationSideResolveEnum = require( '@stdlib/blas/base/operation-side-resolve-enum' );
8988
import operationSideResolveStr = require( '@stdlib/blas/base/operation-side-resolve-str' );
@@ -1706,11 +1705,6 @@ interface Namespace {
17061705
*/
17071706
matrixTriangles: typeof matrixTriangles;
17081707

1709-
/**
1710-
* Base ndarray BLAS functions.
1711-
*/
1712-
ndarray: typeof ndarray;
1713-
17141708
/**
17151709
* Returns the BLAS operation side string associated with a BLAS operation side enumeration constant.
17161710
*

lib/node_modules/@stdlib/blas/base/ndarray/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ The namespace exposes the following APIs:
4747

4848
- <span class="signature">[`dasum( arrays )`][@stdlib/blas/base/ndarray/dasum]</span><span class="delimiter">: </span><span class="description">calculate the sum of absolute values for all elements in a one-dimensional double-precision floating-point ndarray.</span>
4949
- <span class="signature">[`ddot( arrays )`][@stdlib/blas/base/ndarray/ddot]</span><span class="delimiter">: </span><span class="description">calculate the dot product of two one-dimensional double-precision floating-point ndarrays.</span>
50-
- <span class="signature">[`gasum( arrays )`][@stdlib/blas/base/ndarray/gasum]</span><span class="delimiter">: </span><span class="description">calculate the sum of absolute values for all elements in a one-dimensional ndarray.</span>
5150
- <span class="signature">[`gdot( arrays )`][@stdlib/blas/base/ndarray/gdot]</span><span class="delimiter">: </span><span class="description">calculate the dot product of two one-dimensional ndarrays.</span>
5251
- <span class="signature">[`sasum( arrays )`][@stdlib/blas/base/ndarray/sasum]</span><span class="delimiter">: </span><span class="description">calculate the sum of absolute values for all elements in a one-dimensional single-precision floating-point ndarray.</span>
5352
- <span class="signature">[`sdot( arrays )`][@stdlib/blas/base/ndarray/sdot]</span><span class="delimiter">: </span><span class="description">calculate the dot product of two one-dimensional single-precision floating-point ndarrays.</span>
@@ -97,8 +96,6 @@ console.log( objectKeys( ns ) );
9796

9897
[@stdlib/blas/base/ndarray/ddot]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/ddot
9998

100-
[@stdlib/blas/base/ndarray/gasum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/gasum
101-
10299
[@stdlib/blas/base/ndarray/gdot]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/gdot
103100

104101
[@stdlib/blas/base/ndarray/sasum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/sasum

0 commit comments

Comments
 (0)