From f8516821341753bd3a664b8eb99c0e7db20d16cb Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 16 Jul 2024 10:44:00 +0000 Subject: [PATCH] Auto-generated commit --- .gitattributes | 29 +++++-- .github/workflows/productionize.yml | 3 - .github/workflows/publish.yml | 5 +- .github/workflows/test.yml | 1 - .github/workflows/test_bundles.yml | 3 - .github/workflows/test_coverage.yml | 1 - .github/workflows/test_install.yml | 1 - CHANGELOG.md | 121 +++++++++++++++++++++++++++- CONTRIBUTORS | 11 ++- README.md | 12 +-- benchmark/benchmark.js | 2 +- benchmark/c/native/benchmark.c | 2 +- dist/index.js.map | 2 +- docs/repl.txt | 2 +- docs/types/index.d.ts | 2 +- docs/types/test.ts | 2 +- examples/c/example.c | 2 +- examples/index.js | 2 +- include/stdlib/complex/imag.h | 2 +- lib/index.js | 2 +- lib/main.js | 2 +- manifest.json | 2 +- package.json | 2 +- src/main.c | 4 +- test/test.js | 2 +- 25 files changed, 179 insertions(+), 40 deletions(-) diff --git a/.gitattributes b/.gitattributes index 10a16e6..1c88e69 100644 --- a/.gitattributes +++ b/.gitattributes @@ -40,10 +40,27 @@ *.mov binary # Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false +/lib/node_modules/** -linguist-vendored -linguist-generated -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false +# Configure directories which should *not* be included in GitHub language statistics: +/deps/** linguist-vendored +/dist/** linguist-generated +/workshops/** linguist-vendored + +benchmark/** linguist-vendored +docs/* linguist-documentation +etc/** linguist-vendored +examples/** linguist-documentation +scripts/** linguist-vendored +test/** linguist-vendored +tools/** linguist-vendored + +# Configure files which should *not* be included in GitHub language statistics: +Makefile linguist-vendored +*.mk linguist-vendored +*.jl linguist-vendored +*.py linguist-vendored +*.R linguist-vendored + +# Configure files which should be included in GitHub language statistics: +docs/types/*.d.ts -linguist-documentation diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml index ec90164..f92a6c5 100644 --- a/.github/workflows/productionize.yml +++ b/.github/workflows/productionize.yml @@ -344,7 +344,6 @@ jobs: uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 with: status: ${{ job.status }} - steps: ${{ toJson(steps) }} channel: '#npm-ci' if: failure() @@ -518,7 +517,6 @@ jobs: uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 with: status: ${{ job.status }} - steps: ${{ toJson(steps) }} channel: '#npm-ci' if: failure() @@ -698,7 +696,6 @@ jobs: uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 with: status: ${{ job.status }} - steps: ${{ toJson(steps) }} channel: '#npm-ci' if: failure() diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3eec50e..b1d4bb8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -94,6 +94,10 @@ jobs: # Replace branch in README.md link definitions for badges with the new version: find . -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/branch([=:])[^ ]+/branch\1v${NEW_VERSION}/g" + # Rewrite CHANGELOG.md to replace "Unreleased" with the new version: + sed -Ei "s/Unreleased/${NEW_VERSION}/g" CHANGELOG.md + sed -Ei "s/unreleased/v${NEW_VERSION}/g" CHANGELOG.md + # Create a new commit and tag: git add package.json README.md git commit -m "Release v${NEW_VERSION}" @@ -218,7 +222,6 @@ jobs: uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 with: status: ${{ job.status }} - steps: ${{ toJson(steps) }} channel: '#npm-ci' if: failure() diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 31c3d2e..9017177 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -95,6 +95,5 @@ jobs: uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 with: status: ${{ job.status }} - steps: ${{ toJson(steps) }} channel: '#npm-ci' if: failure() diff --git a/.github/workflows/test_bundles.yml b/.github/workflows/test_bundles.yml index 6d77abd..5b5879a 100644 --- a/.github/workflows/test_bundles.yml +++ b/.github/workflows/test_bundles.yml @@ -94,7 +94,6 @@ jobs: uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 with: status: ${{ job.status }} - steps: ${{ toJson(steps) }} channel: '#npm-ci' if: failure() @@ -139,7 +138,6 @@ jobs: uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 with: status: ${{ job.status }} - steps: ${{ toJson(steps) }} channel: '#npm-ci' if: failure() @@ -184,6 +182,5 @@ jobs: uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 with: status: ${{ job.status }} - steps: ${{ toJson(steps) }} channel: '#npm-ci' if: failure() diff --git a/.github/workflows/test_coverage.yml b/.github/workflows/test_coverage.yml index f4eda1e..2bcf0cd 100644 --- a/.github/workflows/test_coverage.yml +++ b/.github/workflows/test_coverage.yml @@ -119,7 +119,6 @@ jobs: uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 with: status: ${{ job.status }} - steps: ${{ toJson(steps) }} channel: '#npm-ci' if: failure() diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index 52137eb..3be13b9 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -81,6 +81,5 @@ jobs: uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 with: status: ${{ job.status }} - steps: ${{ toJson(steps) }} channel: '#npm-ci' if: failure() diff --git a/CHANGELOG.md b/CHANGELOG.md index 047c040..e42e2d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,4 +2,123 @@ > Package changelog. -See [GitHub Releases](https://github.com/stdlib-js/complex-imag/releases) for the changelog. \ No newline at end of file +
+ +## Unreleased (2024-07-16) + +
+ +### Bug Fixes + +- [`cf3f92e`](https://github.com/stdlib-js/stdlib/commit/cf3f92eddd20ec1a4106c8a34f7d7705a9a99dbc) - update include paths + +
+ + + +
+ +### Commits + +
+ +- [`8908bda`](https://github.com/stdlib-js/stdlib/commit/8908bda11588f80edf375466ae9e84a3d70cf7d3) - **refactor:** update paths _(by Athan Reines)_ +- [`038b199`](https://github.com/stdlib-js/stdlib/commit/038b199c32842c02cf678e3ae8305a17aacda05e) - **docs:** update paths _(by Athan Reines)_ +- [`cf3f92e`](https://github.com/stdlib-js/stdlib/commit/cf3f92eddd20ec1a4106c8a34f7d7705a9a99dbc) - **fix:** update include paths _(by Athan Reines)_ +- [`75d4f83`](https://github.com/stdlib-js/stdlib/commit/75d4f83cb85610d23a04dc21a03f8075f6d3665f) - **refactor:** update require and include paths _(by Athan Reines)_ + +
+ +
+ + + +
+ +### Contributors + +A total of 1 person contributed to this release. Thank you to this contributor: + +- Athan Reines + +
+ + + +
+ + + +
+ +## 0.2.1 (2024-02-22) + +
+ +### Features + +- [`9768c66`](https://github.com/stdlib-js/stdlib/commit/9768c662b6e255b70ba9fb0faa989ea1eea71f66) - update minimum TypeScript version + +
+ + + +
+ +### Bug Fixes + +- [`32a2827`](https://github.com/stdlib-js/stdlib/commit/32a282799ffd272d2a0554e81755a14923564e51) - update import paths for complex type defs + +
+ + + +
+ +### BREAKING CHANGES + +- [`9768c66`](https://github.com/stdlib-js/stdlib/commit/9768c662b6e255b70ba9fb0faa989ea1eea71f66): update minimum TypeScript version +- [`9768c66`](https://github.com/stdlib-js/stdlib/commit/9768c662b6e255b70ba9fb0faa989ea1eea71f66): update minimum TypeScript version to 4.1 + + - To migrate, users should upgrade their TypeScript version to at least version 4.1. + +
+ + + +
+ +### Commits + +
+ +- [`dea49e0`](https://github.com/stdlib-js/stdlib/commit/dea49e03ab5571233e3da26835a6a6d3256d5737) - **docs:** use single quotes in require calls instead of backticks _(by Philipp Burckhardt)_ +- [`1275ef7`](https://github.com/stdlib-js/stdlib/commit/1275ef713bc51293970cc01dcf92f6ec75134000) - **docs:** update links _(by Athan Reines)_ +- [`9768c66`](https://github.com/stdlib-js/stdlib/commit/9768c662b6e255b70ba9fb0faa989ea1eea71f66) - **feat:** update minimum TypeScript version _(by Philipp Burckhardt)_ +- [`32a2827`](https://github.com/stdlib-js/stdlib/commit/32a282799ffd272d2a0554e81755a14923564e51) - **fix:** update import paths for complex type defs _(by Athan Reines)_ +- [`07cc80b`](https://github.com/stdlib-js/stdlib/commit/07cc80b4aa930750251fc70c8b9afe72801da142) - **docs:** resolve C lint errors _(by Athan Reines)_ +- [`28e1c84`](https://github.com/stdlib-js/stdlib/commit/28e1c84390d88044883c9ef940a12f38d66ea3ef) - **docs:** resolve C lint errors _(by Athan Reines)_ + +
+ +
+ + + +
+ +### Contributors + +A total of 2 people contributed to this release. Thank you to the following contributors: + +- Athan Reines +- Philipp Burckhardt + +
+ + + +
+ + + diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 4500383..7ec15a7 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -5,6 +5,7 @@ Adarsh Palaskar Aditya Sapra AgPriyanshu18 <113460573+AgPriyanshu18@users.noreply.github.com> +Aleksandr <112382387+alextes90@users.noreply.github.com> Ali Salesi Aman Bhansali Amit Jimiwal @@ -18,6 +19,7 @@ Chinmay Joshi <86140365+JawHawk@users.noreply.github.com> Christopher Dambamuromo Dan Rose Daniel Killenberger +Daniel Yu <40680511+Daniel777y@users.noreply.github.com> Dominik Moritz Dorrin Sotoudeh EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com> @@ -25,6 +27,7 @@ Frank Kovacs Golden Kumar <103646877+AuenKr@users.noreply.github.com> Gunj Joshi Harshita Kalani +Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com> Jaimin Godhani <112328542+Jai0401@users.noreply.github.com> James Gelok Jaysukh Makvana @@ -60,6 +63,7 @@ Pushpendra Chandravanshi Raunak Kumar Gupta Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com> Ricky Reusser +Ridam Garg <67867319+RidamGarg@users.noreply.github.com> Robert Gislason Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com> Rutam <138517416+performant23@users.noreply.github.com> @@ -69,8 +73,11 @@ Seyyed Parsa Neshaei Shashank Shekhar Singh Shivam <11shivam00@gmail.com> Shraddheya Shendre +Shubh Mehta <93862397+Shubh942@users.noreply.github.com> Shubham Mishra -Snehil Shah <130062020+Snehil-Shah@users.noreply.github.com> +Sivam Das <100067002+Sivam2313@users.noreply.github.com> +Snehil Shah +Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com> Spandan Barve Stephannie JimĂ©nez Gacha Suraj kumar <125961509+kumarsuraj212003@users.noreply.github.com> @@ -79,8 +86,10 @@ Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com> Utkarsh Utkarsh Raj Varad Gupta +Xiaochuan Ye Yernar Yergaziyev naveen nishant-s7 <97207366+nishant-s7@users.noreply.github.com> orimiles5 <97595296+orimiles5@users.noreply.github.com> +rainn <88160429+AmCodesLame@users.noreply.github.com> rei2hu diff --git a/README.md b/README.md index f911a0e..ff485e5 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ var imag = require( '@stdlib/complex-imag' ); Returns the **imaginary** component of a double-precision complex floating-point number. ```javascript -var Complex128 = require( '@stdlib/complex-float64' ); +var Complex128 = require( '@stdlib/complex-float64-ctor' ); var z = new Complex128( 5.0, 3.0 ); var im = imag( z ); @@ -106,7 +106,7 @@ var im = imag( z ); ```javascript -var Complex128 = require( '@stdlib/complex-float64' ); +var Complex128 = require( '@stdlib/complex-float64-ctor' ); var randu = require( '@stdlib/random-base-randu' ); var round = require( '@stdlib/math-base-special-round' ); var imag = require( '@stdlib/complex-imag' ); @@ -159,7 +159,7 @@ for ( i = 0; i < 100; i++ ) { Returns the imaginary component of a double-precision complex floating-point number. ```c -#include "stdlib/complex/float64.h" +#include "stdlib/complex/float64/ctor.h" stdlib_complex128_t z = stdlib_complex128( 5.0, 2.0 ); @@ -197,7 +197,7 @@ double stdlib_imag( const stdlib_complex128_t z ); ```c #include "stdlib/complex/imag.h" -#include "stdlib/complex/float64.h" +#include "stdlib/complex/float64/ctor.h" #include int main( void ) { @@ -240,7 +240,7 @@ int main( void ) { ## See Also - [`@stdlib/complex-real`][@stdlib/complex/real]: return the real component of a double-precision complex floating-point number. -- [`@stdlib/complex-reim`][@stdlib/complex/reim]: return the real and imaginary components of a double-precision complex floating-point number. +- [`@stdlib/complex-float64/reim`][@stdlib/complex/float64/reim]: return the real and imaginary components of a double-precision complex floating-point number. @@ -322,7 +322,7 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. [@stdlib/complex/real]: https://github.com/stdlib-js/complex-real -[@stdlib/complex/reim]: https://github.com/stdlib-js/complex-reim +[@stdlib/complex/float64/reim]: https://github.com/stdlib-js/complex-float64-reim diff --git a/benchmark/benchmark.js b/benchmark/benchmark.js index 5b8757d..a4894f3 100644 --- a/benchmark/benchmark.js +++ b/benchmark/benchmark.js @@ -21,7 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench-harness' ); -var Complex128 = require( '@stdlib/complex-float64' ); +var Complex128 = require( '@stdlib/complex-float64-ctor' ); var randu = require( '@stdlib/random-base-randu' ); var isnan = require( '@stdlib/math-base-assert-is-nan' ); var pkg = require( './../package.json' ).name; diff --git a/benchmark/c/native/benchmark.c b/benchmark/c/native/benchmark.c index 569b9a0..0baeb91 100644 --- a/benchmark/c/native/benchmark.c +++ b/benchmark/c/native/benchmark.c @@ -20,7 +20,7 @@ * Benchmark `imag`. */ #include "stdlib/complex/imag.h" -#include "stdlib/complex/float64.h" +#include "stdlib/complex/float64/ctor.h" #include #include #include diff --git a/dist/index.js.map b/dist/index.js.map index 7a4e950..0fcaaed 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["../lib/main.js", "../lib/index.js"], - "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Returns the imaginary component of a double-precision complex floating-point number.\n*\n* @param {Complex} z - complex number\n* @returns {number} imaginary component\n*\n* @example\n* var Complex128 = require( '@stdlib/complex-float64' );\n*\n* var z = new Complex128( 5.0, 3.0 );\n*\n* var im = imag( z );\n* // returns 3.0\n*/\nfunction imag( z ) {\n\treturn z.im;\n}\n\n\n// EXPORTS //\n\nmodule.exports = imag;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Return the imaginary component of a double-precision complex floating-point number.\n*\n* @module @stdlib/complex-imag\n*\n* @example\n* var Complex128 = require( '@stdlib/complex-float64' );\n* var imag = require( '@stdlib/complex-imag' );\n*\n* var z = new Complex128( 5.0, 3.0 );\n*\n* var im = imag( z );\n* // returns 3.0\n*/\n\n// MODULES //\n\nvar main = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = main;\n"], + "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Returns the imaginary component of a double-precision complex floating-point number.\n*\n* @param {Complex} z - complex number\n* @returns {number} imaginary component\n*\n* @example\n* var Complex128 = require( '@stdlib/complex-float64-ctor' );\n*\n* var z = new Complex128( 5.0, 3.0 );\n*\n* var im = imag( z );\n* // returns 3.0\n*/\nfunction imag( z ) {\n\treturn z.im;\n}\n\n\n// EXPORTS //\n\nmodule.exports = imag;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Return the imaginary component of a double-precision complex floating-point number.\n*\n* @module @stdlib/complex-imag\n*\n* @example\n* var Complex128 = require( '@stdlib/complex-float64-ctor' );\n* var imag = require( '@stdlib/complex-imag' );\n*\n* var z = new Complex128( 5.0, 3.0 );\n*\n* var im = imag( z );\n* // returns 3.0\n*/\n\n// MODULES //\n\nvar main = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = main;\n"], "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAkCA,SAASC,EAAMC,EAAI,CAClB,OAAOA,EAAE,EACV,CAKAF,EAAO,QAAUC,ICJjB,IAAIE,EAAO,IAKX,OAAO,QAAUA", "names": ["require_main", "__commonJSMin", "exports", "module", "imag", "z", "main"] } diff --git a/docs/repl.txt b/docs/repl.txt index 9ff9aa3..2fd88fd 100644 --- a/docs/repl.txt +++ b/docs/repl.txt @@ -15,7 +15,7 @@ Examples -------- - > var z = new {{alias:@stdlib/complex/float64}}( 5.0, 3.0 ); + > var z = new {{alias:@stdlib/complex/float64/ctor}}( 5.0, 3.0 ); > var im = {{alias}}( z ) 3.0 diff --git a/docs/types/index.d.ts b/docs/types/index.d.ts index 20eab06..1be45f1 100644 --- a/docs/types/index.d.ts +++ b/docs/types/index.d.ts @@ -29,7 +29,7 @@ import { Complex128 } from '@stdlib/types/complex'; * @returns imaginary component * * @example -* var Complex128 = require( '@stdlib/complex-float64' ); +* var Complex128 = require( '@stdlib/complex-float64-ctor' ); * * var z = new Complex128( 5.0, 3.0 ); * diff --git a/docs/types/test.ts b/docs/types/test.ts index 81022f1..7ab27a5 100644 --- a/docs/types/test.ts +++ b/docs/types/test.ts @@ -16,7 +16,7 @@ * limitations under the License. */ -import Complex128 = require( '@stdlib/complex-float64' ); +import Complex128 = require( '@stdlib/complex-float64-ctor' ); import imag = require( './index' ); diff --git a/examples/c/example.c b/examples/c/example.c index f945c08..f98aebb 100644 --- a/examples/c/example.c +++ b/examples/c/example.c @@ -17,7 +17,7 @@ */ #include "stdlib/complex/imag.h" -#include "stdlib/complex/float64.h" +#include "stdlib/complex/float64/ctor.h" #include int main( void ) { diff --git a/examples/index.js b/examples/index.js index 9e0e98c..71792be 100644 --- a/examples/index.js +++ b/examples/index.js @@ -18,7 +18,7 @@ 'use strict'; -var Complex128 = require( '@stdlib/complex-float64' ); +var Complex128 = require( '@stdlib/complex-float64-ctor' ); var randu = require( '@stdlib/random-base-randu' ); var round = require( '@stdlib/math-base-special-round' ); var imag = require( './../lib' ); diff --git a/include/stdlib/complex/imag.h b/include/stdlib/complex/imag.h index ac5b868..798d92b 100644 --- a/include/stdlib/complex/imag.h +++ b/include/stdlib/complex/imag.h @@ -19,7 +19,7 @@ #ifndef STDLIB_COMPLEX_IMAG_H #define STDLIB_COMPLEX_IMAG_H -#include "stdlib/complex/float64.h" +#include "stdlib/complex/float64/ctor.h" /* * If C++, prevent name mangling so that the compiler emits a binary file having undecorated names, thus mirroring the behavior of a C compiler. diff --git a/lib/index.js b/lib/index.js index 0f39459..641db8a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -24,7 +24,7 @@ * @module @stdlib/complex-imag * * @example -* var Complex128 = require( '@stdlib/complex-float64' ); +* var Complex128 = require( '@stdlib/complex-float64-ctor' ); * var imag = require( '@stdlib/complex-imag' ); * * var z = new Complex128( 5.0, 3.0 ); diff --git a/lib/main.js b/lib/main.js index 07dff29..822584f 100644 --- a/lib/main.js +++ b/lib/main.js @@ -25,7 +25,7 @@ * @returns {number} imaginary component * * @example -* var Complex128 = require( '@stdlib/complex-float64' ); +* var Complex128 = require( '@stdlib/complex-float64-ctor' ); * * var z = new Complex128( 5.0, 3.0 ); * diff --git a/manifest.json b/manifest.json index 7de2083..ea7fb69 100644 --- a/manifest.json +++ b/manifest.json @@ -33,7 +33,7 @@ "libraries": [], "libpath": [], "dependencies": [ - "@stdlib/complex-float64" + "@stdlib/complex-float64-ctor" ] } ] diff --git a/package.json b/package.json index 27cca10..8b7abe8 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "url": "https://github.com/stdlib-js/stdlib/issues" }, "dependencies": { - "@stdlib/complex-float64": "^0.2.1", + "@stdlib/complex-float64-ctor": "^0.0.1", "@stdlib/types": "^0.3.2", "@stdlib/utils-library-manifest": "^0.2.1" }, diff --git a/src/main.c b/src/main.c index cb91690..14c303d 100644 --- a/src/main.c +++ b/src/main.c @@ -17,7 +17,7 @@ */ #include "stdlib/complex/imag.h" -#include "stdlib/complex/float64.h" +#include "stdlib/complex/float64/ctor.h" /** * Returns the imaginary component of a double-precision complex floating-point number. @@ -26,7 +26,7 @@ * @return imaginary component * * @example -* #include "stdlib/complex/float64.h" +* #include "stdlib/complex/float64/ctor.h" * * stdlib_complex128_t z = stdlib_complex128( 5.0, 2.0 ); * diff --git a/test/test.js b/test/test.js index 09a7a51..2e4685b 100644 --- a/test/test.js +++ b/test/test.js @@ -21,7 +21,7 @@ // MODULES // var tape = require( 'tape' ); -var Complex128 = require( '@stdlib/complex-float64' ); +var Complex128 = require( '@stdlib/complex-float64-ctor' ); var imag = require( './../lib' );