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/float32/base/add/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ int main( void ) {

- <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/complex/float32/base/mul`][@stdlib/complex/float32/base/mul]</span><span class="delimiter">: </span><span class="description">multiply two single-precision complex floating-point numbers.</span>
- <span class="package-name">[`@stdlib/math/base/ops/csubf`][@stdlib/math/base/ops/csubf]</span><span class="delimiter">: </span><span class="description">subtract two single-precision complex floating-point numbers.</span>
- <span class="package-name">[`@stdlib/complex/float32/base/sub`][@stdlib/complex/float32/base/sub]</span><span class="delimiter">: </span><span class="description">subtract two single-precision complex floating-point numbers.</span>

</section>

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

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

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

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

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

- <span class="package-name">[`@stdlib/complex/float32/base/add`][@stdlib/complex/float32/base/add]</span><span class="delimiter">: </span><span class="description">add two single-precision complex floating-point 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/csubf`][@stdlib/math/base/ops/csubf]</span><span class="delimiter">: </span><span class="description">subtract two single-precision complex floating-point numbers.</span>
- <span class="package-name">[`@stdlib/complex/float32/base/sub`][@stdlib/complex/float32/base/sub]</span><span class="delimiter">: </span><span class="description">subtract two single-precision complex floating-point numbers.</span>

</section>

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

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

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

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

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 csubf = require( '@stdlib/math/base/ops/csubf' );
var csubf = require( '@stdlib/complex/float32/base/sub' );
```

#### csubf( z1, z2 )
Expand Down Expand Up @@ -71,7 +71,7 @@ var im = imagf( v );
```javascript
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory;
var csubf = require( '@stdlib/math/base/ops/csubf' );
var csubf = require( '@stdlib/complex/float32/base/sub' );

var rand;
var z1;
Expand Down Expand Up @@ -115,10 +115,10 @@ for ( i = 0; i < 100; i++ ) {
### Usage

```c
#include "stdlib/math/base/ops/csubf.h"
#include "stdlib/complex/float32/base/sub.h"
```

#### stdlib_base_csubf( z1, z2 )
#### stdlib_base_complex64_sub( z1, z2 )

Subtracts two single-precision complex floating-point numbers.

Expand All @@ -129,7 +129,7 @@ Subtracts two single-precision complex floating-point numbers.

stdlib_complex64_t z1 = stdlib_complex64( 5.0f, 3.0f );
stdlib_complex64_t z2 = stdlib_complex64( -2.0f, 1.0f );
stdlib_complex64_t out = stdlib_base_csubf( z1, z2 );
stdlib_complex64_t out = stdlib_base_complex64_sub( z1, z2 );

float re = stdlib_complex64_real( out );
// returns 7.0f
Expand All @@ -144,7 +144,7 @@ The function accepts the following arguments:
- **z2**: `[in] stdlib_complex64_t` input value.

```c
stdlib_complex64_t stdlib_base_csubf( const stdlib_complex64_t z1, const stdlib_complex64_t z2 );
stdlib_complex64_t stdlib_base_complex64_sub( const stdlib_complex64_t z1, const stdlib_complex64_t z2 );
```

</section>
Expand All @@ -166,7 +166,7 @@ stdlib_complex64_t stdlib_base_csubf( const stdlib_complex64_t z1, const stdlib_
### Examples

```c
#include "stdlib/math/base/ops/csubf.h"
#include "stdlib/complex/float32/base/sub.h"
#include "stdlib/complex/float32/ctor.h"
#include "stdlib/complex/float32/reim.h"
#include <stdio.h>
Expand All @@ -189,7 +189,7 @@ int main( void ) {
stdlib_complex64_reim( v, &re, &im );
printf( "z = %f + %fi\n", re, im );

y = stdlib_base_csubf( v, v );
y = stdlib_base_complex64_sub( v, v );
stdlib_complex64_reim( y, &re, &im );
printf( "csubf(z, z) = %f + %fi\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/csubf.h"
#include "stdlib/complex/float32/base/sub.h"
#include "stdlib/complex/float32/ctor.h"
#include "stdlib/complex/float32/reim.h"
#include <stdlib.h>
Expand Down Expand Up @@ -113,7 +113,7 @@ static double benchmark( void ) {
im = ( 1000.0f*rand_float() ) - 500.0f;
z2 = stdlib_complex64( re, im );

z3 = stdlib_base_csubf( z1, z2 );
z3 = stdlib_base_complex64_sub( z1, z2 );
stdlib_complex64_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/csubf.h"
#include "stdlib/complex/float32/base/sub.h"
#include "stdlib/complex/float32/ctor.h"
#include "stdlib/complex/float32/reim.h"
#include <stdio.h>
Expand All @@ -39,7 +39,7 @@ int main( void ) {
stdlib_complex64_reim( v, &re, &im );
printf( "z = %f + %fi\n", re, im );

y = stdlib_base_csubf( v, v );
y = stdlib_base_complex64_sub( v, v );
stdlib_complex64_reim( y, &re, &im );
printf( "csubf(z, z) = %f + %fi\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_CSUBF_H
#define STDLIB_MATH_BASE_OPS_CSUBF_H
#ifndef STDLIB_COMPLEX_FLOAT32_BASE_SUB_H
#define STDLIB_COMPLEX_FLOAT32_BASE_SUB_H

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

Expand All @@ -31,10 +31,10 @@ extern "C" {
/**
* Subtracts two single-precision complex floating-point numbers.
*/
stdlib_complex64_t stdlib_base_csubf( const stdlib_complex64_t z1, const stdlib_complex64_t z2 );
stdlib_complex64_t stdlib_base_complex64_sub( const stdlib_complex64_t z1, const stdlib_complex64_t z2 );

#ifdef __cplusplus
}
#endif

#endif // !STDLIB_MATH_BASE_OPS_CSUBF_H
#endif // !STDLIB_COMPLEX_FLOAT32_BASE_SUB_H
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
/**
* Subtract two single-precision complex floating-point numbers.
*
* @module @stdlib/math/base/ops/csubf
* @module @stdlib/complex/float32/base/sub
*
* @example
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
* var csubf = require( '@stdlib/math/base/ops/csubf' );
* var csubf = require( '@stdlib/complex/float32/base/sub' );
*
* var z1 = new Complex64( 5.0, 3.0 );
* // returns <Complex64>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@stdlib/math/base/ops/csubf",
"name": "@stdlib/complex/float32/base/sub",
"version": "0.0.0",
"description": "Subtract two single-precision complex floating-point numbers.",
"license": "Apache-2.0",
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/csubf.h"
#include "stdlib/complex/float32/base/sub.h"
#include "stdlib/math/base/napi/binary.h"

STDLIB_MATH_BASE_NAPI_MODULE_CC_C( stdlib_base_csubf )
STDLIB_MATH_BASE_NAPI_MODULE_CC_C( stdlib_base_complex64_sub )
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/csubf.h"
#include "stdlib/complex/float32/base/sub.h"
#include "stdlib/complex/float32/ctor.h"
#include "stdlib/complex/float32/reim.h"

Expand All @@ -36,15 +36,15 @@
*
* stdlib_complex64_t z2 = stdlib_complex64( -2.0f, 1.0f );
*
* stdlib_complex64_t out = stdlib_base_csubf( z1, z2 );
* stdlib_complex64_t out = stdlib_base_complex64_sub( z1, z2 );
*
* float re = stdlib_complex64_real( out );
* // returns 7.0f
*
* float im = stdlib_complex64_imag( out );
* // returns 2.0f
*/
stdlib_complex64_t stdlib_base_csubf( const stdlib_complex64_t z1, const stdlib_complex64_t z2 ) {
stdlib_complex64_t stdlib_base_complex64_sub( const stdlib_complex64_t z1, const stdlib_complex64_t z2 ) {
float re1;
float re2;
float im1;
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 @@ -46,7 +46,7 @@ The namespace contains the following functions:
<div class="namespace-toc">

- <span class="signature">[`csub( z1, z2 )`][@stdlib/complex/float64/base/sub]</span><span class="delimiter">: </span><span class="description">subtract two double-precision complex floating-point numbers.</span>
- <span class="signature">[`csubf( z1, z2 )`][@stdlib/math/base/ops/csubf]</span><span class="delimiter">: </span><span class="description">subtract two single-precision complex floating-point numbers.</span>
- <span class="signature">[`csubf( z1, z2 )`][@stdlib/complex/float32/base/sub]</span><span class="delimiter">: </span><span class="description">subtract two single-precision complex floating-point numbers.</span>

</div>

Expand Down Expand Up @@ -90,7 +90,7 @@ console.log( ns );

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

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

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

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 csubf = require( '@stdlib/math/base/ops/csubf' );
import sub = require( '@stdlib/number/float64/base/sub' );

/**
Expand Down Expand Up @@ -198,35 +197,6 @@ interface Namespace {
*/
cmul: typeof cmul;

/**
* Subtracts two single-precision complex floating-point numbers.
*
* @param z1 - complex number
* @param z2 - complex number
* @returns result
*
* @example
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* var z1 = new Complex64( 5.0, 3.0 );
* // returns <Complex64>
*
* var z2 = new Complex64( -2.0, 1.0 );
* // returns <Complex64>
*
* var out = ns.csubf( z1, z2 );
* // returns <Complex64>
*
* var re = realf( out );
* // returns 7.0
*
* var im = imagf( out );
* // returns 2.0
*/
csubf: typeof csubf;

/**
* Subtracts two double-precision floating-point numbers `x` and `y`.
*
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 csubf
* @memberof ns
* @readonly
* @type {Function}
* @see {@link module:@stdlib/math/base/ops/csubf}
*/
setReadOnly( ns, 'csubf', require( '@stdlib/math/base/ops/csubf' ) );

/**
* @name sub
* @memberof ns
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/math/strided/ops/sub/lib/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

var sub = require( '@stdlib/number/float64/base/sub' );
var csub = require( '@stdlib/complex/float64/base/sub' );
var csubf = require( '@stdlib/math/base/ops/csubf' );
var csubf = require( '@stdlib/complex/float32/base/sub' );
var callbacks = require( '@stdlib/strided/base/binary-signature-callbacks' );
var types = require( './types.js' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@stdlib/number/float64/base/sub",
"@stdlib/number/float32/base/sub",
"@stdlib/complex/float64/base/sub",
"@stdlib/math/base/ops/csubf",
"@stdlib/complex/float32/base/sub",
"@stdlib/strided/base/function-object",
"@stdlib/strided/base/binary",
"@stdlib/strided/dtypes",
Expand Down
Loading