From 58dff6f4c6256c23de838edb400db00b7b96bc33 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 17 Jul 2024 10:22:58 +0000 Subject: [PATCH] Auto-generated commit --- CHANGELOG.md | 7 +- base/ops/cadd/README.md | 12 ++-- base/ops/cadd/benchmark/benchmark.js | 4 +- base/ops/cadd/benchmark/benchmark.native.js | 4 +- base/ops/cadd/docs/repl.txt | 4 +- base/ops/cadd/docs/types/index.d.ts | 4 +- base/ops/cadd/lib/index.js | 4 +- base/ops/cadd/lib/main.js | 8 +-- base/ops/cadd/lib/native.js | 4 +- base/ops/cadd/src/main.c | 8 +-- base/ops/cadd/test/test.js | 4 +- base/ops/cadd/test/test.native.js | 4 +- base/ops/caddf/README.md | 12 ++-- base/ops/caddf/benchmark/benchmark.js | 4 +- base/ops/caddf/benchmark/benchmark.native.js | 4 +- base/ops/caddf/docs/repl.txt | 4 +- base/ops/caddf/docs/types/index.d.ts | 4 +- base/ops/caddf/lib/index.js | 4 +- base/ops/caddf/lib/main.js | 8 +-- base/ops/caddf/lib/native.js | 4 +- base/ops/caddf/src/main.c | 8 +-- base/ops/caddf/test/test.js | 4 +- base/ops/caddf/test/test.native.js | 4 +- base/ops/cdiv/README.md | 16 ++--- base/ops/cdiv/benchmark/benchmark.js | 4 +- base/ops/cdiv/benchmark/benchmark.native.js | 4 +- base/ops/cdiv/docs/repl.txt | 4 +- base/ops/cdiv/docs/types/index.d.ts | 4 +- base/ops/cdiv/lib/index.js | 4 +- base/ops/cdiv/lib/main.js | 8 +-- base/ops/cdiv/lib/native.js | 4 +- base/ops/cdiv/src/main.c | 8 +-- base/ops/cdiv/test/test.js | 4 +- base/ops/cdiv/test/test.native.js | 4 +- base/ops/cmul/README.md | 12 ++-- base/ops/cmul/benchmark/benchmark.js | 4 +- base/ops/cmul/benchmark/benchmark.native.js | 4 +- base/ops/cmul/docs/repl.txt | 4 +- base/ops/cmul/docs/types/index.d.ts | 4 +- base/ops/cmul/lib/index.js | 4 +- base/ops/cmul/lib/main.js | 8 +-- base/ops/cmul/lib/native.js | 4 +- base/ops/cmul/src/main.c | 8 +-- base/ops/cmul/test/test.js | 4 +- base/ops/cmul/test/test.native.js | 4 +- base/ops/cmulf/README.md | 12 ++-- base/ops/cmulf/benchmark/benchmark.js | 4 +- base/ops/cmulf/benchmark/benchmark.native.js | 4 +- base/ops/cmulf/docs/repl.txt | 4 +- base/ops/cmulf/docs/types/index.d.ts | 4 +- base/ops/cmulf/lib/index.js | 4 +- base/ops/cmulf/lib/main.js | 8 +-- base/ops/cmulf/lib/native.js | 4 +- base/ops/cmulf/src/main.c | 8 +-- base/ops/cmulf/test/test.js | 4 +- base/ops/cmulf/test/test.native.js | 4 +- base/ops/cneg/README.md | 12 ++-- base/ops/cneg/benchmark/benchmark.native.js | 4 +- base/ops/cneg/docs/repl.txt | 4 +- base/ops/cneg/docs/types/index.d.ts | 12 ++-- base/ops/cneg/lib/index.js | 12 ++-- base/ops/cneg/lib/main.js | 16 ++--- base/ops/cneg/lib/native.js | 12 ++-- base/ops/cneg/src/main.c | 8 +-- base/ops/cneg/test/test.js | 4 +- base/ops/cneg/test/test.native.js | 4 +- base/ops/cnegf/README.md | 12 ++-- base/ops/cnegf/benchmark/benchmark.js | 4 +- base/ops/cnegf/benchmark/benchmark.native.js | 4 +- base/ops/cnegf/docs/repl.txt | 4 +- base/ops/cnegf/docs/types/index.d.ts | 12 ++-- base/ops/cnegf/lib/index.js | 12 ++-- base/ops/cnegf/lib/main.js | 16 ++--- base/ops/cnegf/lib/native.js | 12 ++-- base/ops/cnegf/src/main.c | 8 +-- base/ops/cnegf/test/test.js | 4 +- base/ops/cnegf/test/test.native.js | 4 +- base/ops/csub/README.md | 12 ++-- base/ops/csub/benchmark/benchmark.js | 4 +- base/ops/csub/benchmark/benchmark.native.js | 4 +- base/ops/csub/docs/repl.txt | 4 +- base/ops/csub/docs/types/index.d.ts | 4 +- base/ops/csub/lib/index.js | 4 +- base/ops/csub/lib/main.js | 8 +-- base/ops/csub/lib/native.js | 4 +- base/ops/csub/src/main.c | 8 +-- base/ops/csub/test/test.js | 4 +- base/ops/csub/test/test.native.js | 4 +- base/ops/csubf/README.md | 12 ++-- base/ops/csubf/benchmark/benchmark.js | 4 +- base/ops/csubf/benchmark/benchmark.native.js | 4 +- base/ops/csubf/docs/repl.txt | 4 +- base/ops/csubf/docs/types/index.d.ts | 4 +- base/ops/csubf/lib/index.js | 4 +- base/ops/csubf/lib/main.js | 8 +-- base/ops/csubf/lib/native.js | 4 +- base/ops/csubf/src/main.c | 8 +-- base/ops/csubf/test/test.js | 4 +- base/ops/csubf/test/test.native.js | 4 +- base/ops/docs/types/index.d.ts | 52 +++++++------- base/special/cabs/lib/main.js | 4 +- base/special/cabs2/lib/main.js | 4 +- base/special/cabs2f/lib/main.js | 4 +- base/special/cabsf/lib/main.js | 4 +- base/special/cceil/README.md | 12 ++-- base/special/cceil/benchmark/benchmark.js | 4 +- .../cceil/benchmark/benchmark.native.js | 2 +- base/special/cceil/docs/repl.txt | 4 +- base/special/cceil/docs/types/index.d.ts | 4 +- base/special/cceil/lib/index.js | 4 +- base/special/cceil/lib/main.js | 8 +-- base/special/cceil/lib/native.js | 4 +- base/special/cceil/src/main.c | 8 +-- base/special/cceil/test/test.js | 4 +- base/special/cceil/test/test.native.js | 4 +- base/special/cceilf/README.md | 4 +- base/special/cceilf/benchmark/benchmark.js | 4 +- base/special/cceilf/docs/repl.txt | 4 +- base/special/cceilf/docs/types/index.d.ts | 4 +- base/special/cceilf/lib/index.js | 4 +- base/special/cceilf/lib/main.js | 8 +-- base/special/cceilf/test/test.js | 4 +- base/special/cceiln/README.md | 16 ++--- base/special/cceiln/benchmark/benchmark.js | 4 +- .../cceiln/benchmark/benchmark.native.js | 4 +- base/special/cceiln/docs/repl.txt | 4 +- base/special/cceiln/docs/types/index.d.ts | 4 +- base/special/cceiln/lib/index.js | 4 +- base/special/cceiln/lib/main.js | 8 +-- base/special/cceiln/lib/native.js | 4 +- base/special/cceiln/src/main.c | 8 +-- base/special/cceiln/test/test.js | 4 +- base/special/cceiln/test/test.native.js | 4 +- base/special/ccis/README.md | 12 ++-- base/special/ccis/benchmark/benchmark.js | 4 +- .../ccis/benchmark/benchmark.native.js | 4 +- base/special/ccis/docs/repl.txt | 8 +-- base/special/ccis/docs/types/index.d.ts | 8 +-- base/special/ccis/lib/index.js | 8 +-- base/special/ccis/lib/main.js | 12 ++-- base/special/ccis/lib/native.js | 8 +-- base/special/ccis/src/main.c | 16 ++--- base/special/ccis/test/test.js | 4 +- base/special/ccis/test/test.native.js | 4 +- base/special/cexp/README.md | 12 ++-- base/special/cexp/benchmark/benchmark.js | 4 +- .../cexp/benchmark/benchmark.native.js | 4 +- base/special/cexp/docs/repl.txt | 8 +-- base/special/cexp/docs/types/index.d.ts | 8 +-- base/special/cexp/lib/index.js | 4 +- base/special/cexp/lib/main.js | 12 ++-- base/special/cexp/lib/native.js | 8 +-- base/special/cexp/src/main.c | 8 +-- base/special/cexp/test/test.js | 4 +- base/special/cexp/test/test.native.js | 4 +- base/special/cflipsign/README.md | 12 ++-- base/special/cflipsign/benchmark/benchmark.js | 4 +- .../cflipsign/benchmark/benchmark.native.js | 2 +- base/special/cflipsign/docs/repl.txt | 4 +- base/special/cflipsign/docs/types/index.d.ts | 4 +- base/special/cflipsign/lib/index.js | 4 +- base/special/cflipsign/lib/main.js | 8 +-- base/special/cflipsign/lib/native.js | 4 +- base/special/cflipsign/src/main.c | 8 +-- base/special/cflipsign/test/test.js | 4 +- base/special/cflipsign/test/test.native.js | 4 +- base/special/cflipsignf/README.md | 4 +- .../special/cflipsignf/benchmark/benchmark.js | 4 +- base/special/cflipsignf/docs/repl.txt | 4 +- base/special/cflipsignf/docs/types/index.d.ts | 4 +- base/special/cflipsignf/lib/index.js | 4 +- base/special/cflipsignf/lib/main.js | 8 +-- base/special/cflipsignf/test/test.js | 4 +- base/special/cfloor/README.md | 12 ++-- base/special/cfloor/benchmark/benchmark.js | 4 +- .../cfloor/benchmark/benchmark.native.js | 2 +- base/special/cfloor/docs/repl.txt | 4 +- base/special/cfloor/docs/types/index.d.ts | 4 +- base/special/cfloor/lib/index.js | 16 ++--- base/special/cfloor/lib/main.js | 20 +++--- base/special/cfloor/lib/native.js | 4 +- base/special/cfloor/src/main.c | 8 +-- base/special/cfloor/test/test.js | 4 +- base/special/cfloor/test/test.native.js | 4 +- base/special/cfloorn/README.md | 16 ++--- base/special/cfloorn/benchmark/benchmark.js | 4 +- .../cfloorn/benchmark/benchmark.native.js | 4 +- base/special/cfloorn/docs/repl.txt | 4 +- base/special/cfloorn/docs/types/index.d.ts | 4 +- base/special/cfloorn/lib/index.js | 4 +- base/special/cfloorn/lib/main.js | 8 +-- base/special/cfloorn/lib/native.js | 4 +- base/special/cfloorn/src/main.c | 8 +-- base/special/cfloorn/test/test.js | 4 +- base/special/cfloorn/test/test.native.js | 4 +- base/special/cidentity/README.md | 12 ++-- base/special/cidentity/benchmark/benchmark.js | 4 +- .../cidentity/benchmark/benchmark.native.js | 2 +- base/special/cidentity/docs/repl.txt | 4 +- base/special/cidentity/docs/types/index.d.ts | 4 +- base/special/cidentity/lib/index.js | 4 +- base/special/cidentity/lib/main.js | 4 +- base/special/cidentity/lib/native.js | 8 +-- base/special/cidentity/src/main.c | 8 +-- base/special/cidentity/test/test.js | 4 +- base/special/cidentity/test/test.native.js | 4 +- base/special/cidentityf/README.md | 4 +- .../special/cidentityf/benchmark/benchmark.js | 4 +- base/special/cidentityf/docs/repl.txt | 4 +- base/special/cidentityf/docs/types/index.d.ts | 4 +- base/special/cidentityf/lib/index.js | 4 +- base/special/cidentityf/lib/main.js | 4 +- base/special/cidentityf/test/test.js | 4 +- base/special/cinv/README.md | 12 ++-- base/special/cinv/benchmark/benchmark.js | 4 +- .../cinv/benchmark/benchmark.native.js | 4 +- base/special/cinv/docs/repl.txt | 4 +- base/special/cinv/docs/types/index.d.ts | 4 +- base/special/cinv/lib/index.js | 4 +- base/special/cinv/lib/main.js | 8 +-- base/special/cinv/lib/native.js | 4 +- base/special/cinv/src/main.c | 8 +-- base/special/cinv/test/test.js | 4 +- base/special/cinv/test/test.native.js | 4 +- base/special/cphase/README.md | 4 +- base/special/cphase/lib/main.js | 4 +- base/special/cphase/src/main.c | 4 +- base/special/cpolar/README.md | 8 +-- base/special/cpolar/src/main.c | 4 +- base/special/cround/README.md | 12 ++-- base/special/cround/benchmark/benchmark.js | 4 +- .../cround/benchmark/benchmark.native.js | 2 +- base/special/cround/docs/repl.txt | 4 +- base/special/cround/docs/types/index.d.ts | 4 +- base/special/cround/lib/index.js | 4 +- base/special/cround/lib/main.js | 8 +-- base/special/cround/lib/native.js | 4 +- base/special/cround/src/main.c | 8 +-- base/special/cround/test/test.js | 4 +- base/special/cround/test/test.native.js | 4 +- base/special/croundn/README.md | 16 ++--- base/special/croundn/benchmark/benchmark.js | 4 +- .../croundn/benchmark/benchmark.native.js | 2 +- base/special/croundn/docs/repl.txt | 4 +- base/special/croundn/docs/types/index.d.ts | 4 +- base/special/croundn/lib/index.js | 4 +- base/special/croundn/lib/main.js | 8 +-- base/special/croundn/lib/native.js | 4 +- base/special/croundn/src/main.c | 8 +-- base/special/croundn/test/test.js | 4 +- base/special/croundn/test/test.native.js | 4 +- base/special/csignum/README.md | 12 ++-- base/special/csignum/benchmark/benchmark.js | 4 +- .../csignum/benchmark/benchmark.native.js | 2 +- base/special/csignum/docs/repl.txt | 4 +- base/special/csignum/docs/types/index.d.ts | 4 +- base/special/csignum/lib/index.js | 4 +- base/special/csignum/lib/main.js | 8 +-- base/special/csignum/lib/native.js | 4 +- base/special/csignum/src/main.c | 8 +-- base/special/csignum/test/test.js | 4 +- base/special/csignum/test/test.native.js | 4 +- base/special/docs/types/index.d.ts | 68 +++++++++---------- 263 files changed, 827 insertions(+), 822 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ffbb86614..24e8c662e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@
-## Unreleased (2024-07-16) +## Unreleased (2024-07-17)
@@ -5132,6 +5132,11 @@ A total of 29 people contributed to this release. Thank you to the following con
+- [`32bbcb3`](https://github.com/stdlib-js/stdlib/commit/32bbcb3b3dae1f028fd18166ee7875a93d44d0ee) - **refactor:** update paths _(by Athan Reines)_ +- [`5072206`](https://github.com/stdlib-js/stdlib/commit/50722067d1c17e17be721982e5a99ed65868d9ae) - **refactor:** fix function name _(by Athan Reines)_ +- [`8d4c46b`](https://github.com/stdlib-js/stdlib/commit/8d4c46b10ca912401e0ff0caa37a17cd3c443c2f) - **refactor:** update paths _(by Athan Reines)_ +- [`ed9c0a5`](https://github.com/stdlib-js/stdlib/commit/ed9c0a5e55ff09af3dd6af8c38615480e2c1828e) - **refactor:** update paths _(by Athan Reines)_ +- [`18b3c79`](https://github.com/stdlib-js/stdlib/commit/18b3c79c5035c7082618b7379cd6576e64393a96) - **refactor:** update paths _(by Athan Reines)_ - [`8908bda`](https://github.com/stdlib-js/stdlib/commit/8908bda11588f80edf375466ae9e84a3d70cf7d3) - **refactor:** update paths _(by Athan Reines)_ - [`ad760a9`](https://github.com/stdlib-js/stdlib/commit/ad760a922086631226d8f759a0d467c707fbc0fb) - **refactor:** update paths _(by Athan Reines)_ - [`06fd785`](https://github.com/stdlib-js/stdlib/commit/06fd785919d2ef770b5a2bffd69dd4d3c36e8294) - **feat:** add C implementation for `math/base/special/ceil2` [(##2602)](#2602) _(by Gunj Joshi)_ diff --git a/base/ops/cadd/README.md b/base/ops/cadd/README.md index eefb47832..dcdfcec2f 100644 --- a/base/ops/cadd/README.md +++ b/base/ops/cadd/README.md @@ -42,8 +42,8 @@ Adds two double-precision complex floating-point numbers. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var z = new Complex128( -1.5, 2.5 ); @@ -123,17 +123,17 @@ Adds two double-precision complex floating-point numbers. ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( 3.0, -2.0 ); stdlib_complex128_t out = stdlib_base_cadd( z, z ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns 6.0 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns -4.0 ``` diff --git a/base/ops/cadd/benchmark/benchmark.js b/base/ops/cadd/benchmark/benchmark.js index fa9b04d8f..34b6f2871 100644 --- a/base/ops/cadd/benchmark/benchmark.js +++ b/base/ops/cadd/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var cadd = require( './../lib' ); diff --git a/base/ops/cadd/benchmark/benchmark.native.js b/base/ops/cadd/benchmark/benchmark.native.js index e5d0571b3..6aed690bd 100644 --- a/base/ops/cadd/benchmark/benchmark.native.js +++ b/base/ops/cadd/benchmark/benchmark.native.js @@ -25,8 +25,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/ops/cadd/docs/repl.txt b/base/ops/cadd/docs/repl.txt index 359d1737b..648029bfd 100644 --- a/base/ops/cadd/docs/repl.txt +++ b/base/ops/cadd/docs/repl.txt @@ -21,9 +21,9 @@ > var out = {{alias}}( z, z ) - > var re = {{alias:@stdlib/complex/real}}( out ) + > var re = {{alias:@stdlib/complex/float64/real}}( out ) 10.0 - > var im = {{alias:@stdlib/complex/imag}}( out ) + > var im = {{alias:@stdlib/complex/float64/imag}}( out ) 6.0 See Also diff --git a/base/ops/cadd/docs/types/index.d.ts b/base/ops/cadd/docs/types/index.d.ts index 6edb51b69..faf0b4970 100644 --- a/base/ops/cadd/docs/types/index.d.ts +++ b/base/ops/cadd/docs/types/index.d.ts @@ -31,8 +31,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( 5.0, 3.0 ); * // returns diff --git a/base/ops/cadd/lib/index.js b/base/ops/cadd/lib/index.js index 3305067a0..2ec589e8b 100644 --- a/base/ops/cadd/lib/index.js +++ b/base/ops/cadd/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cadd = require( '@stdlib/math/base/ops/cadd' ); * * var z = new Complex128( 5.0, 3.0 ); diff --git a/base/ops/cadd/lib/main.js b/base/ops/cadd/lib/main.js index 787e5a5f3..4f24481c4 100644 --- a/base/ops/cadd/lib/main.js +++ b/base/ops/cadd/lib/main.js @@ -21,8 +21,8 @@ // MODULES // var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // @@ -36,8 +36,8 @@ var imag = require( '@stdlib/complex/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( 5.0, 3.0 ); * // returns diff --git a/base/ops/cadd/lib/native.js b/base/ops/cadd/lib/native.js index 253ab1abc..a474ff298 100644 --- a/base/ops/cadd/lib/native.js +++ b/base/ops/cadd/lib/native.js @@ -36,8 +36,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( 5.0, 3.0 ); * // returns diff --git a/base/ops/cadd/src/main.c b/base/ops/cadd/src/main.c index 6d725d8b4..339bf5aab 100644 --- a/base/ops/cadd/src/main.c +++ b/base/ops/cadd/src/main.c @@ -29,17 +29,17 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( 3.0, -2.0 ); * * stdlib_complex128_t out = stdlib_base_cadd( z, z ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns 6.0 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns -4.0 */ stdlib_complex128_t stdlib_base_cadd( const stdlib_complex128_t z1, const stdlib_complex128_t z2 ) { diff --git a/base/ops/cadd/test/test.js b/base/ops/cadd/test/test.js index 54649a3bd..e029b93ad 100644 --- a/base/ops/cadd/test/test.js +++ b/base/ops/cadd/test/test.js @@ -23,8 +23,8 @@ var tape = require( 'tape' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cadd = require( './../lib' ); diff --git a/base/ops/cadd/test/test.native.js b/base/ops/cadd/test/test.native.js index 295f0a90d..d600e9605 100644 --- a/base/ops/cadd/test/test.native.js +++ b/base/ops/cadd/test/test.native.js @@ -24,8 +24,8 @@ var resolve = require( 'path' ).resolve; var tape = require( 'tape' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/ops/caddf/README.md b/base/ops/caddf/README.md index 0ce426e4d..d12680780 100644 --- a/base/ops/caddf/README.md +++ b/base/ops/caddf/README.md @@ -42,8 +42,8 @@ Adds two single-precision complex floating-point numbers. ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var z = new Complex64( -1.5, 2.5 ); @@ -123,17 +123,17 @@ Adds two single-precision complex floating-point numbers. ```c #include "stdlib/complex/float32/ctor.h" -#include "stdlib/complex/realf.h" -#include "stdlib/complex/imagf.h" +#include "stdlib/complex/float32/real.h" +#include "stdlib/complex/float32/imag.h" stdlib_complex64_t z = stdlib_complex64( 3.0f, -2.0f ); stdlib_complex64_t out = stdlib_base_caddf( z, z ); -float re = stdlib_realf( out ); +float re = stdlib_complex64_real( out ); // returns 6.0f -float im = stdlib_imagf( out ); +float im = stdlib_complex64_imag( out ); // returns -4.0f ``` diff --git a/base/ops/caddf/benchmark/benchmark.js b/base/ops/caddf/benchmark/benchmark.js index 8460b4350..f4cb3df3d 100644 --- a/base/ops/caddf/benchmark/benchmark.js +++ b/base/ops/caddf/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var caddf = require( './../lib' ); diff --git a/base/ops/caddf/benchmark/benchmark.native.js b/base/ops/caddf/benchmark/benchmark.native.js index 03c09f36d..57549e15a 100644 --- a/base/ops/caddf/benchmark/benchmark.native.js +++ b/base/ops/caddf/benchmark/benchmark.native.js @@ -25,8 +25,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/ops/caddf/docs/repl.txt b/base/ops/caddf/docs/repl.txt index badb7b05a..af76c8675 100644 --- a/base/ops/caddf/docs/repl.txt +++ b/base/ops/caddf/docs/repl.txt @@ -21,9 +21,9 @@ > var out = {{alias}}( z, z ) - > var re = {{alias:@stdlib/complex/realf}}( out ) + > var re = {{alias:@stdlib/complex/float32/real}}( out ) 10.0 - > var im = {{alias:@stdlib/complex/imagf}}( out ) + > var im = {{alias:@stdlib/complex/float32/imag}}( out ) 6.0 See Also diff --git a/base/ops/caddf/docs/types/index.d.ts b/base/ops/caddf/docs/types/index.d.ts index 9063d4c51..0b52f57ff 100644 --- a/base/ops/caddf/docs/types/index.d.ts +++ b/base/ops/caddf/docs/types/index.d.ts @@ -31,8 +31,8 @@ import { Complex64 } from '@stdlib/types/complex'; * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( 5.0, 3.0 ); * // returns diff --git a/base/ops/caddf/lib/index.js b/base/ops/caddf/lib/index.js index b46b0cbcb..7a92d8030 100644 --- a/base/ops/caddf/lib/index.js +++ b/base/ops/caddf/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var caddf = require( '@stdlib/math/base/ops/caddf' ); * * var z = new Complex64( 5.0, 3.0 ); diff --git a/base/ops/caddf/lib/main.js b/base/ops/caddf/lib/main.js index b77d3e5d8..57bb1b585 100644 --- a/base/ops/caddf/lib/main.js +++ b/base/ops/caddf/lib/main.js @@ -22,8 +22,8 @@ var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); // MAIN // @@ -37,8 +37,8 @@ var imagf = require( '@stdlib/complex/imagf' ); * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( 5.0, 3.0 ); * // returns diff --git a/base/ops/caddf/lib/native.js b/base/ops/caddf/lib/native.js index 7b8dd7c1d..b75b18271 100644 --- a/base/ops/caddf/lib/native.js +++ b/base/ops/caddf/lib/native.js @@ -36,8 +36,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( 5.0, 3.0 ); * // returns diff --git a/base/ops/caddf/src/main.c b/base/ops/caddf/src/main.c index 0d3811c5d..57ad800a7 100644 --- a/base/ops/caddf/src/main.c +++ b/base/ops/caddf/src/main.c @@ -29,17 +29,17 @@ * * @example * #include "stdlib/complex/float32/ctor.h" -* #include "stdlib/complex/realf.h" -* #include "stdlib/complex/imagf.h" +* #include "stdlib/complex/float32/real.h" +* #include "stdlib/complex/float32/imag.h" * * stdlib_complex64_t z = stdlib_complex64( 3.0f, -2.0f ); * * stdlib_complex64_t out = stdlib_base_caddf( z, z ); * -* float re = stdlib_realf( out ); +* float re = stdlib_complex64_real( out ); * // returns 6.0f * -* float im = stdlib_imagf( out ); +* float im = stdlib_complex64_imag( out ); * // returns -4.0f */ stdlib_complex64_t stdlib_base_caddf( const stdlib_complex64_t z1, const stdlib_complex64_t z2 ) { diff --git a/base/ops/caddf/test/test.js b/base/ops/caddf/test/test.js index 3edca7365..9166e7fa1 100644 --- a/base/ops/caddf/test/test.js +++ b/base/ops/caddf/test/test.js @@ -23,8 +23,8 @@ var tape = require( 'tape' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var caddf = require( './../lib' ); diff --git a/base/ops/caddf/test/test.native.js b/base/ops/caddf/test/test.native.js index 99231cb58..7fcfa4ce6 100644 --- a/base/ops/caddf/test/test.native.js +++ b/base/ops/caddf/test/test.native.js @@ -24,8 +24,8 @@ var resolve = require( 'path' ).resolve; var tape = require( 'tape' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/ops/cdiv/README.md b/base/ops/cdiv/README.md index 365294f3b..33749317e 100644 --- a/base/ops/cdiv/README.md +++ b/base/ops/cdiv/README.md @@ -42,8 +42,8 @@ Divides two double-precision complex floating-point numbers. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var z1 = new Complex128( -13.0, -1.0 ); var z2 = new Complex128( -2.0, 1.0 ); @@ -71,8 +71,8 @@ var im = imag( v ); ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cdiv = require( '@stdlib/math/base/ops/cdiv' ); function randomComplex() { @@ -129,18 +129,18 @@ Divides two double-precision complex floating-point numbers. ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" 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 ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns 5.0 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns 3.0 ``` diff --git a/base/ops/cdiv/benchmark/benchmark.js b/base/ops/cdiv/benchmark/benchmark.js index 1adad9c40..f37cb1207 100644 --- a/base/ops/cdiv/benchmark/benchmark.js +++ b/base/ops/cdiv/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var isComplex128 = require( '@stdlib/assert/is-complex128' ); var uniform = require( '@stdlib/random/base/uniform' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var abs = require( './../../../../base/special/abs' ); var pkg = require( './../package.json' ).name; var cdiv = require( './../lib' ); diff --git a/base/ops/cdiv/benchmark/benchmark.native.js b/base/ops/cdiv/benchmark/benchmark.native.js index d68874835..97a864b16 100644 --- a/base/ops/cdiv/benchmark/benchmark.native.js +++ b/base/ops/cdiv/benchmark/benchmark.native.js @@ -25,8 +25,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/ops/cdiv/docs/repl.txt b/base/ops/cdiv/docs/repl.txt index 07fa48a70..a88ceeb48 100644 --- a/base/ops/cdiv/docs/repl.txt +++ b/base/ops/cdiv/docs/repl.txt @@ -23,9 +23,9 @@ > var y = {{alias}}( z1, z2 ) - > var re = {{alias:@stdlib/complex/real}}( y ) + > var re = {{alias:@stdlib/complex/float64/real}}( y ) 5.0 - > var im = {{alias:@stdlib/complex/imag}}( y ) + > var im = {{alias:@stdlib/complex/float64/imag}}( y ) 3.0 See Also diff --git a/base/ops/cdiv/docs/types/index.d.ts b/base/ops/cdiv/docs/types/index.d.ts index 3ea0d6978..06b5f732d 100644 --- a/base/ops/cdiv/docs/types/index.d.ts +++ b/base/ops/cdiv/docs/types/index.d.ts @@ -31,8 +31,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z1 = new Complex128( -13.0, -1.0 ); * // returns diff --git a/base/ops/cdiv/lib/index.js b/base/ops/cdiv/lib/index.js index 887b192fd..b9ba71d40 100644 --- a/base/ops/cdiv/lib/index.js +++ b/base/ops/cdiv/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cdiv = require( '@stdlib/math/base/ops/cdiv' ); * * var z1 = new Complex128( -13.0, -1.0 ); diff --git a/base/ops/cdiv/lib/main.js b/base/ops/cdiv/lib/main.js index 81ba685a8..c21ca21f9 100644 --- a/base/ops/cdiv/lib/main.js +++ b/base/ops/cdiv/lib/main.js @@ -25,8 +25,8 @@ var max = require( './../../../../base/special/max' ); var FLOAT64_BIGGEST = require( '@stdlib/constants/float64/max' ); var FLOAT64_SMALLEST = require( '@stdlib/constants/float64/smallest-normal' ); var EPS = require( '@stdlib/constants/float64/eps' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var robustInternal = require( './robust_internal.js' ); @@ -53,8 +53,8 @@ var RECIP_EPS_SQR = 2.0 / ( EPS * EPS ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z1 = new Complex128( -13.0, -1.0 ); * // returns diff --git a/base/ops/cdiv/lib/native.js b/base/ops/cdiv/lib/native.js index dfacecf4f..11775a8e7 100644 --- a/base/ops/cdiv/lib/native.js +++ b/base/ops/cdiv/lib/native.js @@ -36,8 +36,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z1 = new Complex128( -13.0, -1.0 ); * // returns diff --git a/base/ops/cdiv/src/main.c b/base/ops/cdiv/src/main.c index 71a6e073f..25891e2c2 100644 --- a/base/ops/cdiv/src/main.c +++ b/base/ops/cdiv/src/main.c @@ -94,18 +94,18 @@ static void robustInternal( const double re1, const double im1, const double re2 * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * 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 ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns 5.0 * -* double im = stdlib_imag( out ); +* 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 ) { diff --git a/base/ops/cdiv/test/test.js b/base/ops/cdiv/test/test.js index 234c49295..23b9a1434 100644 --- a/base/ops/cdiv/test/test.js +++ b/base/ops/cdiv/test/test.js @@ -31,8 +31,8 @@ var PINF = require( '@stdlib/constants/float64/pinf' ); var NINF = require( '@stdlib/constants/float64/ninf' ); var toBinaryString = require( '@stdlib/number/float64/base/to-binary-string' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cdiv = require( './../lib' ); diff --git a/base/ops/cdiv/test/test.native.js b/base/ops/cdiv/test/test.native.js index 002e9d432..8f8be076d 100644 --- a/base/ops/cdiv/test/test.native.js +++ b/base/ops/cdiv/test/test.native.js @@ -32,8 +32,8 @@ var PINF = require( '@stdlib/constants/float64/pinf' ); var NINF = require( '@stdlib/constants/float64/ninf' ); var toBinaryString = require( '@stdlib/number/float64/base/to-binary-string' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/ops/cmul/README.md b/base/ops/cmul/README.md index afe92c38e..a3e417062 100644 --- a/base/ops/cmul/README.md +++ b/base/ops/cmul/README.md @@ -42,8 +42,8 @@ Multiplies two double-precision complex floating-point numbers. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var z1 = new Complex128( 5.0, 3.0 ); var z2 = new Complex128( -2.0, 1.0 ); @@ -124,18 +124,18 @@ Multiplies two double-precision complex floating-point numbers. ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z1 = stdlib_complex128( 5.0, 3.0 ); stdlib_complex128_t z2 = stdlib_complex128( -2.0, 1.0 ); stdlib_complex128_t out = stdlib_base_cmul( z1, z2 ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns -13.0 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns -1.0 ``` diff --git a/base/ops/cmul/benchmark/benchmark.js b/base/ops/cmul/benchmark/benchmark.js index 93d509d2e..31aba62a0 100644 --- a/base/ops/cmul/benchmark/benchmark.js +++ b/base/ops/cmul/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var cmul = require( './../lib' ); diff --git a/base/ops/cmul/benchmark/benchmark.native.js b/base/ops/cmul/benchmark/benchmark.native.js index 78373889e..e19deef3c 100644 --- a/base/ops/cmul/benchmark/benchmark.native.js +++ b/base/ops/cmul/benchmark/benchmark.native.js @@ -25,8 +25,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/ops/cmul/docs/repl.txt b/base/ops/cmul/docs/repl.txt index 17649bba6..971b25501 100644 --- a/base/ops/cmul/docs/repl.txt +++ b/base/ops/cmul/docs/repl.txt @@ -23,9 +23,9 @@ > var out = {{alias}}( z1, z2 ) - > var re = {{alias:@stdlib/complex/real}}( out ) + > var re = {{alias:@stdlib/complex/float64/real}}( out ) -13.0 - > var im = {{alias:@stdlib/complex/imag}}( out ) + > var im = {{alias:@stdlib/complex/float64/imag}}( out ) -1.0 See Also diff --git a/base/ops/cmul/docs/types/index.d.ts b/base/ops/cmul/docs/types/index.d.ts index 4e1c947f4..696bc4a06 100644 --- a/base/ops/cmul/docs/types/index.d.ts +++ b/base/ops/cmul/docs/types/index.d.ts @@ -31,8 +31,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z1 = new Complex128( 5.0, 3.0 ); * // returns diff --git a/base/ops/cmul/lib/index.js b/base/ops/cmul/lib/index.js index eb46ac255..8b4056aab 100644 --- a/base/ops/cmul/lib/index.js +++ b/base/ops/cmul/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cmul = require( '@stdlib/math/base/ops/cmul' ); * * var z1 = new Complex128( 5.0, 3.0 ); diff --git a/base/ops/cmul/lib/main.js b/base/ops/cmul/lib/main.js index 0cd41389d..7f81e3b58 100644 --- a/base/ops/cmul/lib/main.js +++ b/base/ops/cmul/lib/main.js @@ -21,8 +21,8 @@ // MODULES // var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // @@ -36,8 +36,8 @@ var imag = require( '@stdlib/complex/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z1 = new Complex128( 5.0, 3.0 ); * // returns diff --git a/base/ops/cmul/lib/native.js b/base/ops/cmul/lib/native.js index 52323be98..0f9facc1b 100644 --- a/base/ops/cmul/lib/native.js +++ b/base/ops/cmul/lib/native.js @@ -36,8 +36,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z1 = new Complex128( 5.0, 3.0 ); * // returns diff --git a/base/ops/cmul/src/main.c b/base/ops/cmul/src/main.c index d6eda9ce3..ca57f64ff 100644 --- a/base/ops/cmul/src/main.c +++ b/base/ops/cmul/src/main.c @@ -29,18 +29,18 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z1 = stdlib_complex128( 5.0, 3.0 ); * stdlib_complex128_t z2 = stdlib_complex128( -2.0, 1.0 ); * * stdlib_complex128_t out = stdlib_base_cmul( z1, z2 ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns -13.0 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns -1.0 */ stdlib_complex128_t stdlib_base_cmul( const stdlib_complex128_t z1, const stdlib_complex128_t z2 ) { diff --git a/base/ops/cmul/test/test.js b/base/ops/cmul/test/test.js index 04f844525..d3507c2c9 100644 --- a/base/ops/cmul/test/test.js +++ b/base/ops/cmul/test/test.js @@ -23,8 +23,8 @@ var tape = require( 'tape' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cmul = require( './../lib' ); diff --git a/base/ops/cmul/test/test.native.js b/base/ops/cmul/test/test.native.js index b363e94a6..2bf0858eb 100644 --- a/base/ops/cmul/test/test.native.js +++ b/base/ops/cmul/test/test.native.js @@ -24,8 +24,8 @@ var resolve = require( 'path' ).resolve; var tape = require( 'tape' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/ops/cmulf/README.md b/base/ops/cmulf/README.md index bb50713d4..76309fe0d 100644 --- a/base/ops/cmulf/README.md +++ b/base/ops/cmulf/README.md @@ -42,8 +42,8 @@ Multiples two single-precision complex floating-point numbers. ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var z1 = new Complex64( 5.0, 3.0 ); var z2 = new Complex64( -2.0, 1.0 ); @@ -124,18 +124,18 @@ Multiplies two single-precision complex floating-point numbers. ```c #include "stdlib/complex/float32/ctor.h" -#include "stdlib/complex/realf.h" -#include "stdlib/complex/imagf.h" +#include "stdlib/complex/float32/real.h" +#include "stdlib/complex/float32/imag.h" 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_cmulf( z1, z2 ); -float re = stdlib_realf( out ); +float re = stdlib_complex64_real( out ); // returns -13.0f -float im = stdlib_imagf( out ); +float im = stdlib_complex64_imag( out ); // returns -1.0f ``` diff --git a/base/ops/cmulf/benchmark/benchmark.js b/base/ops/cmulf/benchmark/benchmark.js index 31a960920..7f2ab4c3b 100644 --- a/base/ops/cmulf/benchmark/benchmark.js +++ b/base/ops/cmulf/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float32/real' ); +var imag = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var cmulf = require( './../lib' ); diff --git a/base/ops/cmulf/benchmark/benchmark.native.js b/base/ops/cmulf/benchmark/benchmark.native.js index 539611285..66e810e54 100644 --- a/base/ops/cmulf/benchmark/benchmark.native.js +++ b/base/ops/cmulf/benchmark/benchmark.native.js @@ -25,8 +25,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/ops/cmulf/docs/repl.txt b/base/ops/cmulf/docs/repl.txt index cb16f5cb7..a8ee0375e 100644 --- a/base/ops/cmulf/docs/repl.txt +++ b/base/ops/cmulf/docs/repl.txt @@ -23,9 +23,9 @@ > var out = {{alias}}( z1, z2 ) - > var re = {{alias:@stdlib/complex/realf}}( out ) + > var re = {{alias:@stdlib/complex/float32/real}}( out ) -13.0 - > var im = {{alias:@stdlib/complex/imagf}}( out ) + > var im = {{alias:@stdlib/complex/float32/imag}}( out ) -1.0 See Also diff --git a/base/ops/cmulf/docs/types/index.d.ts b/base/ops/cmulf/docs/types/index.d.ts index 2507307f7..d49456cb6 100644 --- a/base/ops/cmulf/docs/types/index.d.ts +++ b/base/ops/cmulf/docs/types/index.d.ts @@ -31,8 +31,8 @@ import { Complex64 } from '@stdlib/types/complex'; * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z1 = new Complex64( 5.0, 3.0 ); * // returns diff --git a/base/ops/cmulf/lib/index.js b/base/ops/cmulf/lib/index.js index b2ba03710..fc453c55e 100644 --- a/base/ops/cmulf/lib/index.js +++ b/base/ops/cmulf/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var cmulf = require( '@stdlib/math/base/ops/cmulf' ); * * var z1 = new Complex64( 5.0, 3.0 ); diff --git a/base/ops/cmulf/lib/main.js b/base/ops/cmulf/lib/main.js index a108322a7..5c9803c48 100644 --- a/base/ops/cmulf/lib/main.js +++ b/base/ops/cmulf/lib/main.js @@ -22,8 +22,8 @@ var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); // MAIN // @@ -37,8 +37,8 @@ var imagf = require( '@stdlib/complex/imagf' ); * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z1 = new Complex64( 5.0, 3.0 ); * // returns diff --git a/base/ops/cmulf/lib/native.js b/base/ops/cmulf/lib/native.js index 583e298ba..7f473b756 100644 --- a/base/ops/cmulf/lib/native.js +++ b/base/ops/cmulf/lib/native.js @@ -36,8 +36,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z1 = new Complex64( 5.0, 3.0 ); * // returns diff --git a/base/ops/cmulf/src/main.c b/base/ops/cmulf/src/main.c index 02d28701f..0a79f398a 100644 --- a/base/ops/cmulf/src/main.c +++ b/base/ops/cmulf/src/main.c @@ -29,18 +29,18 @@ * * @example * #include "stdlib/complex/float32/ctor.h" -* #include "stdlib/complex/realf.h" -* #include "stdlib/complex/imagf.h" +* #include "stdlib/complex/float32/real.h" +* #include "stdlib/complex/float32/imag.h" * * 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_cmulf( z1, z2 ); * -* float re = stdlib_realf( out ); +* float re = stdlib_complex64_real( out ); * // returns -13.0f * -* float im = stdlib_imagf( out ); +* float im = stdlib_complex64_imag( out ); * // returns -1.0f */ stdlib_complex64_t stdlib_base_cmulf( const stdlib_complex64_t z1, const stdlib_complex64_t z2 ) { diff --git a/base/ops/cmulf/test/test.js b/base/ops/cmulf/test/test.js index 5a94e5ef7..21a4b3ceb 100644 --- a/base/ops/cmulf/test/test.js +++ b/base/ops/cmulf/test/test.js @@ -23,8 +23,8 @@ var tape = require( 'tape' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var cmulf = require( './../lib' ); diff --git a/base/ops/cmulf/test/test.native.js b/base/ops/cmulf/test/test.native.js index e94c06ac4..19d13de20 100644 --- a/base/ops/cmulf/test/test.native.js +++ b/base/ops/cmulf/test/test.native.js @@ -24,8 +24,8 @@ var resolve = require( 'path' ).resolve; var tape = require( 'tape' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/ops/cneg/README.md b/base/ops/cneg/README.md index 0d33a4d90..84235f03b 100644 --- a/base/ops/cneg/README.md +++ b/base/ops/cneg/README.md @@ -46,8 +46,8 @@ Negates a double-precision complex floating-point number. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var z = new Complex128( -4.2, 5.5 ); @@ -161,17 +161,17 @@ Negates a double-precision complex floating-point number. ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( 3.0, -2.0 ); stdlib_complex128_t out = stdlib_base_cneg( z ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns -3.0 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns 2.0 ``` diff --git a/base/ops/cneg/benchmark/benchmark.native.js b/base/ops/cneg/benchmark/benchmark.native.js index ce15ca09d..50c569fc2 100644 --- a/base/ops/cneg/benchmark/benchmark.native.js +++ b/base/ops/cneg/benchmark/benchmark.native.js @@ -25,8 +25,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/ops/cneg/docs/repl.txt b/base/ops/cneg/docs/repl.txt index 9674b1c59..9c3bf1dd2 100644 --- a/base/ops/cneg/docs/repl.txt +++ b/base/ops/cneg/docs/repl.txt @@ -18,9 +18,9 @@ > var v = {{alias}}( z ) - > var re = {{alias:@stdlib/complex/real}}( v ) + > var re = {{alias:@stdlib/complex/float64/real}}( v ) 4.2 - > var im = {{alias:@stdlib/complex/imag}}( v ) + > var im = {{alias:@stdlib/complex/float64/imag}}( v ) -5.5 See Also diff --git a/base/ops/cneg/docs/types/index.d.ts b/base/ops/cneg/docs/types/index.d.ts index 5122d2a20..0810932a8 100644 --- a/base/ops/cneg/docs/types/index.d.ts +++ b/base/ops/cneg/docs/types/index.d.ts @@ -30,8 +30,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z1 = new Complex128( -4.2, 5.5 ); * // returns @@ -47,8 +47,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z2 = new Complex128( 0.0, 0.0 ); * // returns @@ -64,8 +64,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z3 = new Complex128( NaN, NaN ); * // returns diff --git a/base/ops/cneg/lib/index.js b/base/ops/cneg/lib/index.js index f3a5fd661..5979e857c 100644 --- a/base/ops/cneg/lib/index.js +++ b/base/ops/cneg/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cneg = require( '@stdlib/math/base/ops/cneg' ); * * var z = new Complex128( -4.2, 5.5 ); @@ -43,8 +43,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cneg = require( '@stdlib/math/base/ops/cneg' ); * * var z = new Complex128( 0.0, 0.0 ); @@ -61,8 +61,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cneg = require( '@stdlib/math/base/ops/cneg' ); * * var z = new Complex128( NaN, NaN ); diff --git a/base/ops/cneg/lib/main.js b/base/ops/cneg/lib/main.js index 746696f20..d28847c89 100644 --- a/base/ops/cneg/lib/main.js +++ b/base/ops/cneg/lib/main.js @@ -20,8 +20,8 @@ // MODULES // -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); @@ -35,8 +35,8 @@ var Complex128 = require( '@stdlib/complex/float64/ctor' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( -4.2, 5.5 ); * // returns @@ -52,8 +52,8 @@ var Complex128 = require( '@stdlib/complex/float64/ctor' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( 0.0, 0.0 ); * // returns @@ -69,8 +69,8 @@ var Complex128 = require( '@stdlib/complex/float64/ctor' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( NaN, NaN ); * // returns diff --git a/base/ops/cneg/lib/native.js b/base/ops/cneg/lib/native.js index eb589c9ae..614d8e669 100644 --- a/base/ops/cneg/lib/native.js +++ b/base/ops/cneg/lib/native.js @@ -35,8 +35,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( -4.2, 5.5 ); * // returns @@ -52,8 +52,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( 0.0, 0.0 ); * // returns @@ -69,8 +69,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( NaN, NaN ); * // returns diff --git a/base/ops/cneg/src/main.c b/base/ops/cneg/src/main.c index f52de80cc..2f6daa05b 100644 --- a/base/ops/cneg/src/main.c +++ b/base/ops/cneg/src/main.c @@ -28,17 +28,17 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( 3.0, -2.0 ); * * stdlib_complex128_t out = stdlib_base_cneg( z ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns -3.0 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns 2.0 */ stdlib_complex128_t stdlib_base_cneg( const stdlib_complex128_t z ) { diff --git a/base/ops/cneg/test/test.js b/base/ops/cneg/test/test.js index 042545b7e..97ddf14e5 100644 --- a/base/ops/cneg/test/test.js +++ b/base/ops/cneg/test/test.js @@ -27,8 +27,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cneg = require( './../lib' ); diff --git a/base/ops/cneg/test/test.native.js b/base/ops/cneg/test/test.native.js index c8b3c3957..e8fc9031a 100644 --- a/base/ops/cneg/test/test.native.js +++ b/base/ops/cneg/test/test.native.js @@ -28,8 +28,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/ops/cnegf/README.md b/base/ops/cnegf/README.md index fbcb8f7a4..2ff1351f9 100644 --- a/base/ops/cnegf/README.md +++ b/base/ops/cnegf/README.md @@ -46,8 +46,8 @@ Negates a single-precision complex floating-point number. ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var z = new Complex64( -4.0, 5.0 ); @@ -161,16 +161,16 @@ Negates a single-precision complex floating-point number. ```c #include "stdlib/complex/float32/ctor.h" -#include "stdlib/complex/realf.h" -#include "stdlib/complex/imagf.h" +#include "stdlib/complex/float32/real.h" +#include "stdlib/complex/float32/imag.h" stdlib_complex64_t z = stdlib_complex64( 3.0f, -2.0f ); stdlib_complex64_t out = stdlib_base_cnegf( z ); -float re = stdlib_realf( out ); +float re = stdlib_complex64_real( out ); // returns -3.0f -float im = stdlib_imagf( out ); +float im = stdlib_complex64_imag( out ); // returns 2.0f ``` diff --git a/base/ops/cnegf/benchmark/benchmark.js b/base/ops/cnegf/benchmark/benchmark.js index 8eb494bb2..e1a776a4d 100644 --- a/base/ops/cnegf/benchmark/benchmark.js +++ b/base/ops/cnegf/benchmark/benchmark.js @@ -23,8 +23,8 @@ var bench = require( '@stdlib/bench' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var isnanf = require( './../../../../base/assert/is-nanf' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var uniform = require( '@stdlib/random/base/uniform' ); var pkg = require( './../package.json' ).name; var cnegf = require( './../lib' ); diff --git a/base/ops/cnegf/benchmark/benchmark.native.js b/base/ops/cnegf/benchmark/benchmark.native.js index 194d81f2f..0299a675f 100644 --- a/base/ops/cnegf/benchmark/benchmark.native.js +++ b/base/ops/cnegf/benchmark/benchmark.native.js @@ -25,8 +25,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/ops/cnegf/docs/repl.txt b/base/ops/cnegf/docs/repl.txt index fe71d7fdc..c4cefeb4c 100644 --- a/base/ops/cnegf/docs/repl.txt +++ b/base/ops/cnegf/docs/repl.txt @@ -18,9 +18,9 @@ > var v = {{alias}}( z ) - > var re = {{alias:@stdlib/complex/realf}}( v ) + > var re = {{alias:@stdlib/complex/float32/real}}( v ) 4.0 - > var im = {{alias:@stdlib/complex/imagf}}( v ) + > var im = {{alias:@stdlib/complex/float32/imag}}( v ) -5.0 See Also diff --git a/base/ops/cnegf/docs/types/index.d.ts b/base/ops/cnegf/docs/types/index.d.ts index 0e24baa3e..7c844ec4f 100644 --- a/base/ops/cnegf/docs/types/index.d.ts +++ b/base/ops/cnegf/docs/types/index.d.ts @@ -30,8 +30,8 @@ import { Complex64 } from '@stdlib/types/complex'; * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( -4.2, 5.5 ); * // returns @@ -47,8 +47,8 @@ import { Complex64 } from '@stdlib/types/complex'; * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( 0.0, 0.0 ); * // returns @@ -64,8 +64,8 @@ import { Complex64 } from '@stdlib/types/complex'; * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( NaN, NaN ); * // returns diff --git a/base/ops/cnegf/lib/index.js b/base/ops/cnegf/lib/index.js index 484c3c3d3..24e4c702b 100644 --- a/base/ops/cnegf/lib/index.js +++ b/base/ops/cnegf/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var cnegf = require( '@stdlib/math/base/ops/cnegf' ); * * var z = new Complex64( -4.0, 5.0 ); @@ -43,8 +43,8 @@ * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var cnegf = require( '@stdlib/math/base/ops/cnegf' ); * * var z = new Complex64( 0.0, 0.0 ); @@ -61,8 +61,8 @@ * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var cnegf = require( '@stdlib/math/base/ops/cnegf' ); * * var z = new Complex64( NaN, NaN ); diff --git a/base/ops/cnegf/lib/main.js b/base/ops/cnegf/lib/main.js index 2203d5384..7c54b13f5 100644 --- a/base/ops/cnegf/lib/main.js +++ b/base/ops/cnegf/lib/main.js @@ -20,8 +20,8 @@ // MODULES // -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); @@ -35,8 +35,8 @@ var Complex64 = require( '@stdlib/complex/float32/ctor' ); * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( -4.2, 5.5 ); * // returns @@ -52,8 +52,8 @@ var Complex64 = require( '@stdlib/complex/float32/ctor' ); * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( 0.0, 0.0 ); * // returns @@ -69,8 +69,8 @@ var Complex64 = require( '@stdlib/complex/float32/ctor' ); * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( NaN, NaN ); * // returns diff --git a/base/ops/cnegf/lib/native.js b/base/ops/cnegf/lib/native.js index 60f2dacdd..9a360a0b1 100644 --- a/base/ops/cnegf/lib/native.js +++ b/base/ops/cnegf/lib/native.js @@ -35,8 +35,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( -4.2, 5.5 ); * // returns @@ -52,8 +52,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( 0.0, 0.0 ); * // returns @@ -69,8 +69,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( NaN, NaN ); * // returns diff --git a/base/ops/cnegf/src/main.c b/base/ops/cnegf/src/main.c index df6b1626c..307f2875a 100644 --- a/base/ops/cnegf/src/main.c +++ b/base/ops/cnegf/src/main.c @@ -28,16 +28,16 @@ * * @example * #include "stdlib/complex/float32/ctor.h" -* #include "stdlib/complex/realf.h" -* #include "stdlib/complex/imagf.h" +* #include "stdlib/complex/float32/real.h" +* #include "stdlib/complex/float32/imag.h" * * stdlib_complex64_t z = stdlib_complex64( 3.0f, -2.0f ); * stdlib_complex64_t out = stdlib_base_cnegf( z ); * -* float re = stdlib_realf( out ); +* float re = stdlib_complex64_real( out ); * // returns -3.0f * -* float im = stdlib_imagf( out ); +* float im = stdlib_complex64_imag( out ); * // returns 2.0f */ stdlib_complex64_t stdlib_base_cnegf( const stdlib_complex64_t z ) { diff --git a/base/ops/cnegf/test/test.js b/base/ops/cnegf/test/test.js index 00b1ede49..79df089c7 100644 --- a/base/ops/cnegf/test/test.js +++ b/base/ops/cnegf/test/test.js @@ -27,8 +27,8 @@ var isnanf = require( './../../../../base/assert/is-nanf' ); var isNegativeZerof = require( './../../../../base/assert/is-negative-zerof' ); var isPositiveZerof = require( './../../../../base/assert/is-positive-zerof' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var cnegf = require( './../lib' ); diff --git a/base/ops/cnegf/test/test.native.js b/base/ops/cnegf/test/test.native.js index 72c421205..0e36f2be7 100644 --- a/base/ops/cnegf/test/test.native.js +++ b/base/ops/cnegf/test/test.native.js @@ -28,8 +28,8 @@ var isnanf = require( './../../../../base/assert/is-nanf' ); var isNegativeZerof = require( './../../../../base/assert/is-negative-zerof' ); var isPositiveZerof = require( './../../../../base/assert/is-positive-zerof' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/ops/csub/README.md b/base/ops/csub/README.md index 49cd7b03a..c14788694 100644 --- a/base/ops/csub/README.md +++ b/base/ops/csub/README.md @@ -42,8 +42,8 @@ Subtracts two double-precision complex floating-point numbers. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var z1 = new Complex128( 5.0, 3.0 ); var z2 = new Complex128( -2.0, 1.0 ); @@ -124,18 +124,18 @@ Subtracts two double-precision complex floating-point numbers. ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z1 = stdlib_complex128( 5.0, 3.0 ); stdlib_complex128_t z2 = stdlib_complex128( -2.0, 1.0 ); stdlib_complex128_t out = stdlib_base_csub( z1, z2 ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns 7.0 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns 2.0 ``` diff --git a/base/ops/csub/benchmark/benchmark.js b/base/ops/csub/benchmark/benchmark.js index 23213fc6a..dfdae7e50 100644 --- a/base/ops/csub/benchmark/benchmark.js +++ b/base/ops/csub/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var csub = require( './../lib' ); diff --git a/base/ops/csub/benchmark/benchmark.native.js b/base/ops/csub/benchmark/benchmark.native.js index fde8ae064..591df196f 100644 --- a/base/ops/csub/benchmark/benchmark.native.js +++ b/base/ops/csub/benchmark/benchmark.native.js @@ -25,8 +25,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/ops/csub/docs/repl.txt b/base/ops/csub/docs/repl.txt index 4a0363472..25298ea27 100644 --- a/base/ops/csub/docs/repl.txt +++ b/base/ops/csub/docs/repl.txt @@ -23,9 +23,9 @@ > var out = {{alias}}( z1, z2 ) - > var re = {{alias:@stdlib/complex/real}}( out ) + > var re = {{alias:@stdlib/complex/float64/real}}( out ) 7.0 - > var im = {{alias:@stdlib/complex/imag}}( out ) + > var im = {{alias:@stdlib/complex/float64/imag}}( out ) 2.0 See Also diff --git a/base/ops/csub/docs/types/index.d.ts b/base/ops/csub/docs/types/index.d.ts index 843066fd2..8f2e6f3ea 100644 --- a/base/ops/csub/docs/types/index.d.ts +++ b/base/ops/csub/docs/types/index.d.ts @@ -31,8 +31,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z1 = new Complex128( 5.0, 3.0 ); * // returns diff --git a/base/ops/csub/lib/index.js b/base/ops/csub/lib/index.js index 39e03490e..730517ab8 100644 --- a/base/ops/csub/lib/index.js +++ b/base/ops/csub/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var csub = require( '@stdlib/math/base/ops/csub' ); * * var z1 = new Complex128( 5.0, 3.0 ); diff --git a/base/ops/csub/lib/main.js b/base/ops/csub/lib/main.js index 7e292deac..eceddf57d 100644 --- a/base/ops/csub/lib/main.js +++ b/base/ops/csub/lib/main.js @@ -21,8 +21,8 @@ // MODULES // var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // @@ -36,8 +36,8 @@ var imag = require( '@stdlib/complex/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z1 = new Complex128( 5.0, 3.0 ); * // returns diff --git a/base/ops/csub/lib/native.js b/base/ops/csub/lib/native.js index 7f117249a..fb430eea6 100644 --- a/base/ops/csub/lib/native.js +++ b/base/ops/csub/lib/native.js @@ -36,8 +36,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z1 = new Complex128( 5.0, 3.0 ); * // returns diff --git a/base/ops/csub/src/main.c b/base/ops/csub/src/main.c index fc78a6ab8..a6457eee9 100644 --- a/base/ops/csub/src/main.c +++ b/base/ops/csub/src/main.c @@ -29,18 +29,18 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z1 = stdlib_complex128( 5.0, 3.0 ); * stdlib_complex128_t z2 = stdlib_complex128( -2.0, 1.0 ); * * stdlib_complex128_t out = stdlib_base_csub( z1, z2 ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns 7.0 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns 2.0 */ stdlib_complex128_t stdlib_base_csub( const stdlib_complex128_t z1, const stdlib_complex128_t z2 ) { diff --git a/base/ops/csub/test/test.js b/base/ops/csub/test/test.js index 19ff8d27e..836e6cd24 100644 --- a/base/ops/csub/test/test.js +++ b/base/ops/csub/test/test.js @@ -23,8 +23,8 @@ var tape = require( 'tape' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var csub = require( './../lib' ); diff --git a/base/ops/csub/test/test.native.js b/base/ops/csub/test/test.native.js index bf6b687d8..dfb37a058 100644 --- a/base/ops/csub/test/test.native.js +++ b/base/ops/csub/test/test.native.js @@ -24,8 +24,8 @@ var resolve = require( 'path' ).resolve; var tape = require( 'tape' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/ops/csubf/README.md b/base/ops/csubf/README.md index d643337d8..0f9a15906 100644 --- a/base/ops/csubf/README.md +++ b/base/ops/csubf/README.md @@ -42,8 +42,8 @@ Subtracts two single-precision complex floating-point numbers. ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var z1 = new Complex64( 5.0, 3.0 ); var z2 = new Complex64( -2.0, 1.0 ); @@ -124,17 +124,17 @@ Subtracts two single-precision complex floating-point numbers. ```c #include "stdlib/complex/float32/ctor.h" -#include "stdlib/complex/realf.h" -#include "stdlib/complex/imagf.h" +#include "stdlib/complex/float32/real.h" +#include "stdlib/complex/float32/imag.h" 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 ); -float re = stdlib_realf( out ); +float re = stdlib_complex64_real( out ); // returns 7.0f -float im = stdlib_imagf( out ); +float im = stdlib_complex64_imag( out ); // returns 2.0f ``` diff --git a/base/ops/csubf/benchmark/benchmark.js b/base/ops/csubf/benchmark/benchmark.js index ceac5f2c6..b656805fa 100644 --- a/base/ops/csubf/benchmark/benchmark.js +++ b/base/ops/csubf/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var csubf = require( './../lib' ); diff --git a/base/ops/csubf/benchmark/benchmark.native.js b/base/ops/csubf/benchmark/benchmark.native.js index a2fa64f80..3b7d8bef3 100644 --- a/base/ops/csubf/benchmark/benchmark.native.js +++ b/base/ops/csubf/benchmark/benchmark.native.js @@ -25,8 +25,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/ops/csubf/docs/repl.txt b/base/ops/csubf/docs/repl.txt index 2d192ea1d..c928b38d8 100644 --- a/base/ops/csubf/docs/repl.txt +++ b/base/ops/csubf/docs/repl.txt @@ -23,9 +23,9 @@ > var out = {{alias}}( z1, z2 ) - > var re = {{alias:@stdlib/complex/realf}}( out ) + > var re = {{alias:@stdlib/complex/float32/real}}( out ) 7.0 - > var im = {{alias:@stdlib/complex/imagf}}( out ) + > var im = {{alias:@stdlib/complex/float32/imag}}( out ) 2.0 See Also diff --git a/base/ops/csubf/docs/types/index.d.ts b/base/ops/csubf/docs/types/index.d.ts index 60d373de3..357f709bc 100644 --- a/base/ops/csubf/docs/types/index.d.ts +++ b/base/ops/csubf/docs/types/index.d.ts @@ -31,8 +31,8 @@ import { Complex64 } from '@stdlib/types/complex'; * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z1 = new Complex64( 5.0, 3.0 ); * // returns diff --git a/base/ops/csubf/lib/index.js b/base/ops/csubf/lib/index.js index 9bf2f82a9..9a310ff64 100644 --- a/base/ops/csubf/lib/index.js +++ b/base/ops/csubf/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var csubf = require( '@stdlib/math/base/ops/csubf' ); * * var z1 = new Complex64( 5.0, 3.0 ); diff --git a/base/ops/csubf/lib/main.js b/base/ops/csubf/lib/main.js index 006dec250..83e34183f 100644 --- a/base/ops/csubf/lib/main.js +++ b/base/ops/csubf/lib/main.js @@ -22,8 +22,8 @@ var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); // MAIN // @@ -37,8 +37,8 @@ var imagf = require( '@stdlib/complex/imagf' ); * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z1 = new Complex64( 5.0, 3.0 ); * // returns diff --git a/base/ops/csubf/lib/native.js b/base/ops/csubf/lib/native.js index 907e21ce2..755f5816f 100644 --- a/base/ops/csubf/lib/native.js +++ b/base/ops/csubf/lib/native.js @@ -36,8 +36,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z1 = new Complex64( 5.0, 3.0 ); * // returns diff --git a/base/ops/csubf/src/main.c b/base/ops/csubf/src/main.c index 60a15e2ba..48c9202f3 100644 --- a/base/ops/csubf/src/main.c +++ b/base/ops/csubf/src/main.c @@ -29,8 +29,8 @@ * * @example * #include "stdlib/complex/float32/ctor.h" -* #include "stdlib/complex/realf.h" -* #include "stdlib/complex/imagf.h" +* #include "stdlib/complex/float32/real.h" +* #include "stdlib/complex/float32/imag.h" * * stdlib_complex64_t z1 = stdlib_complex64( 5.0f, 3.0f ); * @@ -38,10 +38,10 @@ * * stdlib_complex64_t out = stdlib_base_csubf( z1, z2 ); * -* float re = stdlib_realf( out ); +* float re = stdlib_complex64_real( out ); * // returns 7.0f * -* float im = stdlib_imagf( out ); +* 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 ) { diff --git a/base/ops/csubf/test/test.js b/base/ops/csubf/test/test.js index 7036ee1ec..6e5879429 100644 --- a/base/ops/csubf/test/test.js +++ b/base/ops/csubf/test/test.js @@ -23,8 +23,8 @@ var tape = require( 'tape' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var csubf = require( './../lib' ); diff --git a/base/ops/csubf/test/test.native.js b/base/ops/csubf/test/test.native.js index deacb8174..3a35c1679 100644 --- a/base/ops/csubf/test/test.native.js +++ b/base/ops/csubf/test/test.native.js @@ -24,8 +24,8 @@ var resolve = require( 'path' ).resolve; var tape = require( 'tape' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/ops/docs/types/index.d.ts b/base/ops/docs/types/index.d.ts index c4a39db1f..b7c3dcb5a 100644 --- a/base/ops/docs/types/index.d.ts +++ b/base/ops/docs/types/index.d.ts @@ -209,8 +209,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( 5.0, 3.0 ); * // returns @@ -235,8 +235,8 @@ interface Namespace { * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( 5.0, 3.0 ); * // returns @@ -261,8 +261,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var z1 = new Complex128( -13.0, -1.0 ); * // returns @@ -290,8 +290,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var z1 = new Complex128( 5.0, 3.0 ); * // returns @@ -319,8 +319,8 @@ interface Namespace { * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * var z1 = new Complex64( 5.0, 3.0 ); * // returns @@ -347,8 +347,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var z1 = new Complex128( -4.2, 5.5 ); * // returns @@ -364,8 +364,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var z2 = new Complex128( 0.0, 0.0 ); * // returns @@ -381,8 +381,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var z3 = new Complex128( NaN, NaN ); * // returns @@ -406,8 +406,8 @@ interface Namespace { * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( -4.2, 5.5 ); * // returns @@ -423,8 +423,8 @@ interface Namespace { * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( 0.0, 0.0 ); * // returns @@ -440,8 +440,8 @@ interface Namespace { * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = new Complex64( NaN, NaN ); * // returns @@ -466,8 +466,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var z1 = new Complex128( 5.0, 3.0 ); * // returns @@ -495,8 +495,8 @@ interface Namespace { * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * var z1 = new Complex64( 5.0, 3.0 ); * // returns diff --git a/base/special/cabs/lib/main.js b/base/special/cabs/lib/main.js index 35080d3ed..043042494 100644 --- a/base/special/cabs/lib/main.js +++ b/base/special/cabs/lib/main.js @@ -21,8 +21,8 @@ // MODULES // var hypot = require( './../../../../base/special/hypot' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // diff --git a/base/special/cabs2/lib/main.js b/base/special/cabs2/lib/main.js index 2a4b31b2e..5c11c5e90 100644 --- a/base/special/cabs2/lib/main.js +++ b/base/special/cabs2/lib/main.js @@ -20,8 +20,8 @@ // MODULES // -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // diff --git a/base/special/cabs2f/lib/main.js b/base/special/cabs2f/lib/main.js index f272705d5..e92940ad4 100644 --- a/base/special/cabs2f/lib/main.js +++ b/base/special/cabs2f/lib/main.js @@ -20,8 +20,8 @@ // MODULES // -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float32/real' ); +var imag = require( '@stdlib/complex/float32/imag' ); // MAIN // diff --git a/base/special/cabsf/lib/main.js b/base/special/cabsf/lib/main.js index 09b80af05..aa2a5caa1 100644 --- a/base/special/cabsf/lib/main.js +++ b/base/special/cabsf/lib/main.js @@ -21,8 +21,8 @@ // MODULES // var hypotf = require( './../../../../base/special/hypotf' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float32/real' ); +var imag = require( '@stdlib/complex/float32/imag' ); // MAIN // diff --git a/base/special/cceil/README.md b/base/special/cceil/README.md index b2126d301..436c4c0b8 100644 --- a/base/special/cceil/README.md +++ b/base/special/cceil/README.md @@ -36,8 +36,8 @@ Rounds a double-precision complex floating-point number toward positive infinity ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var v = cceil( new Complex128( -1.5, 2.5 ) ); // returns @@ -110,17 +110,17 @@ Rounds a double-precision complex floating-point number toward positive infinity ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( 2.5, -1.5 ); stdlib_complex128_t out = stdlib_base_cceil( z ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns 3.0 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns -1.0 ``` diff --git a/base/special/cceil/benchmark/benchmark.js b/base/special/cceil/benchmark/benchmark.js index f11a8aaed..0b9b19c91 100644 --- a/base/special/cceil/benchmark/benchmark.js +++ b/base/special/cceil/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var cceil = require( './../lib' ); diff --git a/base/special/cceil/benchmark/benchmark.native.js b/base/special/cceil/benchmark/benchmark.native.js index e1d5d853d..844b000cd 100644 --- a/base/special/cceil/benchmark/benchmark.native.js +++ b/base/special/cceil/benchmark/benchmark.native.js @@ -25,7 +25,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/special/cceil/docs/repl.txt b/base/special/cceil/docs/repl.txt index 2d40e8ab9..9bb3b052f 100644 --- a/base/special/cceil/docs/repl.txt +++ b/base/special/cceil/docs/repl.txt @@ -17,9 +17,9 @@ -------- > var v = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( -1.5, 2.5 ) ) - > var re = {{alias:@stdlib/complex/real}}( v ) + > var re = {{alias:@stdlib/complex/float64/real}}( v ) -1.0 - > var im = {{alias:@stdlib/complex/imag}}( v ) + > var im = {{alias:@stdlib/complex/float64/imag}}( v ) 3.0 See Also diff --git a/base/special/cceil/docs/types/index.d.ts b/base/special/cceil/docs/types/index.d.ts index 3d5b3e06f..7e65c9053 100644 --- a/base/special/cceil/docs/types/index.d.ts +++ b/base/special/cceil/docs/types/index.d.ts @@ -30,8 +30,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cceil( new Complex128( -1.5, 2.5 ) ); * // returns diff --git a/base/special/cceil/lib/index.js b/base/special/cceil/lib/index.js index fdd45f7e0..70e93c367 100644 --- a/base/special/cceil/lib/index.js +++ b/base/special/cceil/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cceil = require( '@stdlib/math/base/special/cceil' ); * * var v = cceil( new Complex128( -1.5, 2.5 ) ); diff --git a/base/special/cceil/lib/main.js b/base/special/cceil/lib/main.js index f49f76af8..3f4f4b21c 100644 --- a/base/special/cceil/lib/main.js +++ b/base/special/cceil/lib/main.js @@ -22,8 +22,8 @@ var Complex128 = require( '@stdlib/complex/float64/ctor' ); var ceil = require( './../../../../base/special/ceil' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // @@ -36,8 +36,8 @@ var imag = require( '@stdlib/complex/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cceil( new Complex128( -1.5, 2.5 ) ); * // returns diff --git a/base/special/cceil/lib/native.js b/base/special/cceil/lib/native.js index 955380bda..c8de398ce 100644 --- a/base/special/cceil/lib/native.js +++ b/base/special/cceil/lib/native.js @@ -35,8 +35,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cceil( new Complex128( -1.5, 2.5 ) ); * // returns diff --git a/base/special/cceil/src/main.c b/base/special/cceil/src/main.c index c1831dd70..9bd2bd478 100644 --- a/base/special/cceil/src/main.c +++ b/base/special/cceil/src/main.c @@ -29,17 +29,17 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( 3.5, -2.5 ); * * stdlib_complex128_t out = stdlib_base_cceil( z ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns 4.0 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns -2.0 */ stdlib_complex128_t stdlib_base_cceil( const stdlib_complex128_t z ) { diff --git a/base/special/cceil/test/test.js b/base/special/cceil/test/test.js index f01ac2838..20d6fa96c 100644 --- a/base/special/cceil/test/test.js +++ b/base/special/cceil/test/test.js @@ -27,8 +27,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cceil = require( './../lib' ); diff --git a/base/special/cceil/test/test.native.js b/base/special/cceil/test/test.native.js index 5cf2722c9..ed9296c80 100644 --- a/base/special/cceil/test/test.native.js +++ b/base/special/cceil/test/test.native.js @@ -28,8 +28,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/special/cceilf/README.md b/base/special/cceilf/README.md index 27607a11c..36c1c6168 100644 --- a/base/special/cceilf/README.md +++ b/base/special/cceilf/README.md @@ -36,8 +36,8 @@ Rounds a single-precision complex floating-point number toward positive infinity ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float32/real' ); +var imag = require( '@stdlib/complex/float32/imag' ); var v = cceilf( new Complex64( -1.5, 2.5 ) ); // returns diff --git a/base/special/cceilf/benchmark/benchmark.js b/base/special/cceilf/benchmark/benchmark.js index 4200d492a..619d7e783 100644 --- a/base/special/cceilf/benchmark/benchmark.js +++ b/base/special/cceilf/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float32/real' ); +var imag = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var cceilf = require( './../lib' ); diff --git a/base/special/cceilf/docs/repl.txt b/base/special/cceilf/docs/repl.txt index a84b7f74b..b21aaad7f 100644 --- a/base/special/cceilf/docs/repl.txt +++ b/base/special/cceilf/docs/repl.txt @@ -17,9 +17,9 @@ -------- > var v = {{alias}}( new {{alias:@stdlib/complex/float32/ctor}}( -1.5, 2.5 ) ) - > var re = {{alias:@stdlib/complex/real}}( v ) + > var re = {{alias:@stdlib/complex/float32/real}}( v ) -1.0 - > var im = {{alias:@stdlib/complex/imag}}( v ) + > var im = {{alias:@stdlib/complex/float32/imag}}( v ) 3.0 See Also diff --git a/base/special/cceilf/docs/types/index.d.ts b/base/special/cceilf/docs/types/index.d.ts index 3e9da20cc..a2341d64f 100644 --- a/base/special/cceilf/docs/types/index.d.ts +++ b/base/special/cceilf/docs/types/index.d.ts @@ -30,8 +30,8 @@ import { Complex64 } from '@stdlib/types/complex'; * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float32/real' ); +* var imag = require( '@stdlib/complex/float32/imag' ); * * var v = cceilf( new Complex64( -1.5, 2.5 ) ); * // returns diff --git a/base/special/cceilf/lib/index.js b/base/special/cceilf/lib/index.js index 4806f7694..862ad76f1 100644 --- a/base/special/cceilf/lib/index.js +++ b/base/special/cceilf/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float32/real' ); +* var imag = require( '@stdlib/complex/float32/imag' ); * var cceilf = require( '@stdlib/math/base/special/cceilf' ); * * var v = cceilf( new Complex64( -1.5, 2.5 ) ); diff --git a/base/special/cceilf/lib/main.js b/base/special/cceilf/lib/main.js index 14facdc15..60b15b1cb 100644 --- a/base/special/cceilf/lib/main.js +++ b/base/special/cceilf/lib/main.js @@ -22,8 +22,8 @@ var Complex64 = require( '@stdlib/complex/float32/ctor' ); var ceilf = require( './../../../../base/special/ceilf' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); // MAIN // @@ -36,8 +36,8 @@ var imagf = require( '@stdlib/complex/imagf' ); * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var v = cceilf( new Complex64( -1.5, 2.5 ) ); * // returns diff --git a/base/special/cceilf/test/test.js b/base/special/cceilf/test/test.js index 2c879fb89..43baee185 100644 --- a/base/special/cceilf/test/test.js +++ b/base/special/cceilf/test/test.js @@ -27,8 +27,8 @@ var isnanf = require( './../../../../base/assert/is-nanf' ); var isNegativeZerof = require( './../../../../base/assert/is-negative-zerof' ); var isPositiveZerof = require( './../../../../base/assert/is-positive-zerof' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float32/real' ); +var imag = require( '@stdlib/complex/float32/imag' ); var cceilf = require( './../lib' ); diff --git a/base/special/cceiln/README.md b/base/special/cceiln/README.md index 4031d47cc..b834fc9b4 100644 --- a/base/special/cceiln/README.md +++ b/base/special/cceiln/README.md @@ -36,8 +36,8 @@ Rounds each component of a double-precision complex floating-point number to the ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // Round components to 2 decimal places: var z = new Complex128( -3.141592653589793, 3.141592653589793 ); @@ -94,8 +94,8 @@ im = imag( v ); ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); - var real = require( '@stdlib/complex/real' ); - var imag = require( '@stdlib/complex/imag' ); + var real = require( '@stdlib/complex/float64/real' ); + var imag = require( '@stdlib/complex/float64/imag' ); var x = 0.2 + 0.1; // returns 0.30000000000000004 @@ -177,17 +177,17 @@ Rounds each component of a double-precision complex floating-point number to the ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( -3.141592653589793, 3.141592653589793 ); stdlib_complex128_t out = stdlib_base_cceiln( z, -2 ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns -3.14 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns 3.15 ``` diff --git a/base/special/cceiln/benchmark/benchmark.js b/base/special/cceiln/benchmark/benchmark.js index 9cf724f10..07d542d31 100644 --- a/base/special/cceiln/benchmark/benchmark.js +++ b/base/special/cceiln/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var cceiln = require( './../lib' ); diff --git a/base/special/cceiln/benchmark/benchmark.native.js b/base/special/cceiln/benchmark/benchmark.native.js index 1d125eeec..764896a34 100644 --- a/base/special/cceiln/benchmark/benchmark.native.js +++ b/base/special/cceiln/benchmark/benchmark.native.js @@ -25,8 +25,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/special/cceiln/docs/repl.txt b/base/special/cceiln/docs/repl.txt index b0c9e215f..b45365e51 100644 --- a/base/special/cceiln/docs/repl.txt +++ b/base/special/cceiln/docs/repl.txt @@ -20,9 +20,9 @@ -------- > var out = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( 5.555, -3.333 ), -2 ) - > var re = {{alias:@stdlib/complex/real}}( out ) + > var re = {{alias:@stdlib/complex/float64/real}}( out ) 5.56 - > var im = {{alias:@stdlib/complex/imag}}( out ) + > var im = {{alias:@stdlib/complex/float64/imag}}( out ) -3.33 See Also diff --git a/base/special/cceiln/docs/types/index.d.ts b/base/special/cceiln/docs/types/index.d.ts index 9acaddc56..0df302a8f 100644 --- a/base/special/cceiln/docs/types/index.d.ts +++ b/base/special/cceiln/docs/types/index.d.ts @@ -31,8 +31,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cceiln( new Complex128( 5.555, -3.333 ), -2 ); * // returns diff --git a/base/special/cceiln/lib/index.js b/base/special/cceiln/lib/index.js index fdbe3aeb7..681ecd911 100644 --- a/base/special/cceiln/lib/index.js +++ b/base/special/cceiln/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cceiln = require( '@stdlib/math/base/special/cceiln' ); * * // Round components to 2 decimal places: diff --git a/base/special/cceiln/lib/main.js b/base/special/cceiln/lib/main.js index f58ee0ac1..9545dc202 100644 --- a/base/special/cceiln/lib/main.js +++ b/base/special/cceiln/lib/main.js @@ -22,8 +22,8 @@ var ceiln = require( './../../../../base/special/ceiln' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // @@ -37,8 +37,8 @@ var imag = require( '@stdlib/complex/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * // Round components to 2 decimal places: * var z = new Complex128( -3.141592653589793, 3.141592653589793 ) diff --git a/base/special/cceiln/lib/native.js b/base/special/cceiln/lib/native.js index 91ed5f31b..847b54eae 100644 --- a/base/special/cceiln/lib/native.js +++ b/base/special/cceiln/lib/native.js @@ -36,8 +36,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * // Round components to 2 decimal places: * var z = new Complex128( -3.141592653589793, 3.141592653589793 ) diff --git a/base/special/cceiln/src/main.c b/base/special/cceiln/src/main.c index 1d4790ee7..bc6d7411a 100644 --- a/base/special/cceiln/src/main.c +++ b/base/special/cceiln/src/main.c @@ -30,17 +30,17 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( -3.141592653589793, 3.141592653589793 ); * * stdlib_complex128_t out = stdlib_base_cceiln( z, -2 ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns -3.14 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns 3.15 */ stdlib_complex128_t stdlib_base_cceiln( const stdlib_complex128_t z, const int32_t n ) { diff --git a/base/special/cceiln/test/test.js b/base/special/cceiln/test/test.js index cd9e7f91a..b84b2f9d8 100644 --- a/base/special/cceiln/test/test.js +++ b/base/special/cceiln/test/test.js @@ -33,8 +33,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cceiln = require( './../lib' ); diff --git a/base/special/cceiln/test/test.native.js b/base/special/cceiln/test/test.native.js index 402c5e9a1..43354d19a 100644 --- a/base/special/cceiln/test/test.native.js +++ b/base/special/cceiln/test/test.native.js @@ -34,8 +34,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/special/ccis/README.md b/base/special/ccis/README.md index 7a8d77c32..c9fe8cf31 100644 --- a/base/special/ccis/README.md +++ b/base/special/ccis/README.md @@ -57,8 +57,8 @@ Evaluates the [cis][cis] function for a double-precision complex floating-point ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var z = new Complex128( 0.0, 0.0 ); @@ -145,17 +145,17 @@ Evaluates the [cis][cis] function for a double-precision complex floating-point ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( 0.0, 0.0 ); stdlib_complex128_t out = stdlib_base_ccis( z ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns 1.0 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns 0.0 ``` diff --git a/base/special/ccis/benchmark/benchmark.js b/base/special/ccis/benchmark/benchmark.js index c1c526fce..03b793133 100644 --- a/base/special/ccis/benchmark/benchmark.js +++ b/base/special/ccis/benchmark/benchmark.js @@ -23,8 +23,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var pkg = require( './../package.json' ).name; var ccis = require( './../lib' ); diff --git a/base/special/ccis/benchmark/benchmark.native.js b/base/special/ccis/benchmark/benchmark.native.js index fe86819b0..7a9297803 100644 --- a/base/special/ccis/benchmark/benchmark.native.js +++ b/base/special/ccis/benchmark/benchmark.native.js @@ -24,8 +24,8 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/special/ccis/docs/repl.txt b/base/special/ccis/docs/repl.txt index 56e0e47df..9f3170bbe 100644 --- a/base/special/ccis/docs/repl.txt +++ b/base/special/ccis/docs/repl.txt @@ -17,15 +17,15 @@ -------- > var y = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( 0.0, 0.0 ) ) - > var re = {{alias:@stdlib/complex/real}}( y ) + > var re = {{alias:@stdlib/complex/float64/real}}( y ) 1.0 - > var im = {{alias:@stdlib/complex/imag}}( y ) + > var im = {{alias:@stdlib/complex/float64/imag}}( y ) 0.0 > y = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( 1.0, 0.0 ) ) - > re = {{alias:@stdlib/complex/real}}( y ) + > re = {{alias:@stdlib/complex/float64/real}}( y ) ~0.540 - > im = {{alias:@stdlib/complex/imag}}( y ) + > im = {{alias:@stdlib/complex/float64/imag}}( y ) ~0.841 See Also diff --git a/base/special/ccis/docs/types/index.d.ts b/base/special/ccis/docs/types/index.d.ts index 99f2ed7f7..a267f5369 100644 --- a/base/special/ccis/docs/types/index.d.ts +++ b/base/special/ccis/docs/types/index.d.ts @@ -30,8 +30,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( 0.0, 0.0 ); * // returns @@ -46,8 +46,8 @@ import { Complex128 } from '@stdlib/types/complex'; * // returns 0.0 * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( 1.0, 0.0 ); * // returns diff --git a/base/special/ccis/lib/index.js b/base/special/ccis/lib/index.js index 17f1c58b6..93b565bbf 100644 --- a/base/special/ccis/lib/index.js +++ b/base/special/ccis/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var ccis = require( '@stdlib/math/base/special/ccis' ); * * var z = new Complex128( 0.0, 0.0 ); @@ -43,8 +43,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var ccis = require( '@stdlib/math/base/special/ccis' ); * * var z = new Complex128( 1.0, 0.0 ); diff --git a/base/special/ccis/lib/main.js b/base/special/ccis/lib/main.js index 02e7dcd1a..b87dc2d71 100644 --- a/base/special/ccis/lib/main.js +++ b/base/special/ccis/lib/main.js @@ -23,8 +23,8 @@ var sincos = require( './../../../../base/special/sincos' ).assign; var exp = require( './../../../../base/special/exp' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // VARIABLES // @@ -43,8 +43,8 @@ var WORKSPACE = [ 0.0, 0.0 ]; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( 0.0, 0.0 ); * // returns @@ -60,8 +60,8 @@ var WORKSPACE = [ 0.0, 0.0 ]; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( 1.0, 0.0 ); * // returns diff --git a/base/special/ccis/lib/native.js b/base/special/ccis/lib/native.js index 0fe67fd87..eb42e01cd 100644 --- a/base/special/ccis/lib/native.js +++ b/base/special/ccis/lib/native.js @@ -35,8 +35,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( 0.0, 0.0 ); * // returns @@ -52,8 +52,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( 1.0, 0.0 ); * // returns diff --git a/base/special/ccis/src/main.c b/base/special/ccis/src/main.c index c9044362d..c58cedb14 100644 --- a/base/special/ccis/src/main.c +++ b/base/special/ccis/src/main.c @@ -31,32 +31,32 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( 0.0, 0.0 ); * * stdlib_complex128_t out = stdlib_base_ccis( z ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns 1.0 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns 0.0 * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( 1.0, 0.0 ); * * stdlib_complex128_t out = stdlib_base_ccis( z ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns ~0.540 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns ~0.841 */ stdlib_complex128_t stdlib_base_ccis( const stdlib_complex128_t z ) { diff --git a/base/special/ccis/test/test.js b/base/special/ccis/test/test.js index a2ebcdf57..7e1864eee 100644 --- a/base/special/ccis/test/test.js +++ b/base/special/ccis/test/test.js @@ -23,8 +23,8 @@ var tape = require( 'tape' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var abs = require( './../../../../base/special/abs' ); var EPS = require( '@stdlib/constants/float64/eps' ); var PINF = require( '@stdlib/constants/float64/pinf' ); diff --git a/base/special/ccis/test/test.native.js b/base/special/ccis/test/test.native.js index ba77220c1..1e7ebca8c 100644 --- a/base/special/ccis/test/test.native.js +++ b/base/special/ccis/test/test.native.js @@ -24,8 +24,8 @@ var resolve = require( 'path' ).resolve; var tape = require( 'tape' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var abs = require( './../../../../base/special/abs' ); var EPS = require( '@stdlib/constants/float64/eps' ); var PINF = require( '@stdlib/constants/float64/pinf' ); diff --git a/base/special/cexp/README.md b/base/special/cexp/README.md index b86b88624..bf456fc16 100644 --- a/base/special/cexp/README.md +++ b/base/special/cexp/README.md @@ -57,8 +57,8 @@ Evaluates the [exponential][exponential-function] function for a double-precisio ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var v = cexp( new Complex128( 0.0, 0.0 ) ); // returns @@ -146,16 +146,16 @@ Evaluates the [exponential][exponential-function] function for a double-precisio ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( 0.0, 0.0 ); stdlib_complex128_t out = stdlib_base_cexp( z ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns 1.0 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns 0.0 ``` diff --git a/base/special/cexp/benchmark/benchmark.js b/base/special/cexp/benchmark/benchmark.js index d1443811d..e39412d06 100644 --- a/base/special/cexp/benchmark/benchmark.js +++ b/base/special/cexp/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var cexp = require( './../lib' ); diff --git a/base/special/cexp/benchmark/benchmark.native.js b/base/special/cexp/benchmark/benchmark.native.js index 7c2fd9c09..c03396b17 100644 --- a/base/special/cexp/benchmark/benchmark.native.js +++ b/base/special/cexp/benchmark/benchmark.native.js @@ -25,8 +25,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/special/cexp/docs/repl.txt b/base/special/cexp/docs/repl.txt index 81a3a7edf..9bacca606 100644 --- a/base/special/cexp/docs/repl.txt +++ b/base/special/cexp/docs/repl.txt @@ -17,15 +17,15 @@ -------- > var y = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( 0.0, 0.0 ) ) - > var re = {{alias:@stdlib/complex/real}}( y ) + > var re = {{alias:@stdlib/complex/float64/real}}( y ) 1.0 - > var im = {{alias:@stdlib/complex/imag}}( y ) + > var im = {{alias:@stdlib/complex/float64/imag}}( y ) 0.0 > y = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( 0.0, 1.0 ) ) - > re = {{alias:@stdlib/complex/real}}( y ) + > re = {{alias:@stdlib/complex/float64/real}}( y ) ~0.540 - > im = {{alias:@stdlib/complex/imag}}( y ) + > im = {{alias:@stdlib/complex/float64/imag}}( y ) ~0.841 See Also diff --git a/base/special/cexp/docs/types/index.d.ts b/base/special/cexp/docs/types/index.d.ts index 3498498c9..0d9b10ef6 100644 --- a/base/special/cexp/docs/types/index.d.ts +++ b/base/special/cexp/docs/types/index.d.ts @@ -30,8 +30,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cexp( new Complex128( 0.0, 0.0 ) ); * // returns @@ -44,8 +44,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cexp( new Complex128( 1.0, 0.0 ) ); * // returns diff --git a/base/special/cexp/lib/index.js b/base/special/cexp/lib/index.js index 5612ed134..ad4c2be3f 100644 --- a/base/special/cexp/lib/index.js +++ b/base/special/cexp/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cexp = require( '@stdlib/math/base/special/cexp' ); * * var v = cexp( new Complex128( 0.0, 0.0 ) ); diff --git a/base/special/cexp/lib/main.js b/base/special/cexp/lib/main.js index fda704d83..660bdc5bf 100644 --- a/base/special/cexp/lib/main.js +++ b/base/special/cexp/lib/main.js @@ -28,8 +28,8 @@ var isInfinite = require( './../../../../base/assert/is-infinite' ); var exp = require( './../../../../base/special/exp' ); var PINF = require( '@stdlib/constants/float64/pinf' ); var NINF = require( '@stdlib/constants/float64/ninf' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // @@ -42,8 +42,8 @@ var imag = require( '@stdlib/complex/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cexp = require( '@stdlib/math/base/special/cexp' ); * * var v = cexp( new Complex128( 0.0, 0.0 ) ); @@ -57,8 +57,8 @@ var imag = require( '@stdlib/complex/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cexp = require( '@stdlib/math/base/special/cexp' ); * * var v = cexp( new Complex128( 1.0, 0.0 ) ); diff --git a/base/special/cexp/lib/native.js b/base/special/cexp/lib/native.js index e9a3c5451..7f168b2d3 100644 --- a/base/special/cexp/lib/native.js +++ b/base/special/cexp/lib/native.js @@ -35,8 +35,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cexp = require( '@stdlib/math/base/special/cexp' ); * * var v = cexp( new Complex128( 0.0, 0.0 ) ); @@ -50,8 +50,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cexp = require( '@stdlib/math/base/special/cexp' ); * * var v = cexp( new Complex128( 1.0, 0.0 ) ); diff --git a/base/special/cexp/src/main.c b/base/special/cexp/src/main.c index 3c997e192..8ad60aa2f 100644 --- a/base/special/cexp/src/main.c +++ b/base/special/cexp/src/main.c @@ -29,16 +29,16 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( 0.0, 0.0 ); * stdlib_complex128_t out = stdlib_base_cexp( z ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns 1.0 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns 0.0 */ stdlib_complex128_t stdlib_base_cexp( const stdlib_complex128_t z ) { diff --git a/base/special/cexp/test/test.js b/base/special/cexp/test/test.js index d5b13614f..24553b69f 100644 --- a/base/special/cexp/test/test.js +++ b/base/special/cexp/test/test.js @@ -29,8 +29,8 @@ var EPS = require( '@stdlib/constants/float64/eps' ); var PINF = require( '@stdlib/constants/float64/pinf' ); var NINF = require( '@stdlib/constants/float64/ninf' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cexp = require( './../lib' ); diff --git a/base/special/cexp/test/test.native.js b/base/special/cexp/test/test.native.js index 0f2f8921b..2f3829647 100644 --- a/base/special/cexp/test/test.native.js +++ b/base/special/cexp/test/test.native.js @@ -30,8 +30,8 @@ var EPS = require( '@stdlib/constants/float64/eps' ); var PINF = require( '@stdlib/constants/float64/pinf' ); var NINF = require( '@stdlib/constants/float64/ninf' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/special/cflipsign/README.md b/base/special/cflipsign/README.md index 6a7970812..e3ac15097 100644 --- a/base/special/cflipsign/README.md +++ b/base/special/cflipsign/README.md @@ -46,8 +46,8 @@ Returns a double-precision complex floating-point number with the same magnitude ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var v = cflipsign( new Complex128( -4.2, 5.5 ), -1.0 ); // returns @@ -132,17 +132,17 @@ Returns a double-precision complex floating-point number with the same magnitude ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( 2.5, -1.5 ); stdlib_complex128_t out = stdlib_base_cflipsign( z, -1.0 ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns -2.5 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns 1.5 ``` diff --git a/base/special/cflipsign/benchmark/benchmark.js b/base/special/cflipsign/benchmark/benchmark.js index 8f2dc3021..04528d7b7 100644 --- a/base/special/cflipsign/benchmark/benchmark.js +++ b/base/special/cflipsign/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var cflipsign = require( './../lib' ); diff --git a/base/special/cflipsign/benchmark/benchmark.native.js b/base/special/cflipsign/benchmark/benchmark.native.js index 55d395b60..94ac43cdb 100644 --- a/base/special/cflipsign/benchmark/benchmark.native.js +++ b/base/special/cflipsign/benchmark/benchmark.native.js @@ -25,7 +25,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/special/cflipsign/docs/repl.txt b/base/special/cflipsign/docs/repl.txt index e7f6cf06c..067b1408d 100644 --- a/base/special/cflipsign/docs/repl.txt +++ b/base/special/cflipsign/docs/repl.txt @@ -20,9 +20,9 @@ -------- > var v = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( -4.2, 5.5 ), -9.0 ) - > var re = {{alias:@stdlib/complex/real}}( v ) + > var re = {{alias:@stdlib/complex/float64/real}}( v ) 4.2 - > var im = {{alias:@stdlib/complex/imag}}( v ) + > var im = {{alias:@stdlib/complex/float64/imag}}( v ) -5.5 See Also diff --git a/base/special/cflipsign/docs/types/index.d.ts b/base/special/cflipsign/docs/types/index.d.ts index a1f4778be..8352d2a23 100644 --- a/base/special/cflipsign/docs/types/index.d.ts +++ b/base/special/cflipsign/docs/types/index.d.ts @@ -31,8 +31,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cflipsign( new Complex128( -4.2, 5.5 ), -55.0 ); * // returns diff --git a/base/special/cflipsign/lib/index.js b/base/special/cflipsign/lib/index.js index f59f1e95d..0e6964eea 100644 --- a/base/special/cflipsign/lib/index.js +++ b/base/special/cflipsign/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cflipsign = require( '@stdlib/math/base/special/cflipsign' ); * * var v = cflipsign( new Complex128( -4.2, 5.5 ), -55.0 ); diff --git a/base/special/cflipsign/lib/main.js b/base/special/cflipsign/lib/main.js index a45774eca..35de6f9c3 100644 --- a/base/special/cflipsign/lib/main.js +++ b/base/special/cflipsign/lib/main.js @@ -22,8 +22,8 @@ var Complex128 = require( '@stdlib/complex/float64/ctor' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // @@ -37,8 +37,8 @@ var imag = require( '@stdlib/complex/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cflipsign( new Complex128( -4.2, 5.5 ), -55.0 ); * // returns diff --git a/base/special/cflipsign/lib/native.js b/base/special/cflipsign/lib/native.js index b710c1f02..c3ff95c8c 100644 --- a/base/special/cflipsign/lib/native.js +++ b/base/special/cflipsign/lib/native.js @@ -35,8 +35,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cflipsign( new Complex128( -4.2, 5.5 ), -55.0 ); * // returns diff --git a/base/special/cflipsign/src/main.c b/base/special/cflipsign/src/main.c index a802a26de..cf64b5ad2 100644 --- a/base/special/cflipsign/src/main.c +++ b/base/special/cflipsign/src/main.c @@ -30,17 +30,17 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( 3.5, -2.5 ); * * stdlib_complex128_t out = stdlib_base_cflipsign( z, -1.0 ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns -3.5 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns 2.5 */ stdlib_complex128_t stdlib_base_cflipsign( const stdlib_complex128_t z, const double y ) { diff --git a/base/special/cflipsign/test/test.js b/base/special/cflipsign/test/test.js index 993e20c2e..2ac71082e 100644 --- a/base/special/cflipsign/test/test.js +++ b/base/special/cflipsign/test/test.js @@ -29,8 +29,8 @@ var abs = require( './../../../../base/special/abs' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cflipsign = require( './../lib' ); diff --git a/base/special/cflipsign/test/test.native.js b/base/special/cflipsign/test/test.native.js index e823c828a..663a87417 100644 --- a/base/special/cflipsign/test/test.native.js +++ b/base/special/cflipsign/test/test.native.js @@ -30,8 +30,8 @@ var abs = require( './../../../../base/special/abs' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/special/cflipsignf/README.md b/base/special/cflipsignf/README.md index 6d3b3f691..01d734f5d 100644 --- a/base/special/cflipsignf/README.md +++ b/base/special/cflipsignf/README.md @@ -46,8 +46,8 @@ Returns a single-precision complex floating-point number with the same magnitude ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float32/real' ); +var imag = require( '@stdlib/complex/float32/imag' ); var v = cflipsignf( new Complex64( -4.0, 5.0 ), -1.0 ); // returns diff --git a/base/special/cflipsignf/benchmark/benchmark.js b/base/special/cflipsignf/benchmark/benchmark.js index 64108e941..aa0c482dd 100644 --- a/base/special/cflipsignf/benchmark/benchmark.js +++ b/base/special/cflipsignf/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float32/real' ); +var imag = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var cflipsignf = require( './../lib' ); diff --git a/base/special/cflipsignf/docs/repl.txt b/base/special/cflipsignf/docs/repl.txt index ecb161e9e..002f3f1ee 100644 --- a/base/special/cflipsignf/docs/repl.txt +++ b/base/special/cflipsignf/docs/repl.txt @@ -20,9 +20,9 @@ -------- > var v = {{alias}}( new {{alias:@stdlib/complex/float32/ctor}}( -4.0, 5.0 ), -9.0 ) - > var re = {{alias:@stdlib/complex/real}}( v ) + > var re = {{alias:@stdlib/complex/float32/real}}( v ) 4.0 - > var im = {{alias:@stdlib/complex/imag}}( v ) + > var im = {{alias:@stdlib/complex/float32/imag}}( v ) -5.0 See Also diff --git a/base/special/cflipsignf/docs/types/index.d.ts b/base/special/cflipsignf/docs/types/index.d.ts index 59fb34b0c..5fa496304 100644 --- a/base/special/cflipsignf/docs/types/index.d.ts +++ b/base/special/cflipsignf/docs/types/index.d.ts @@ -31,8 +31,8 @@ import { Complex64 } from '@stdlib/types/complex'; * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float32/real' ); +* var imag = require( '@stdlib/complex/float32/imag' ); * * var v = cflipsignf( new Complex64( -4.0, 5.0 ), -55.0 ); * // returns diff --git a/base/special/cflipsignf/lib/index.js b/base/special/cflipsignf/lib/index.js index 557b27050..8a19a7df7 100644 --- a/base/special/cflipsignf/lib/index.js +++ b/base/special/cflipsignf/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float32/real' ); +* var imag = require( '@stdlib/complex/float32/imag' ); * var cflipsignf = require( '@stdlib/math/base/special/cflipsignf' ); * * var v = cflipsignf( new Complex64( -4.0, 5.0 ), -55.0 ); diff --git a/base/special/cflipsignf/lib/main.js b/base/special/cflipsignf/lib/main.js index 2604a8ee3..e58f91778 100644 --- a/base/special/cflipsignf/lib/main.js +++ b/base/special/cflipsignf/lib/main.js @@ -22,8 +22,8 @@ var Complex64 = require( '@stdlib/complex/float32/ctor' ); var isNegativeZerof = require( './../../../../base/assert/is-negative-zerof' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); // MAIN // @@ -37,8 +37,8 @@ var imagf = require( '@stdlib/complex/imagf' ); * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var v = cflipsignf( new Complex64( -4.0, 5.0 ), -55.0 ); * // returns diff --git a/base/special/cflipsignf/test/test.js b/base/special/cflipsignf/test/test.js index 7cc56a85d..6d59d826f 100644 --- a/base/special/cflipsignf/test/test.js +++ b/base/special/cflipsignf/test/test.js @@ -29,8 +29,8 @@ var abs = require( './../../../../base/special/abs' ); var isNegativeZerof = require( './../../../../base/assert/is-negative-zerof' ); var isPositiveZerof = require( './../../../../base/assert/is-positive-zerof' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float32/real' ); +var imag = require( '@stdlib/complex/float32/imag' ); var cflipsignf = require( './../lib' ); diff --git a/base/special/cfloor/README.md b/base/special/cfloor/README.md index 696395956..e8454439a 100644 --- a/base/special/cfloor/README.md +++ b/base/special/cfloor/README.md @@ -36,8 +36,8 @@ Rounds a double-precision complex floating-point number toward negative infinity ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var v = cfloor( new Complex128( -4.2, 5.5 ) ); // returns @@ -142,17 +142,17 @@ Rounds a double-precision complex floating-point number toward negative infinity ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( 2.5, -1.5 ); stdlib_complex128_t out = stdlib_base_cfloor( z ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns 2.0 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns -2.0 ``` diff --git a/base/special/cfloor/benchmark/benchmark.js b/base/special/cfloor/benchmark/benchmark.js index 6870e2777..3d21c4a55 100644 --- a/base/special/cfloor/benchmark/benchmark.js +++ b/base/special/cfloor/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var randu = require( '@stdlib/random/base/randu' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var uniform = require( '@stdlib/random/base/uniform' ); var isArray = require( '@stdlib/assert/is-array' ); var floor = require( './../../../../base/special/floor' ); diff --git a/base/special/cfloor/benchmark/benchmark.native.js b/base/special/cfloor/benchmark/benchmark.native.js index 41fc58a64..ce7989bd1 100644 --- a/base/special/cfloor/benchmark/benchmark.native.js +++ b/base/special/cfloor/benchmark/benchmark.native.js @@ -25,7 +25,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/special/cfloor/docs/repl.txt b/base/special/cfloor/docs/repl.txt index 5ec8cc7c1..4a8f8a6d9 100644 --- a/base/special/cfloor/docs/repl.txt +++ b/base/special/cfloor/docs/repl.txt @@ -17,9 +17,9 @@ -------- > var v = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( 5.5, 3.3 ) ) - > var re = {{alias:@stdlib/complex/real}}( v ) + > var re = {{alias:@stdlib/complex/float64/real}}( v ) 5.0 - > var im = {{alias:@stdlib/complex/imag}}( v ) + > var im = {{alias:@stdlib/complex/float64/imag}}( v ) 3.0 See Also diff --git a/base/special/cfloor/docs/types/index.d.ts b/base/special/cfloor/docs/types/index.d.ts index 890915a07..3335863bf 100644 --- a/base/special/cfloor/docs/types/index.d.ts +++ b/base/special/cfloor/docs/types/index.d.ts @@ -30,8 +30,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cfloor( new Complex128( 5.5, 3.3 ) ); * // returns diff --git a/base/special/cfloor/lib/index.js b/base/special/cfloor/lib/index.js index 194d9092b..c919310e1 100644 --- a/base/special/cfloor/lib/index.js +++ b/base/special/cfloor/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cfloor = require( '@stdlib/math/base/special/cfloor' ); * * var v = cfloor( new Complex128( -4.2, 5.5 ) ); @@ -40,8 +40,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cfloor = require( '@stdlib/math/base/special/cfloor' ); * * var v = cfloor( new Complex128( 9.99999, 0.1 ) ); @@ -55,8 +55,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cfloor = require( '@stdlib/math/base/special/cfloor' ); * * var v = cfloor( new Complex128( 0.0, 0.0 ) ); @@ -70,8 +70,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cfloor = require( '@stdlib/math/base/special/cfloor' ); * * var v = cfloor( new Complex128( NaN, NaN ) ); diff --git a/base/special/cfloor/lib/main.js b/base/special/cfloor/lib/main.js index ce7ac2d91..735ed0d28 100644 --- a/base/special/cfloor/lib/main.js +++ b/base/special/cfloor/lib/main.js @@ -22,8 +22,8 @@ var Complex128 = require( '@stdlib/complex/float64/ctor' ); var floor = require( './../../../../base/special/floor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // @@ -36,8 +36,8 @@ var imag = require( '@stdlib/complex/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cfloor( new Complex128( -4.2, 5.5 ) ); * // returns @@ -50,8 +50,8 @@ var imag = require( '@stdlib/complex/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cfloor( new Complex128( 9.99999, 0.1 ) ); * // returns @@ -64,8 +64,8 @@ var imag = require( '@stdlib/complex/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cfloor( new Complex128( 0.0, 0.0 ) ); * // returns @@ -78,8 +78,8 @@ var imag = require( '@stdlib/complex/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cfloor( new Complex128( NaN, NaN ) ); * // returns diff --git a/base/special/cfloor/lib/native.js b/base/special/cfloor/lib/native.js index 64acdddab..2a745bd5c 100644 --- a/base/special/cfloor/lib/native.js +++ b/base/special/cfloor/lib/native.js @@ -35,8 +35,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cfloor( new Complex128( -1.5, 2.5 ) ); * // returns diff --git a/base/special/cfloor/src/main.c b/base/special/cfloor/src/main.c index 7cd1b9fdc..6abc5b848 100644 --- a/base/special/cfloor/src/main.c +++ b/base/special/cfloor/src/main.c @@ -29,17 +29,17 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( 3.5, -2.5 ); * * stdlib_complex128_t out = stdlib_base_cfloor( z ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns 3.0 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns -3.0 */ stdlib_complex128_t stdlib_base_cfloor( const stdlib_complex128_t z ) { diff --git a/base/special/cfloor/test/test.js b/base/special/cfloor/test/test.js index bf487b304..b00e90af8 100644 --- a/base/special/cfloor/test/test.js +++ b/base/special/cfloor/test/test.js @@ -27,8 +27,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cfloor = require( './../lib' ); diff --git a/base/special/cfloor/test/test.native.js b/base/special/cfloor/test/test.native.js index 37c2e9c8f..64d72f215 100644 --- a/base/special/cfloor/test/test.native.js +++ b/base/special/cfloor/test/test.native.js @@ -28,8 +28,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/special/cfloorn/README.md b/base/special/cfloorn/README.md index 2ddac622b..1d14fbde6 100644 --- a/base/special/cfloorn/README.md +++ b/base/special/cfloorn/README.md @@ -36,8 +36,8 @@ Rounds each component of a double-precision complex floating-point number to the ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // Round components to 2 decimal places: var v = cfloorn( new Complex128( -3.141592653589793, 3.141592653589793 ), -2 ); @@ -91,8 +91,8 @@ im = imag( v ); ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); - var real = require( '@stdlib/complex/real' ); - var imag = require( '@stdlib/complex/imag' ); + var real = require( '@stdlib/complex/float64/real' ); + var imag = require( '@stdlib/complex/float64/imag' ); var x = -0.2 - 0.1; // returns -0.30000000000000004 @@ -177,16 +177,16 @@ Rounds each component of a double-precision complex floating-point number to the ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( -3.141592653589793, 3.141592653589793 ); stdlib_complex128_t out = stdlib_base_cfloorn( z, -2 ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns -3.15 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns 3.14 ``` diff --git a/base/special/cfloorn/benchmark/benchmark.js b/base/special/cfloorn/benchmark/benchmark.js index 5132e04b0..09ffb4587 100644 --- a/base/special/cfloorn/benchmark/benchmark.js +++ b/base/special/cfloorn/benchmark/benchmark.js @@ -23,8 +23,8 @@ var bench = require( '@stdlib/bench' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var uniform = require( '@stdlib/random/base/uniform' ); var pkg = require( './../package.json' ).name; var cfloorn = require( './../lib' ); diff --git a/base/special/cfloorn/benchmark/benchmark.native.js b/base/special/cfloorn/benchmark/benchmark.native.js index eeeadf64c..b39b68e37 100644 --- a/base/special/cfloorn/benchmark/benchmark.native.js +++ b/base/special/cfloorn/benchmark/benchmark.native.js @@ -25,8 +25,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/special/cfloorn/docs/repl.txt b/base/special/cfloorn/docs/repl.txt index 395c96619..0dc868dbc 100644 --- a/base/special/cfloorn/docs/repl.txt +++ b/base/special/cfloorn/docs/repl.txt @@ -20,9 +20,9 @@ -------- > var v = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( 5.555, -3.333 ), -2 ) - > var re = {{alias:@stdlib/complex/real}}( v ) + > var re = {{alias:@stdlib/complex/float64/real}}( v ) 5.55 - > var im = {{alias:@stdlib/complex/imag}}( v ) + > var im = {{alias:@stdlib/complex/float64/imag}}( v ) -3.34 See Also diff --git a/base/special/cfloorn/docs/types/index.d.ts b/base/special/cfloorn/docs/types/index.d.ts index 19782f53b..be806f003 100644 --- a/base/special/cfloorn/docs/types/index.d.ts +++ b/base/special/cfloorn/docs/types/index.d.ts @@ -31,8 +31,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cfloor( new Complex128( 5.555, -3.333 ), -2 ); * // returns diff --git a/base/special/cfloorn/lib/index.js b/base/special/cfloorn/lib/index.js index b4c912d29..c5a994b46 100644 --- a/base/special/cfloorn/lib/index.js +++ b/base/special/cfloorn/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cfloorn = require( '@stdlib/math/base/special/cfloorn' ); * * // Round components to 2 decimal places: diff --git a/base/special/cfloorn/lib/main.js b/base/special/cfloorn/lib/main.js index cf93ecb94..b10b921f7 100644 --- a/base/special/cfloorn/lib/main.js +++ b/base/special/cfloorn/lib/main.js @@ -22,8 +22,8 @@ var floorn = require( './../../../../base/special/floorn' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // @@ -37,8 +37,8 @@ var imag = require( '@stdlib/complex/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * // Round components to 2 decimal places: * var v = cfloorn( new Complex128( -3.141592653589793, 3.141592653589793 ), -2 ); diff --git a/base/special/cfloorn/lib/native.js b/base/special/cfloorn/lib/native.js index 565bbe75c..4be9f2438 100644 --- a/base/special/cfloorn/lib/native.js +++ b/base/special/cfloorn/lib/native.js @@ -36,8 +36,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * // Round components to 2 decimal places: * var v = cfloorn( new Complex128( -3.141592653589793, 3.141592653589793 ), -2 ); diff --git a/base/special/cfloorn/src/main.c b/base/special/cfloorn/src/main.c index 997200f24..0d4c7c264 100644 --- a/base/special/cfloorn/src/main.c +++ b/base/special/cfloorn/src/main.c @@ -30,17 +30,17 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( -3.141592653589793, 3.141592653589793 ); * * stdlib_complex128_t out = stdlib_base_cfloorn( z, -2 ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns -3.15 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns 3.14 */ stdlib_complex128_t stdlib_base_cfloorn( const stdlib_complex128_t z, const int32_t n ) { diff --git a/base/special/cfloorn/test/test.js b/base/special/cfloorn/test/test.js index 733ea9385..d96b1bb15 100644 --- a/base/special/cfloorn/test/test.js +++ b/base/special/cfloorn/test/test.js @@ -33,8 +33,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cfloorn = require( './../lib' ); diff --git a/base/special/cfloorn/test/test.native.js b/base/special/cfloorn/test/test.native.js index 503ca650e..150c15433 100644 --- a/base/special/cfloorn/test/test.native.js +++ b/base/special/cfloorn/test/test.native.js @@ -33,8 +33,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/special/cidentity/README.md b/base/special/cidentity/README.md index c6a7c624d..62e8c9830 100644 --- a/base/special/cidentity/README.md +++ b/base/special/cidentity/README.md @@ -59,8 +59,8 @@ Evaluates the [identity function][identity-function] for a double-precision [com ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var v = cidentity( new Complex128( -1.0, 2.0 ) ); // returns @@ -133,16 +133,16 @@ Evaluates the identity function for a double-precision complex floating-point nu ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( 2.5, -1.5 ); stdlib_complex128_t out = stdlib_base_cidentity( z ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns 2.5 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns -1.5 ``` diff --git a/base/special/cidentity/benchmark/benchmark.js b/base/special/cidentity/benchmark/benchmark.js index f7ff9a2a1..7ce0b32c2 100644 --- a/base/special/cidentity/benchmark/benchmark.js +++ b/base/special/cidentity/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var cidentity = require( './../lib' ); diff --git a/base/special/cidentity/benchmark/benchmark.native.js b/base/special/cidentity/benchmark/benchmark.native.js index b2edd0162..32de6b100 100644 --- a/base/special/cidentity/benchmark/benchmark.native.js +++ b/base/special/cidentity/benchmark/benchmark.native.js @@ -25,7 +25,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/special/cidentity/docs/repl.txt b/base/special/cidentity/docs/repl.txt index 34ef1dee5..2afc3a554 100644 --- a/base/special/cidentity/docs/repl.txt +++ b/base/special/cidentity/docs/repl.txt @@ -17,9 +17,9 @@ -------- > var v = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( -1.0, 2.0 ) ) - > var re = {{alias:@stdlib/complex/real}}( v ) + > var re = {{alias:@stdlib/complex/float64/real}}( v ) -1.0 - > var img = {{alias:@stdlib/complex/imag}}( v ) + > var img = {{alias:@stdlib/complex/float64/imag}}( v ) 2.0 See Also diff --git a/base/special/cidentity/docs/types/index.d.ts b/base/special/cidentity/docs/types/index.d.ts index ea7d8d896..8685d8fa0 100644 --- a/base/special/cidentity/docs/types/index.d.ts +++ b/base/special/cidentity/docs/types/index.d.ts @@ -30,8 +30,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cidentity( new Complex128( -1.0, 2.0 ) ); * // returns diff --git a/base/special/cidentity/lib/index.js b/base/special/cidentity/lib/index.js index bd903777e..a4870765f 100644 --- a/base/special/cidentity/lib/index.js +++ b/base/special/cidentity/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cidentity = require( '@stdlib/math/base/special/cidentity' ); * * var v = cidentity( new Complex128( -1.0, 2.0 ) ); diff --git a/base/special/cidentity/lib/main.js b/base/special/cidentity/lib/main.js index cddc0715c..289dfa670 100644 --- a/base/special/cidentity/lib/main.js +++ b/base/special/cidentity/lib/main.js @@ -28,8 +28,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cidentity( new Complex128( -1.0, 2.0 ) ); * // returns diff --git a/base/special/cidentity/lib/native.js b/base/special/cidentity/lib/native.js index ddf6a2394..e900d875d 100644 --- a/base/special/cidentity/lib/native.js +++ b/base/special/cidentity/lib/native.js @@ -35,8 +35,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cidentity( new Complex128( -1.0, 2.0 ) ); * // returns @@ -47,7 +47,7 @@ var addon = require( './../src/addon.node' ); * var im = imag( v ); * // returns 2.0 */ -function cidentify( z ) { +function cidentity( z ) { var v = addon( z ); return new Complex128( v.re, v.im ); } @@ -55,4 +55,4 @@ function cidentify( z ) { // EXPORTS // -module.exports = cidentify; +module.exports = cidentity; diff --git a/base/special/cidentity/src/main.c b/base/special/cidentity/src/main.c index f11c420d7..bbe1c0d3a 100644 --- a/base/special/cidentity/src/main.c +++ b/base/special/cidentity/src/main.c @@ -27,16 +27,16 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( 3.0, 3.0 ); * stdlib_complex128_t out = stdlib_base_cidentity( z ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns 3.0 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns 3.0 */ diff --git a/base/special/cidentity/test/test.js b/base/special/cidentity/test/test.js index 9dd62945e..4fd4a70e8 100644 --- a/base/special/cidentity/test/test.js +++ b/base/special/cidentity/test/test.js @@ -27,8 +27,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var PINF = require( '@stdlib/constants/float64/pinf' ); var NINF = require( '@stdlib/constants/float64/ninf' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cidentity = require( './../lib' ); diff --git a/base/special/cidentity/test/test.native.js b/base/special/cidentity/test/test.native.js index bef92d329..5c728acc8 100644 --- a/base/special/cidentity/test/test.native.js +++ b/base/special/cidentity/test/test.native.js @@ -28,8 +28,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var PINF = require( '@stdlib/constants/float64/pinf' ); var NINF = require( '@stdlib/constants/float64/ninf' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/special/cidentityf/README.md b/base/special/cidentityf/README.md index 2b432b631..868dc1639 100644 --- a/base/special/cidentityf/README.md +++ b/base/special/cidentityf/README.md @@ -59,8 +59,8 @@ Evaluates the [identity function][identity-function] for a single-precision [com ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float32/real' ); +var imag = require( '@stdlib/complex/float32/imag' ); var v = cidentityf( new Complex64( -1.0, 2.0 ) ); // returns diff --git a/base/special/cidentityf/benchmark/benchmark.js b/base/special/cidentityf/benchmark/benchmark.js index b9a8e7d7c..2275a3fc6 100644 --- a/base/special/cidentityf/benchmark/benchmark.js +++ b/base/special/cidentityf/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float32/real' ); +var imag = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var cidentityf = require( './../lib' ); diff --git a/base/special/cidentityf/docs/repl.txt b/base/special/cidentityf/docs/repl.txt index eecc192a1..bcb5136ec 100644 --- a/base/special/cidentityf/docs/repl.txt +++ b/base/special/cidentityf/docs/repl.txt @@ -17,9 +17,9 @@ -------- > var v = {{alias}}( new {{alias:@stdlib/complex/float32/ctor}}( -1.0, 2.0 ) ) - > var re = {{alias:@stdlib/complex/real}}( v ) + > var re = {{alias:@stdlib/complex/float32/real}}( v ) -1.0 - > var img = {{alias:@stdlib/complex/imag}}( v ) + > var img = {{alias:@stdlib/complex/float32/imag}}( v ) 2.0 See Also diff --git a/base/special/cidentityf/docs/types/index.d.ts b/base/special/cidentityf/docs/types/index.d.ts index 3a5db06e0..2f2cea0b6 100644 --- a/base/special/cidentityf/docs/types/index.d.ts +++ b/base/special/cidentityf/docs/types/index.d.ts @@ -30,8 +30,8 @@ import { Complex64 } from '@stdlib/types/complex'; * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float32/real' ); +* var imag = require( '@stdlib/complex/float32/imag' ); * * var v = cidentityf( new Complex64( -1.0, 2.0 ) ); * // returns diff --git a/base/special/cidentityf/lib/index.js b/base/special/cidentityf/lib/index.js index c294cef0a..2dd4bc131 100644 --- a/base/special/cidentityf/lib/index.js +++ b/base/special/cidentityf/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float32/real' ); +* var imag = require( '@stdlib/complex/float32/imag' ); * var cidentityf = require( '@stdlib/math/base/special/cidentityf' ); * * var v = cidentityf( new Complex64( -1.0, 2.0 ) ); diff --git a/base/special/cidentityf/lib/main.js b/base/special/cidentityf/lib/main.js index f21bc53d5..500e8a29b 100644 --- a/base/special/cidentityf/lib/main.js +++ b/base/special/cidentityf/lib/main.js @@ -28,8 +28,8 @@ * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float32/real' ); +* var imag = require( '@stdlib/complex/float32/imag' ); * * var v = cidentityf( new Complex64( -1.0, 2.0 ) ); * // returns diff --git a/base/special/cidentityf/test/test.js b/base/special/cidentityf/test/test.js index 8a5360c77..858aee2af 100644 --- a/base/special/cidentityf/test/test.js +++ b/base/special/cidentityf/test/test.js @@ -27,8 +27,8 @@ var isnanf = require( './../../../../base/assert/is-nanf' ); var PINF = require( '@stdlib/constants/float32/pinf' ); var NINF = require( '@stdlib/constants/float32/ninf' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float32/real' ); +var imag = require( '@stdlib/complex/float32/imag' ); var cidentityf = require( './../lib' ); diff --git a/base/special/cinv/README.md b/base/special/cinv/README.md index 65413fe09..5d5daac27 100644 --- a/base/special/cinv/README.md +++ b/base/special/cinv/README.md @@ -53,8 +53,8 @@ Computes the inverse of a double-precision complex floating-point number. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var v = cinv( new Complex128( 2.0, 4.0 ) ); // returns @@ -129,17 +129,17 @@ Computes the inverse of a double-precision complex floating-point number. ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( 2.0, 4.0 ); stdlib_complex128_t out = stdlib_base_cinv( z ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns 0.1 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns -0.2 ``` diff --git a/base/special/cinv/benchmark/benchmark.js b/base/special/cinv/benchmark/benchmark.js index 2dddc7d42..b6ab239eb 100644 --- a/base/special/cinv/benchmark/benchmark.js +++ b/base/special/cinv/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var cinv = require( './../lib' ); diff --git a/base/special/cinv/benchmark/benchmark.native.js b/base/special/cinv/benchmark/benchmark.native.js index 7ab83533f..d6f90896f 100644 --- a/base/special/cinv/benchmark/benchmark.native.js +++ b/base/special/cinv/benchmark/benchmark.native.js @@ -24,8 +24,8 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/special/cinv/docs/repl.txt b/base/special/cinv/docs/repl.txt index d3ce8df0c..cdc0699c7 100644 --- a/base/special/cinv/docs/repl.txt +++ b/base/special/cinv/docs/repl.txt @@ -16,9 +16,9 @@ -------- > var v = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( 2.0, 4.0 ) ) - > var re = {{alias:@stdlib/complex/real}}( v ) + > var re = {{alias:@stdlib/complex/float64/real}}( v ) 0.1 - > var im = {{alias:@stdlib/complex/imag}}( v ) + > var im = {{alias:@stdlib/complex/float64/imag}}( v ) -0.2 See Also diff --git a/base/special/cinv/docs/types/index.d.ts b/base/special/cinv/docs/types/index.d.ts index 54934a24c..8331e987c 100644 --- a/base/special/cinv/docs/types/index.d.ts +++ b/base/special/cinv/docs/types/index.d.ts @@ -30,8 +30,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cinv( new Complex128( 2.0, 4.0 ) ); * // returns diff --git a/base/special/cinv/lib/index.js b/base/special/cinv/lib/index.js index baa7674a4..dba5a250e 100644 --- a/base/special/cinv/lib/index.js +++ b/base/special/cinv/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cinv = require( '@stdlib/math/base/special/cinv' ); * * var v = cinv( new Complex128( 2.0, 4.0 ) ); diff --git a/base/special/cinv/lib/main.js b/base/special/cinv/lib/main.js index 01bc69d94..8cc01770c 100644 --- a/base/special/cinv/lib/main.js +++ b/base/special/cinv/lib/main.js @@ -26,8 +26,8 @@ var FLOAT64_BIGGEST = require( '@stdlib/constants/float64/max' ); var FLOAT64_SMALLEST = require( '@stdlib/constants/float64/smallest-normal' ); var EPS = require( '@stdlib/constants/float64/eps' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // VARIABLES // @@ -51,8 +51,8 @@ var RECIP_EPS_SQR = 2.0 / ( EPS * EPS ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cinv( new Complex128( 2.0, 4.0 ) ); * // returns diff --git a/base/special/cinv/lib/native.js b/base/special/cinv/lib/native.js index 4b506f771..03a2a1211 100644 --- a/base/special/cinv/lib/native.js +++ b/base/special/cinv/lib/native.js @@ -35,8 +35,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cinv( new Complex128( 2.0, 4.0 ) ); * // returns diff --git a/base/special/cinv/src/main.c b/base/special/cinv/src/main.c index c10b44576..f6ede8d3c 100644 --- a/base/special/cinv/src/main.c +++ b/base/special/cinv/src/main.c @@ -47,17 +47,17 @@ Computes the inverse of a double-precision complex floating-point number. * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( 2.0, 4.0 ); * * stdlib_complex128_t out = stdlib_base_cinv( z ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns 0.1 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns -0.2 */ stdlib_complex128_t stdlib_base_cinv( const stdlib_complex128_t z ) { diff --git a/base/special/cinv/test/test.js b/base/special/cinv/test/test.js index 4248aa67b..645c5d97a 100644 --- a/base/special/cinv/test/test.js +++ b/base/special/cinv/test/test.js @@ -29,8 +29,8 @@ var EPS = require( '@stdlib/constants/float64/eps' ); var PINF = require( '@stdlib/constants/float64/pinf' ); var NINF = require( '@stdlib/constants/float64/ninf' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cinv = require( './../lib' ); diff --git a/base/special/cinv/test/test.native.js b/base/special/cinv/test/test.native.js index 70cdbc7ff..e5fe1a82e 100644 --- a/base/special/cinv/test/test.native.js +++ b/base/special/cinv/test/test.native.js @@ -30,8 +30,8 @@ var EPS = require( '@stdlib/constants/float64/eps' ); var PINF = require( '@stdlib/constants/float64/pinf' ); var NINF = require( '@stdlib/constants/float64/ninf' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/special/cphase/README.md b/base/special/cphase/README.md index b98974f6b..a13c6391b 100644 --- a/base/special/cphase/README.md +++ b/base/special/cphase/README.md @@ -109,8 +109,8 @@ Computes the [argument][complex-number-argument] of a double-precision complex f ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( 5.0, 3.0 ); double out = stdlib_base_cphase( z ); diff --git a/base/special/cphase/lib/main.js b/base/special/cphase/lib/main.js index 76ae1bbcf..7be013111 100644 --- a/base/special/cphase/lib/main.js +++ b/base/special/cphase/lib/main.js @@ -21,8 +21,8 @@ // MODULES // var atan2 = require( './../../../../base/special/atan2' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // diff --git a/base/special/cphase/src/main.c b/base/special/cphase/src/main.c index a5f4f32dc..9c9bfbd16 100644 --- a/base/special/cphase/src/main.c +++ b/base/special/cphase/src/main.c @@ -29,8 +29,8 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( 5.0, 3.0 ); * double out = stdlib_base_cphase( z ); diff --git a/base/special/cpolar/README.md b/base/special/cpolar/README.md index f6039e5e5..e040b87a9 100644 --- a/base/special/cpolar/README.md +++ b/base/special/cpolar/README.md @@ -78,8 +78,8 @@ var bool = ( v === out ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var randu = require( '@stdlib/random/base/randu' ); var round = require( '@stdlib/math/base/special/round' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cpolar = require( '@stdlib/math/base/special/cpolar' ); var re; @@ -134,8 +134,8 @@ Computes the [absolute value][@stdlib/math/base/special/cabs] and [phase][@stdli ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( 5.0, 3.0 ); double cabs; diff --git a/base/special/cpolar/src/main.c b/base/special/cpolar/src/main.c index 23a4ab40d..e9d3c245e 100644 --- a/base/special/cpolar/src/main.c +++ b/base/special/cpolar/src/main.c @@ -31,8 +31,8 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( 5.0, 3.0 ); * double cabs; diff --git a/base/special/cround/README.md b/base/special/cround/README.md index 1b1f9f2aa..9fe230b28 100644 --- a/base/special/cround/README.md +++ b/base/special/cround/README.md @@ -36,8 +36,8 @@ Rounds each component of a double-precision complex floating-point number to the ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var v = cround( new Complex128( -4.2, 5.5 ) ); // returns @@ -137,17 +137,17 @@ Rounds each component of a double-precision complex floating-point number to the ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( -4.2, 5.5 ); stdlib_complex128_t out = stdlib_base_cround( z ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns -4.0 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns 6.0 ``` diff --git a/base/special/cround/benchmark/benchmark.js b/base/special/cround/benchmark/benchmark.js index 6deec9599..bab506bf7 100644 --- a/base/special/cround/benchmark/benchmark.js +++ b/base/special/cround/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var cround = require( './../lib' ); diff --git a/base/special/cround/benchmark/benchmark.native.js b/base/special/cround/benchmark/benchmark.native.js index 9f4fbc9a6..7c845785d 100644 --- a/base/special/cround/benchmark/benchmark.native.js +++ b/base/special/cround/benchmark/benchmark.native.js @@ -25,7 +25,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/special/cround/docs/repl.txt b/base/special/cround/docs/repl.txt index 08aae4587..be3255254 100644 --- a/base/special/cround/docs/repl.txt +++ b/base/special/cround/docs/repl.txt @@ -17,9 +17,9 @@ -------- > var v = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( 5.5, 3.3 ) ) - > var re = {{alias:@stdlib/complex/real}}( v ) + > var re = {{alias:@stdlib/complex/float64/real}}( v ) 6.0 - > var im = {{alias:@stdlib/complex/imag}}( v ) + > var im = {{alias:@stdlib/complex/float64/imag}}( v ) 3.0 See Also diff --git a/base/special/cround/docs/types/index.d.ts b/base/special/cround/docs/types/index.d.ts index 7903b217a..51fd38a7a 100644 --- a/base/special/cround/docs/types/index.d.ts +++ b/base/special/cround/docs/types/index.d.ts @@ -30,8 +30,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cceil( new Complex128( -4.2, 5.5 ) ); * // returns diff --git a/base/special/cround/lib/index.js b/base/special/cround/lib/index.js index 119ec637f..481881ffa 100644 --- a/base/special/cround/lib/index.js +++ b/base/special/cround/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cround = require( '@stdlib/math/base/special/cround' ); * * var v = cround( new Complex128( -4.2, 5.5 ) ); diff --git a/base/special/cround/lib/main.js b/base/special/cround/lib/main.js index f997c3e26..64cd3d606 100644 --- a/base/special/cround/lib/main.js +++ b/base/special/cround/lib/main.js @@ -22,8 +22,8 @@ var Complex128 = require( '@stdlib/complex/float64/ctor' ); var round = require( './../../../../base/special/round' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // @@ -36,8 +36,8 @@ var imag = require( '@stdlib/complex/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cround( new Complex128( -4.2, 5.5 ) ); * // returns diff --git a/base/special/cround/lib/native.js b/base/special/cround/lib/native.js index 58416ad53..8510309c6 100644 --- a/base/special/cround/lib/native.js +++ b/base/special/cround/lib/native.js @@ -35,8 +35,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cround( new Complex128( -4.2, 5.5 ) ); * // returns diff --git a/base/special/cround/src/main.c b/base/special/cround/src/main.c index cb4ab647e..125eda864 100644 --- a/base/special/cround/src/main.c +++ b/base/special/cround/src/main.c @@ -29,17 +29,17 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( -4.2, 5.5 ); * * stdlib_complex128_t out = stdlib_base_cround( z ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns -5.0 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns 6.0 */ stdlib_complex128_t stdlib_base_cround( const stdlib_complex128_t z ) { diff --git a/base/special/cround/test/test.js b/base/special/cround/test/test.js index eef0598ce..a1c133fe2 100644 --- a/base/special/cround/test/test.js +++ b/base/special/cround/test/test.js @@ -27,8 +27,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cround = require( './../lib' ); diff --git a/base/special/cround/test/test.native.js b/base/special/cround/test/test.native.js index 9dd1f582c..dfb0d19d1 100644 --- a/base/special/cround/test/test.native.js +++ b/base/special/cround/test/test.native.js @@ -28,8 +28,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/special/croundn/README.md b/base/special/croundn/README.md index 4f55d7eec..ccce9054f 100644 --- a/base/special/croundn/README.md +++ b/base/special/croundn/README.md @@ -36,8 +36,8 @@ Rounds each component of a double-precision complex floating-point number to the ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var v = croundn( new Complex128( -3.141592653589793, 3.141592653589793 ), -2 ); // returns @@ -88,8 +88,8 @@ im = imag( v ); ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); - var real = require( '@stdlib/complex/real' ); - var imag = require( '@stdlib/complex/imag' ); + var real = require( '@stdlib/complex/float64/real' ); + var imag = require( '@stdlib/complex/float64/imag' ); var x = 0.2 + 0.1; // returns 0.30000000000000004 @@ -170,17 +170,17 @@ Rounds each component of a double-precision complex floating-point number to the ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( -3.141592653589793, 3.141592653589793 ); stdlib_complex128_t out = stdlib_base_croundn( z ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns -3.14 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns 3.14 ``` diff --git a/base/special/croundn/benchmark/benchmark.js b/base/special/croundn/benchmark/benchmark.js index ddcbb0bd9..7d9f4ee68 100644 --- a/base/special/croundn/benchmark/benchmark.js +++ b/base/special/croundn/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var croundn = require( './../lib' ); diff --git a/base/special/croundn/benchmark/benchmark.native.js b/base/special/croundn/benchmark/benchmark.native.js index 59dee608c..399cc529b 100644 --- a/base/special/croundn/benchmark/benchmark.native.js +++ b/base/special/croundn/benchmark/benchmark.native.js @@ -25,7 +25,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/special/croundn/docs/repl.txt b/base/special/croundn/docs/repl.txt index 08f0e86f3..1086f99d9 100644 --- a/base/special/croundn/docs/repl.txt +++ b/base/special/croundn/docs/repl.txt @@ -23,9 +23,9 @@ -------- > var v = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( 5.555, -3.336 ), -2 ) - > var re = {{alias:@stdlib/complex/real}}( v ) + > var re = {{alias:@stdlib/complex/float64/real}}( v ) 5.56 - > var im = {{alias:@stdlib/complex/imag}}( v ) + > var im = {{alias:@stdlib/complex/float64/imag}}( v ) -3.34 See Also diff --git a/base/special/croundn/docs/types/index.d.ts b/base/special/croundn/docs/types/index.d.ts index 27f3693cf..299d4e78f 100644 --- a/base/special/croundn/docs/types/index.d.ts +++ b/base/special/croundn/docs/types/index.d.ts @@ -35,8 +35,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cceil( new Complex128( 5.555, -3.333 ) ); * // returns diff --git a/base/special/croundn/lib/index.js b/base/special/croundn/lib/index.js index 32cb1cf67..ed81c3025 100644 --- a/base/special/croundn/lib/index.js +++ b/base/special/croundn/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var croundn = require( '@stdlib/math/base/special/croundn' ); * * var v = croundn( new Complex128( -3.141592653589793, 3.141592653589793 ), -2 ); diff --git a/base/special/croundn/lib/main.js b/base/special/croundn/lib/main.js index 643ebce23..604ecf0bd 100644 --- a/base/special/croundn/lib/main.js +++ b/base/special/croundn/lib/main.js @@ -22,8 +22,8 @@ var Complex128 = require( '@stdlib/complex/float64/ctor' ); var roundn = require( './../../../../base/special/roundn' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // @@ -37,8 +37,8 @@ var imag = require( '@stdlib/complex/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = croundn( new Complex128( -3.141592653589793, 3.141592653589793 ), -2 ); * // returns diff --git a/base/special/croundn/lib/native.js b/base/special/croundn/lib/native.js index 4808cbe5a..c3bc31501 100644 --- a/base/special/croundn/lib/native.js +++ b/base/special/croundn/lib/native.js @@ -36,8 +36,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = croundn( new Complex128( -3.141592653589793, 3.141592653589793 ), -2 ); * // returns diff --git a/base/special/croundn/src/main.c b/base/special/croundn/src/main.c index 05264a573..a87964958 100644 --- a/base/special/croundn/src/main.c +++ b/base/special/croundn/src/main.c @@ -30,17 +30,17 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( -3.141592653589793, 3.141592653589793 ); * * stdlib_complex128_t out = stdlib_base_croundn( z, -2 ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns 3.14 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns -3.14 */ stdlib_complex128_t stdlib_base_croundn( const stdlib_complex128_t z, const int32_t n ) { diff --git a/base/special/croundn/test/test.js b/base/special/croundn/test/test.js index 39966f2bd..6faec4b7f 100644 --- a/base/special/croundn/test/test.js +++ b/base/special/croundn/test/test.js @@ -33,8 +33,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var croundn = require( './../lib' ); diff --git a/base/special/croundn/test/test.native.js b/base/special/croundn/test/test.native.js index 1d392335b..9265d9393 100644 --- a/base/special/croundn/test/test.native.js +++ b/base/special/croundn/test/test.native.js @@ -34,8 +34,8 @@ var isnan = require( './../../../../base/assert/is-nan' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/special/csignum/README.md b/base/special/csignum/README.md index 72968beea..b549a5ef4 100644 --- a/base/special/csignum/README.md +++ b/base/special/csignum/README.md @@ -46,8 +46,8 @@ Evaluates the [signum][signum] function of a double-precision complex floating-p ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var v = csignum( new Complex128( -4.2, 5.5 ) ); // returns @@ -148,17 +148,17 @@ Evaluates the [signum][signum] function of a double-precision complex floating-p ```c #include "stdlib/complex/float64/ctor.h" -#include "stdlib/complex/real.h" -#include "stdlib/complex/imag.h" +#include "stdlib/complex/float64/real.h" +#include "stdlib/complex/float64/imag.h" stdlib_complex128_t z = stdlib_complex128( -4.2, 5.5 ); stdlib_complex128_t out = stdlib_base_csignum( z ); -double re = stdlib_real( out ); +double re = stdlib_complex128_real( out ); // returns -0.6069136033622302 -double im = stdlib_imag( out ); +double im = stdlib_complex128_imag( out ); // returns 0.79476781392673 ``` diff --git a/base/special/csignum/benchmark/benchmark.js b/base/special/csignum/benchmark/benchmark.js index f9d63ce3d..6bbf42828 100644 --- a/base/special/csignum/benchmark/benchmark.js +++ b/base/special/csignum/benchmark/benchmark.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var csignum = require( './../lib' ); diff --git a/base/special/csignum/benchmark/benchmark.native.js b/base/special/csignum/benchmark/benchmark.native.js index fe02b6877..028341d0b 100644 --- a/base/special/csignum/benchmark/benchmark.native.js +++ b/base/special/csignum/benchmark/benchmark.native.js @@ -25,7 +25,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( './../../../../base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; diff --git a/base/special/csignum/docs/repl.txt b/base/special/csignum/docs/repl.txt index 1a830c25b..cc72c0b36 100644 --- a/base/special/csignum/docs/repl.txt +++ b/base/special/csignum/docs/repl.txt @@ -17,9 +17,9 @@ -------- > var v = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( -4.2, 5.5 ) ) - > var re = {{alias:@stdlib/complex/real}}( v ) + > var re = {{alias:@stdlib/complex/float64/real}}( v ) -0.6069136033622302 - > var im = {{alias:@stdlib/complex/imag}}( v ) + > var im = {{alias:@stdlib/complex/float64/imag}}( v ) 0.79476781392673 See Also diff --git a/base/special/csignum/docs/types/index.d.ts b/base/special/csignum/docs/types/index.d.ts index f5e8a64f7..28fed2dbf 100644 --- a/base/special/csignum/docs/types/index.d.ts +++ b/base/special/csignum/docs/types/index.d.ts @@ -30,8 +30,8 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cceil( new Complex128( -4.2, 5.5 ) ); * // returns diff --git a/base/special/csignum/lib/index.js b/base/special/csignum/lib/index.js index 885450cbe..726e6bb01 100644 --- a/base/special/csignum/lib/index.js +++ b/base/special/csignum/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var csignum = require( '@stdlib/math/base/special/csignum' ); * * var v = csignum( new Complex128( -4.2, 5.5 ) ); diff --git a/base/special/csignum/lib/main.js b/base/special/csignum/lib/main.js index 0dfcb4203..cdafdd1ef 100644 --- a/base/special/csignum/lib/main.js +++ b/base/special/csignum/lib/main.js @@ -21,8 +21,8 @@ // MODULES // var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cabs = require( './../../../../base/special/cabs' ); @@ -36,8 +36,8 @@ var cabs = require( './../../../../base/special/cabs' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = csignum( new Complex128( -4.2, 5.5 ) ); * // returns diff --git a/base/special/csignum/lib/native.js b/base/special/csignum/lib/native.js index 5a6df9f0d..7775ec14c 100644 --- a/base/special/csignum/lib/native.js +++ b/base/special/csignum/lib/native.js @@ -35,8 +35,8 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = csignum( new Complex128( -4.2, 5.5 ) ); * // returns diff --git a/base/special/csignum/src/main.c b/base/special/csignum/src/main.c index a75f4b3a0..da47a96a3 100644 --- a/base/special/csignum/src/main.c +++ b/base/special/csignum/src/main.c @@ -29,17 +29,17 @@ * * @example * #include "stdlib/complex/float64/ctor.h" -* #include "stdlib/complex/real.h" -* #include "stdlib/complex/imag.h" +* #include "stdlib/complex/float64/real.h" +* #include "stdlib/complex/float64/imag.h" * * stdlib_complex128_t z = stdlib_complex128( -4.2, 5.5 ); * * stdlib_complex128_t out = stdlib_base_csignum( z ); * -* double re = stdlib_real( out ); +* double re = stdlib_complex128_real( out ); * // returns -0.6069136033622302 * -* double im = stdlib_imag( out ); +* double im = stdlib_complex128_imag( out ); * // returns 0.79476781392673 */ stdlib_complex128_t stdlib_base_csignum( const stdlib_complex128_t z ) { diff --git a/base/special/csignum/test/test.js b/base/special/csignum/test/test.js index 50faf24be..ffc1ae59d 100644 --- a/base/special/csignum/test/test.js +++ b/base/special/csignum/test/test.js @@ -29,8 +29,8 @@ var abs = require( './../../../../base/special/abs' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var csignum = require( './../lib' ); diff --git a/base/special/csignum/test/test.native.js b/base/special/csignum/test/test.native.js index c6cefaf46..f15316a00 100644 --- a/base/special/csignum/test/test.native.js +++ b/base/special/csignum/test/test.native.js @@ -30,8 +30,8 @@ var abs = require( './../../../../base/special/abs' ); var isNegativeZero = require( './../../../../base/assert/is-negative-zero' ); var isPositiveZero = require( './../../../../base/assert/is-positive-zero' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/special/docs/types/index.d.ts b/base/special/docs/types/index.d.ts index a2eec3479..5249cf24b 100644 --- a/base/special/docs/types/index.d.ts +++ b/base/special/docs/types/index.d.ts @@ -2007,8 +2007,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var v = ns.cceil( new Complex128( -1.5, 2.5 ) ); * // returns @@ -2029,8 +2029,8 @@ interface Namespace { * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var v = ns.cceilf( new Complex64( -1.5, 2.5 ) ); * // returns @@ -2052,8 +2052,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var v = ns.cceiln( new Complex128( 5.555, -3.333 ), -2 ); * // returns @@ -2074,8 +2074,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( 0.0, 0.0 ); * // returns @@ -2090,8 +2090,8 @@ interface Namespace { * // returns 0.0 * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var z = new Complex128( 1.0, 0.0 ); * // returns @@ -2286,8 +2286,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var v = ns.cexp( new Complex128( 0.0, 0.0 ) ); * // returns @@ -2300,8 +2300,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var v = ns.cexp( new Complex128( 1.0, 0.0 ) ); * // returns @@ -2323,8 +2323,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var v = ns.cflipsign( new Complex128( -4.2, 5.5 ), -55.0 ); * // returns @@ -2346,8 +2346,8 @@ interface Namespace { * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var v = ns.cflipsignf( new Complex64( -4.0, 5.0 ), -55.0 ); * // returns @@ -2368,8 +2368,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var v = ns.cfloor( new Complex128( 5.5, 3.3 ) ); * // returns @@ -2391,8 +2391,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cfloor( new Complex128( 5.555, -3.333 ), -2 ); * // returns @@ -2413,8 +2413,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var v = ns.cidentity( new Complex128( -1.0, 2.0 ) ); * // returns @@ -2435,8 +2435,8 @@ interface Namespace { * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var v = ns.cidentityf( new Complex64( -1.0, 2.0 ) ); * // returns @@ -2457,8 +2457,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var v = ns.cinv( new Complex128( 2.0, 4.0 ) ); * // returns @@ -2883,8 +2883,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cceil( new Complex128( -4.2, 5.5 ) ); * // returns @@ -2910,8 +2910,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cceil( new Complex128( 5.555, -3.333 ) ); * // returns @@ -3012,8 +3012,8 @@ interface Namespace { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var real = require( '@stdlib/complex/float64/real' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cceil( new Complex128( -4.2, 5.5 ) ); * // returns