Skip to content
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
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/complex/float64/base/add/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ int main( void ) {

## See Also

- <span class="package-name">[`@stdlib/math/base/ops/cdiv`][@stdlib/math/base/ops/cdiv]</span><span class="delimiter">: </span><span class="description">divide two complex numbers.</span>
- <span class="package-name">[`@stdlib/complex/float64/base/div`][@stdlib/complex/float64/base/div]</span><span class="delimiter">: </span><span class="description">divide two complex numbers.</span>
- <span class="package-name">[`@stdlib/complex/float64/base/mul`][@stdlib/complex/float64/base/mul]</span><span class="delimiter">: </span><span class="description">multiply two double-precision complex floating-point numbers.</span>
- <span class="package-name">[`@stdlib/math/base/ops/csub`][@stdlib/math/base/ops/csub]</span><span class="delimiter">: </span><span class="description">subtract two double-precision complex floating-point numbers.</span>

Expand All @@ -279,7 +279,7 @@ int main( void ) {

<!-- <related-links> -->

[@stdlib/math/base/ops/cdiv]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/ops/cdiv
[@stdlib/complex/float64/base/div]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float64/base/div

[@stdlib/complex/float64/base/mul]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float64/base/mul

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ limitations under the License.
## Usage

```javascript
var cdiv = require( '@stdlib/math/base/ops/cdiv' );
var cdiv = require( '@stdlib/complex/float64/base/div' );
```

#### cdiv( z1, z2 )
Expand Down Expand Up @@ -73,7 +73,7 @@ var Complex128 = require( '@stdlib/complex/float64/ctor' );
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
var real = require( '@stdlib/complex/float64/real' );
var imag = require( '@stdlib/complex/float64/imag' );
var cdiv = require( '@stdlib/math/base/ops/cdiv' );
var cdiv = require( '@stdlib/complex/float64/base/div' );

function randomComplex() {
var re = discreteUniform( -50, 50 );
Expand Down Expand Up @@ -120,10 +120,10 @@ for ( i = 0; i < 100; i++ ) {
### Usage

```c
#include "stdlib/math/base/ops/cdiv.h"
#include "stdlib/complex/float64/base/div.h"
```

#### stdlib_base_cdiv( z1, z2 )
#### stdlib_base_complex128_div( z1, z2 )

Divides two double-precision complex floating-point numbers.

Expand All @@ -135,7 +135,7 @@ Divides two double-precision complex floating-point numbers.
stdlib_complex128_t z1 = stdlib_complex128( -13.0, -1.0 );
stdlib_complex128_t z2 = stdlib_complex128( -2.0, 1.0 );

stdlib_complex128_t out = stdlib_base_cdiv( z1, z2 );
stdlib_complex128_t out = stdlib_base_complex128_div( z1, z2 );

double re = stdlib_complex128_real( out );
// returns 5.0
Expand All @@ -150,7 +150,7 @@ The function accepts the following arguments:
- **z2**: `[in] stdlib_complex128_t` input value.

```c
stdlib_complex128_t stdlib_base_cdiv( const stdlib_complex128_t z1, const stdlib_complex128_t z2 );
stdlib_complex128_t stdlib_base_complex128_div( const stdlib_complex128_t z1, const stdlib_complex128_t z2 );
```

</section>
Expand All @@ -172,7 +172,7 @@ stdlib_complex128_t stdlib_base_cdiv( const stdlib_complex128_t z1, const stdlib
### Examples

```c
#include "stdlib/math/base/ops/cdiv.h"
#include "stdlib/complex/float64/base/div.h"
#include "stdlib/complex/float64/ctor.h"
#include "stdlib/complex/float64/reim.h"
#include <stdio.h>
Expand All @@ -195,7 +195,7 @@ int main( void ) {
stdlib_complex128_reim( v, &re, &im );
printf( "z = %lf + %lfi\n", re, im );

y = stdlib_base_cdiv( v, v );
y = stdlib_base_complex128_div( v, v );
stdlib_complex128_reim( y, &re, &im );
printf( "cdiv(z, z) = %lf + %lfi\n", re, im );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

#include "stdlib/math/base/ops/cdiv.h"
#include "stdlib/complex/float64/base/div.h"
#include "stdlib/complex/float64/ctor.h"
#include "stdlib/complex/float64/reim.h"
#include <stdlib.h>
Expand Down Expand Up @@ -112,7 +112,7 @@ static double benchmark( void ) {
im = ( 1000.0*rand_double() ) - 500.0;
z2 = stdlib_complex128( re, im );

z3 = stdlib_base_cdiv( z1, z2 );
z3 = stdlib_base_complex128_div( z1, z2 );
stdlib_complex128_reim( z3, &re, &im );
if ( re != re ) {
printf( "should not return NaN\n" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

#include "stdlib/math/base/ops/cdiv.h"
#include "stdlib/complex/float64/base/div.h"
#include "stdlib/complex/float64/ctor.h"
#include "stdlib/complex/float64/reim.h"
#include <stdio.h>
Expand All @@ -39,7 +39,7 @@ int main( void ) {
stdlib_complex128_reim( v, &re, &im );
printf( "z = %lf + %lfi\n", re, im );

y = stdlib_base_cdiv( v, v );
y = stdlib_base_complex128_div( v, v );
stdlib_complex128_reim( y, &re, &im );
printf( "cdiv(z, z) = %lf + %lfi\n", re, im );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* limitations under the License.
*/

#ifndef STDLIB_MATH_BASE_OPS_CDIV_H
#define STDLIB_MATH_BASE_OPS_CDIV_H
#ifndef STDLIB_COMPLEX_FLOAT64_BASE_DIV_H
#define STDLIB_COMPLEX_FLOAT64_BASE_DIV_H

#include "stdlib/complex/float64/ctor.h"

Expand All @@ -31,10 +31,10 @@ extern "C" {
/**
* Divides two double-precision complex floating-point numbers.
*/
stdlib_complex128_t stdlib_base_cdiv( const stdlib_complex128_t z1, const stdlib_complex128_t z2 );
stdlib_complex128_t stdlib_base_complex128_div( const stdlib_complex128_t z1, const stdlib_complex128_t z2 );

#ifdef __cplusplus
}
#endif

#endif // !STDLIB_MATH_BASE_OPS_CDIV_H
#endif // !STDLIB_COMPLEX_FLOAT64_BASE_DIV_H
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
/**
* Divide two double-precision complex floating-point numbers.
*
* @module @stdlib/math/base/ops/cdiv
* @module @stdlib/complex/float64/base/div
*
* @example
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
* var real = require( '@stdlib/complex/float64/real' );
* var imag = require( '@stdlib/complex/float64/imag' );
* var cdiv = require( '@stdlib/math/base/ops/cdiv' );
* var cdiv = require( '@stdlib/complex/float64/base/div' );
*
* var z1 = new Complex128( -13.0, -1.0 );
* // returns <Complex128>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@stdlib/math/base/ops/cdiv",
"name": "@stdlib/complex/float64/base/div",
"version": "0.0.0",
"description": "Divide two complex numbers.",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* limitations under the License.
*/

#include "stdlib/math/base/ops/cdiv.h"
#include "stdlib/complex/float64/base/div.h"
#include "stdlib/math/base/napi/binary.h"

// cppcheck-suppress shadowFunction
STDLIB_MATH_BASE_NAPI_MODULE_ZZ_Z( stdlib_base_cdiv )
STDLIB_MATH_BASE_NAPI_MODULE_ZZ_Z( stdlib_base_complex128_div )
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

#include "stdlib/math/base/ops/cdiv.h"
#include "stdlib/complex/float64/base/div.h"
#include "stdlib/math/base/special/abs.h"
#include "stdlib/complex/float64/ctor.h"
#include "stdlib/complex/float64/reim.h"
Expand Down Expand Up @@ -100,15 +100,15 @@ static void robustInternal( const double re1, const double im1, const double re2
* stdlib_complex128_t z1 = stdlib_complex128( -13.0, -1.0 );
* stdlib_complex128_t z2 = stdlib_complex128( -2.0, 1.0 );
*
* stdlib_complex128_t out = stdlib_base_cdiv( z1, z2 );
* stdlib_complex128_t out = stdlib_base_complex128_div( z1, z2 );
*
* double re = stdlib_complex128_real( out );
* // returns 5.0
*
* double im = stdlib_complex128_imag( out );
* // returns 3.0
*/
stdlib_complex128_t stdlib_base_cdiv( const stdlib_complex128_t z1, const stdlib_complex128_t z2 ) {
stdlib_complex128_t stdlib_base_complex128_div( const stdlib_complex128_t z1, const stdlib_complex128_t z2 ) {
double re1;
double re2;
double im1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import JSON

"""
gen( re1, im1, re2, im2, name )
gen( re1, im1, re2, im2, name )

Generate fixture data and write to file.

Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/complex/float64/base/mul/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ int main( void ) {
## See Also

- <span class="package-name">[`@stdlib/complex/float64/base/add`][@stdlib/complex/float64/base/add]</span><span class="delimiter">: </span><span class="description">add two double-precision complex floating-point numbers.</span>
- <span class="package-name">[`@stdlib/math/base/ops/cdiv`][@stdlib/math/base/ops/cdiv]</span><span class="delimiter">: </span><span class="description">divide two complex numbers.</span>
- <span class="package-name">[`@stdlib/complex/float64/base/div`][@stdlib/complex/float64/base/div]</span><span class="delimiter">: </span><span class="description">divide two complex numbers.</span>
- <span class="package-name">[`@stdlib/math/base/ops/csub`][@stdlib/math/base/ops/csub]</span><span class="delimiter">: </span><span class="description">subtract two double-precision complex floating-point numbers.</span>

</section>
Expand All @@ -290,7 +290,7 @@ int main( void ) {

[@stdlib/complex/float64/base/add]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float64/base/add

[@stdlib/math/base/ops/cdiv]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/ops/cdiv
[@stdlib/complex/float64/base/div]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float64/base/div

[@stdlib/math/base/ops/csub]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/ops/csub

Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/math/base/ops/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The namespace contains the following functions:

<div class="namespace-toc">

- <span class="signature">[`cdiv( z1, z2 )`][@stdlib/math/base/ops/cdiv]</span><span class="delimiter">: </span><span class="description">divide two double-precision complex floating-point numbers.</span>
- <span class="signature">[`cdiv( z1, z2 )`][@stdlib/complex/float64/base/div]</span><span class="delimiter">: </span><span class="description">divide two double-precision complex floating-point numbers.</span>
- <span class="signature">[`cneg( z )`][@stdlib/math/base/ops/cneg]</span><span class="delimiter">: </span><span class="description">negate a double-precision complex floating-point number.</span>
- <span class="signature">[`cnegf( z )`][@stdlib/math/base/ops/cnegf]</span><span class="delimiter">: </span><span class="description">negate a single-precision complex floating-point number.</span>
- <span class="signature">[`csub( z1, z2 )`][@stdlib/math/base/ops/csub]</span><span class="delimiter">: </span><span class="description">subtract two double-precision complex floating-point numbers.</span>
Expand Down Expand Up @@ -102,7 +102,7 @@ console.log( ns.cmul( z1, z2 ) ); // { 're': -13.0, 'im': -1.0 }

<!-- <toc-links> -->

[@stdlib/math/base/ops/cdiv]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/ops/cdiv
[@stdlib/complex/float64/base/div]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float64/base/div

[@stdlib/math/base/ops/cneg]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/ops/cneg

Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/math/base/ops/csub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ int main( void ) {
## See Also

- <span class="package-name">[`@stdlib/complex/float64/base/add`][@stdlib/complex/float64/base/add]</span><span class="delimiter">: </span><span class="description">add two double-precision complex floating-point numbers.</span>
- <span class="package-name">[`@stdlib/math/base/ops/cdiv`][@stdlib/math/base/ops/cdiv]</span><span class="delimiter">: </span><span class="description">divide two complex numbers.</span>
- <span class="package-name">[`@stdlib/complex/float64/base/div`][@stdlib/complex/float64/base/div]</span><span class="delimiter">: </span><span class="description">divide two complex numbers.</span>
- <span class="package-name">[`@stdlib/complex/float64/base/mul`][@stdlib/complex/float64/base/mul]</span><span class="delimiter">: </span><span class="description">multiply two double-precision complex floating-point numbers.</span>

</section>
Expand All @@ -229,7 +229,7 @@ int main( void ) {

[@stdlib/complex/float64/base/add]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float64/base/add

[@stdlib/math/base/ops/cdiv]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/ops/cdiv
[@stdlib/complex/float64/base/div]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float64/base/div

[@stdlib/complex/float64/base/mul]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float64/base/mul

Expand Down
30 changes: 0 additions & 30 deletions lib/node_modules/@stdlib/math/base/ops/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import caddf = require( '@stdlib/complex/float32/base/add' );
import cmulf = require( '@stdlib/complex/float32/base/mul' );
import cadd = require( '@stdlib/complex/float64/base/add' );
import cmul = require( '@stdlib/complex/float64/base/mul' );
import cdiv = require( '@stdlib/math/base/ops/cdiv' );
import cneg = require( '@stdlib/math/base/ops/cneg' );
import cnegf = require( '@stdlib/math/base/ops/cnegf' );
import csub = require( '@stdlib/math/base/ops/csub' );
Expand Down Expand Up @@ -205,35 +204,6 @@ interface Namespace {
*/
cmul: typeof cmul;

/**
* Divides 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( -13.0, -1.0 );
* // returns <Complex128>
*
* var z2 = new Complex128( -2.0, 1.0 );
* // returns <Complex128>
*
* var out = ns.cdiv( z1, z2 );
* // returns <Complex128>
*
* var re = real( out );
* // returns 5.0
*
* var im = imag( out );
* // returns 3.0
*/
cdiv: typeof cdiv;

/**
* Negates a double-precision complex floating-point number.
*
Expand Down
9 changes: 0 additions & 9 deletions lib/node_modules/@stdlib/math/base/ops/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,6 @@ setReadOnly( ns, 'cadd', require( '@stdlib/complex/float64/base/add' ) );
*/
setReadOnly( ns, 'cmul', require( '@stdlib/complex/float64/base/mul' ) );

/**
* @name cdiv
* @memberof ns
* @readonly
* @type {Function}
* @see {@link module:@stdlib/math/base/ops/cdiv}
*/
setReadOnly( ns, 'cdiv', require( '@stdlib/math/base/ops/cdiv' ) );

/**
* @name cneg
* @memberof ns
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/math/base/special/cinv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ int main() {

## See Also

- <span class="package-name">[`@stdlib/math/base/ops/cdiv`][@stdlib/math/base/ops/cdiv]</span><span class="delimiter">: </span><span class="description">divide two complex numbers.</span>
- <span class="package-name">[`@stdlib/complex/float64/base/div`][@stdlib/complex/float64/base/div]</span><span class="delimiter">: </span><span class="description">divide two complex numbers.</span>

</section>

Expand All @@ -251,7 +251,7 @@ int main() {

<!-- <related-links> -->

[@stdlib/math/base/ops/cdiv]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/ops/cdiv
[@stdlib/complex/float64/base/div]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float64/base/div

<!-- </related-links> -->

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/namespace/alias2pkg/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ base.cceil,"@stdlib/math/base/special/cceil"
base.cceilf,"@stdlib/math/base/special/cceilf"
base.cceiln,"@stdlib/math/base/special/cceiln"
base.ccis,"@stdlib/math/base/special/ccis"
base.cdiv,"@stdlib/math/base/ops/cdiv"
base.cdiv,"@stdlib/complex/float64/base/div"
base.ceil,"@stdlib/math/base/special/ceil"
base.ceil2,"@stdlib/math/base/special/ceil2"
base.ceil10,"@stdlib/math/base/special/ceil10"
Expand Down

Large diffs are not rendered by default.

Loading