diff --git a/lib/node_modules/@stdlib/math/base/README.md b/lib/node_modules/@stdlib/math/base/README.md index 2cdb419aa997..6475867dea45 100644 --- a/lib/node_modules/@stdlib/math/base/README.md +++ b/lib/node_modules/@stdlib/math/base/README.md @@ -46,7 +46,6 @@ The namespace has the following sub-namespaces:
- [`assert`][@stdlib/math/base/assert]: base math assertion utilities. -- [`ops`][@stdlib/math/base/ops]: base (i.e., lower-level) math operators. - [`special`][@stdlib/math/base/special]: base (i.e., lower-level) special math functions. - [`tools`][@stdlib/math/base/tools]: base math tools. - [`utils`][@stdlib/math/base/utils]: base math utilities. @@ -102,8 +101,6 @@ console.log( objectKeys( ns ) ); [@stdlib/math/base/assert]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[@stdlib/math/base/ops]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/ops - [@stdlib/math/base/special]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special [@stdlib/math/base/tools]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/tools diff --git a/lib/node_modules/@stdlib/math/base/docs/types/index.d.ts b/lib/node_modules/@stdlib/math/base/docs/types/index.d.ts index 40fd44bb1932..d6c0eeb09bd5 100644 --- a/lib/node_modules/@stdlib/math/base/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/math/base/docs/types/index.d.ts @@ -21,7 +21,6 @@ /* eslint-disable max-lines */ import assert = require( '@stdlib/math/base/assert' ); -import ops = require( '@stdlib/math/base/ops' ); import special = require( '@stdlib/math/base/special' ); import tools = require( '@stdlib/math/base/tools' ); import utils = require( '@stdlib/math/base/utils' ); @@ -35,11 +34,6 @@ interface Namespace { */ assert: typeof assert; - /** - * Base (i.e., lower-level) math operators. - */ - ops: typeof ops; - /** * Base (i.e., lower-level) special math functions. */ diff --git a/lib/node_modules/@stdlib/math/base/lib/index.js b/lib/node_modules/@stdlib/math/base/lib/index.js index 7ed4f7c65022..1c2f176f2512 100644 --- a/lib/node_modules/@stdlib/math/base/lib/index.js +++ b/lib/node_modules/@stdlib/math/base/lib/index.js @@ -49,15 +49,6 @@ var ns = {}; */ setReadOnly( ns, 'assert', require( '@stdlib/math/base/assert' ) ); -/** -* @name ops -* @memberof ns -* @readonly -* @type {Namespace} -* @see {@link module:@stdlib/math/base/ops} -*/ -setReadOnly( ns, 'ops', require( '@stdlib/math/base/ops' ) ); - /** * @name special * @memberof ns diff --git a/lib/node_modules/@stdlib/math/base/ops/README.md b/lib/node_modules/@stdlib/math/base/ops/README.md deleted file mode 100644 index 7785fb14ce27..000000000000 --- a/lib/node_modules/@stdlib/math/base/ops/README.md +++ /dev/null @@ -1,99 +0,0 @@ - - -# Operators - -> Base (i.e., lower-level) math operators. - -
- -## Usage - -```javascript -var ns = require( '@stdlib/math/base/ops' ); -``` - -#### ns - -Namespace for "base" (i.e., lower-level) math operators. - -```javascript -var operators = ns; -// returns {...} -``` - -The namespace contains the following functions: - - - -
- -- [`csub( z1, z2 )`][@stdlib/complex/float64/base/sub]: subtract two double-precision complex floating-point numbers. -- [`csubf( z1, z2 )`][@stdlib/complex/float32/base/sub]: subtract two single-precision complex floating-point numbers. - -
- - - -
- - - -
- -## Examples - - - - - -```javascript -var ns = require( '@stdlib/math/base/ops' ); - -console.log( ns ); -``` - -
- - - - - - - - - - - - - - diff --git a/lib/node_modules/@stdlib/math/base/ops/docs/types/index.d.ts b/lib/node_modules/@stdlib/math/base/ops/docs/types/index.d.ts deleted file mode 100644 index eac8afe4f46c..000000000000 --- a/lib/node_modules/@stdlib/math/base/ops/docs/types/index.d.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import cmul = require( '@stdlib/complex/float64/base/mul' ); - -/** -* Interface describing the `ops` namespace. -*/ -interface Namespace { - /** - * Multiplies two double-precision complex floating-point numbers. - * - * @param z1 - complex number - * @param z2 - complex number - * @returns result - * - * @example - * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/float64/real' ); - * var imag = require( '@stdlib/complex/float64/imag' ); - * - * var z1 = new Complex128( 5.0, 3.0 ); - * // returns - * - * var z2 = new Complex128( -2.0, 1.0 ); - * // returns - * - * var out = ns.cmul( z1, z2 ); - * // returns - * - * var re = real( out ); - * // returns -13.0 - * - * var im = imag( out ); - * // returns -1.0 - * - * @example - * var Float64Array = require( '@stdlib/array/float64' ); - * - * var out = new Float64Array( 2 ); - * var v = ns.cmul.assign( 5.0, 3.0, -2.0, 1.0, out, 1, 0 ); - * // returns [ -13.0, -1.0 ] - * - * var bool = ( out === v ); - * // returns true - * - * @example - * var Float64Array = require( '@stdlib/array/float64' ); - * - * var z1 = new Float64Array( [ 5.0, 3.0 ] ); - * var z2 = new Float64Array( [ -2.0, 1.0 ] ); - * - * var out = ns.cmul.strided( z1, 1, 0, z2, 1, 0, new Float64Array( 2 ), 1, 0 ); - * // returns [ -13.0, -1.0 ] - */ - cmul: typeof cmul; -} - -/** -* Base (i.e., lower-level) math operators. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/lib/node_modules/@stdlib/math/base/ops/docs/types/test.ts b/lib/node_modules/@stdlib/math/base/ops/docs/types/test.ts deleted file mode 100644 index c2dd14ec1149..000000000000 --- a/lib/node_modules/@stdlib/math/base/ops/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/lib/node_modules/@stdlib/math/base/ops/examples/index.js b/lib/node_modules/@stdlib/math/base/ops/examples/index.js deleted file mode 100644 index 3a963989c6cb..000000000000 --- a/lib/node_modules/@stdlib/math/base/ops/examples/index.js +++ /dev/null @@ -1,57 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var ns = require( './../lib' ); - -// Operations for double-precision floating point numbers: -console.log( ns.add( 1.25, 0.45 ) ); -// => 1.7 - -console.log( ns.sub( 1.25, 0.45 ) ); -// => 0.8 - -// Operations for single-precision floating point numbers: -console.log( ns.mulf( 1.3, 1.2 ) ); -// => ~1.56 - -console.log( ns.divf( 1.2, 0.4 ) ); -// => 3.0 - -// Operations for complex numbers: -var z1 = new Complex128( 5.0, 3.0 ); -var z2 = new Complex128( -2.0, 1.0 ); -console.log( ns.cmul( z1, z2 ) ); // {'re': -13.0, 'im': -1.0 } -// => - -// Operations for signed 32-bit integers: -// 2^30 * -5 = -5368709120 => 32-bit integer overflow -console.log( ns.imul( 1073741824|0, -5|0 ) ); -// => -1073741824 - -// Operations for unsigned 32-bit integers: -// 2^31 * 5 = 10737418240 => 32-bit integer overflow -console.log( ns.umul( 2147483648>>>0, 5>>>0 ) ); -// => 2147483648 - -// Operations for couble word product: -// -(2^31) * 2^30 = -2305843009213694000 => 32-bit integer overflow -console.log( ns.imuldw( 0x80000000|0, 0x40000000|0 ) ); -// => [ -536870912, 0 ] diff --git a/lib/node_modules/@stdlib/math/base/ops/lib/index.js b/lib/node_modules/@stdlib/math/base/ops/lib/index.js deleted file mode 100644 index b959f3b40e14..000000000000 --- a/lib/node_modules/@stdlib/math/base/ops/lib/index.js +++ /dev/null @@ -1,51 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils/define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name cmul -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/complex/float64/base/mul} -*/ -setReadOnly( ns, 'cmul', require( '@stdlib/complex/float64/base/mul' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/lib/node_modules/@stdlib/math/base/ops/package.json b/lib/node_modules/@stdlib/math/base/ops/package.json deleted file mode 100644 index c689e403f219..000000000000 --- a/lib/node_modules/@stdlib/math/base/ops/package.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "name": "@stdlib/math/base/ops", - "version": "0.0.0", - "description": "Base (i.e., lower-level) math operators.", - "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": {}, - "homepage": "https://github.com/stdlib-js/stdlib", - "repository": { - "type": "git", - "url": "git://github.com/stdlib-js/stdlib.git" - }, - "bugs": { - "url": "https://github.com/stdlib-js/stdlib/issues" - }, - "dependencies": {}, - "devDependencies": {}, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], - "keywords": [ - "stdlib", - "stdmath", - "standard", - "library", - "std", - "lib", - "mathematics", - "math", - "ops", - "operator", - "operators", - "complex", - "cmplx", - "namespace", - "ns" - ] -} diff --git a/lib/node_modules/@stdlib/math/base/ops/test/test.js b/lib/node_modules/@stdlib/math/base/ops/test/test.js deleted file mode 100644 index 4703875b1edd..000000000000 --- a/lib/node_modules/@stdlib/math/base/ops/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils/keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains key-value pairs', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -});