{"_id":"@stdlib/strided-base-reinterpret-complex","_rev":"3-fa3807568bb6f1fb082bc2b00cb552b3","name":"@stdlib/strided-base-reinterpret-complex","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.1":{"name":"@stdlib/strided-base-reinterpret-complex","version":"0.1.1","keywords":["stdlib","base","strided","array","complex","float64","float32","reinterpret","cast","view"],"author":{"url":"https://github.com/stdlib-js/stdlib/graphs/contributors","name":"The Stdlib Authors"},"license":"Apache-2.0","_id":"@stdlib/strided-base-reinterpret-complex@0.1.1","maintainers":[{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"}],"contributors":[{"url":"https://github.com/stdlib-js/stdlib/graphs/contributors","name":"The Stdlib Authors"}],"homepage":"https://stdlib.io","bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"dist":{"shasum":"42c21f987aabafed055bfe2bbafc043db0e9ce8f","tarball":"https://registry.npmjs.org/@stdlib/strided-base-reinterpret-complex/-/strided-base-reinterpret-complex-0.1.1.tgz","fileCount":11,"integrity":"sha512-w5CAAOgzHKRDI2pnK7IxnP69Fcu8De+R8AJ9d6gV9etMn9cWWN1Qm1tcd9QR4+Rc63TwuoqdvRDokUsuzZE2vA==","signatures":[{"sig":"MEQCIQCwdPR/rRLmZnx/TYyour08ltR+IlmvSInN+Ju6bquACgIfBy6o8YySOHP4jHqM6qzzN0Mn1ZR8ki+qiXEa8Qqf3w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30587},"main":"./lib","types":"./docs/types","engines":{"npm":">2.7.0","node":">=0.10.0"},"funding":{"url":"https://opencollective.com/stdlib","type":"opencollective"},"gitHead":"96944aeaaa31205528b593a0370625e1a395ffa0","scripts":{},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"repository":{"url":"git://github.com/stdlib-js/strided-base-reinterpret-complex.git","type":"git"},"_npmVersion":"8.19.4","description":"Reinterpret a complex-valued floating-point array as a real-valued floating-point array having the same precision.","directories":{"doc":"./docs","lib":"./lib","dist":"./dist"},"_nodeVersion":"16.20.2","dependencies":{"@stdlib/string-format":"^0.2.1","@stdlib/error-tools-fmtprodmsg":"^0.2.1","@stdlib/strided-base-reinterpret-complex64":"^0.2.0","@stdlib/array-base-assert-is-complex64array":"^0.2.1","@stdlib/strided-base-reinterpret-complex128":"^0.2.1","@stdlib/array-base-assert-is-complex128array":"^0.2.1"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/strided-base-reinterpret-complex_0.1.1_1708887384545_0.46083889868542727","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@stdlib/strided-base-reinterpret-complex","version":"0.1.2","keywords":["stdlib","base","strided","array","complex","float64","float32","reinterpret","cast","view"],"author":{"url":"https://github.com/stdlib-js/stdlib/graphs/contributors","name":"The Stdlib Authors"},"license":"Apache-2.0","_id":"@stdlib/strided-base-reinterpret-complex@0.1.2","maintainers":[{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"}],"contributors":[{"url":"https://github.com/stdlib-js/stdlib/graphs/contributors","name":"The Stdlib Authors"}],"homepage":"https://stdlib.io","bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"dist":{"shasum":"8dc86d9b9f332b6f5e17b90cdda185e7c4845e85","tarball":"https://registry.npmjs.org/@stdlib/strided-base-reinterpret-complex/-/strided-base-reinterpret-complex-0.1.2.tgz","fileCount":11,"integrity":"sha512-xWOpmmm2LAZQHUvBMdM/N6gD4S7H133cqV74ACxj/XEvqMJEBH7UvoEMMqa0cek4td0s0Qpkdvc0pTlmJY8ifg==","signatures":[{"sig":"MEUCIQDXbQSjhxdAgrVktepxk37e5kM7ocsTlKLcZSunGLkkjQIgMmoUprjGPCDJ0up5TP7oEDqA4YKwwceNd+3Bs0Hnb2w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30603},"main":"./lib","types":"./docs/types","engines":{"npm":">2.7.0","node":">=0.10.0"},"funding":{"url":"https://opencollective.com/stdlib","type":"opencollective"},"gitHead":"dc626ba79482fcccb929e07a897874472b58ae05","scripts":{},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"repository":{"url":"git://github.com/stdlib-js/strided-base-reinterpret-complex.git","type":"git"},"_npmVersion":"8.19.4","description":"Reinterpret a complex-valued floating-point array as a real-valued floating-point array having the same precision.","directories":{"doc":"./docs","lib":"./lib","dist":"./dist"},"_nodeVersion":"16.20.2","dependencies":{"@stdlib/string-format":"^0.2.2","@stdlib/error-tools-fmtprodmsg":"^0.2.2","@stdlib/strided-base-reinterpret-complex64":"^0.2.1","@stdlib/array-base-assert-is-complex64array":"^0.2.1","@stdlib/strided-base-reinterpret-complex128":"^0.2.2","@stdlib/array-base-assert-is-complex128array":"^0.2.1"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/strided-base-reinterpret-complex_0.1.2_1722220694033_0.4312554754034328","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@stdlib/strided-base-reinterpret-complex","version":"0.1.3","description":"Reinterpret a complex-valued floating-point array as a real-valued floating-point array having the same precision.","license":"Apache-2.0","author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"main":"./lib","directories":{"doc":"./docs","lib":"./lib","dist":"./dist"},"types":"./docs/types","scripts":{},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/strided-base-reinterpret-complex.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{"@stdlib/array-base-assert-is-complex128array":"^0.2.2","@stdlib/array-base-assert-is-complex64array":"^0.2.3","@stdlib/strided-base-reinterpret-complex128":"^0.2.3","@stdlib/strided-base-reinterpret-complex64":"^0.2.2","@stdlib/string-format":"^0.2.3","@stdlib/error-tools-fmtprodmsg":"^0.2.3"},"devDependencies":{},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","base","strided","array","complex","float64","float32","reinterpret","cast","view"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"_id":"@stdlib/strided-base-reinterpret-complex@0.1.3","gitHead":"65ac870bcc9363ee25cdde72514d9e0783b5395e","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-3mG3Uqyvvr1NXQ/EAg3Yy5V5VAWLBuZ4K3/cbaxXJTl4DL5r+Uh1Taus4pgy4j5Z2FVkK/4iqjpnRWx8sj0q6g==","shasum":"7479a6dbfbdd14f16ef3007adb21bb1592d95537","tarball":"https://registry.npmjs.org/@stdlib/strided-base-reinterpret-complex/-/strided-base-reinterpret-complex-0.1.3.tgz","fileCount":11,"unpackedSize":31363,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCAS45brNY/kCNEJnhaP3v3pY3aAWDtgZom7xGrqhoijAIhAJvihMNocKuXnmnQc+1cYPmLNQC+BdsZcypcWIQN8Wka"}]},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"maintainers":[{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/strided-base-reinterpret-complex_0.1.3_1770571545605_0.0361156326688481"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-25T18:56:24.469Z","modified":"2026-02-08T17:25:45.905Z","0.1.1":"2024-02-25T18:56:24.704Z","0.1.2":"2024-07-29T02:38:14.218Z","0.1.3":"2026-02-08T17:25:45.736Z"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"license":"Apache-2.0","homepage":"https://stdlib.io","keywords":["stdlib","base","strided","array","complex","float64","float32","reinterpret","cast","view"],"repository":{"type":"git","url":"git://github.com/stdlib-js/strided-base-reinterpret-complex.git"},"description":"Reinterpret a complex-valued floating-point array as a real-valued floating-point array having the same precision.","contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"maintainers":[{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"}],"readme":"<!--\n\n@license Apache-2.0\n\nCopyright (c) 2024 The Stdlib Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n-->\n\n\n<details>\n  <summary>\n    About stdlib...\n  </summary>\n  <p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>\n  <p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>\n  <p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>\n  <p>To join us in bringing numerical computing to the web, get started by checking us out on <a href=\"https://github.com/stdlib-js/stdlib\">GitHub</a>, and please consider <a href=\"https://opencollective.com/stdlib\">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>\n</details>\n\n# reinterpret\n\n[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->\n\n> Reinterpret a complex-valued floating-point array as a real-valued floating-point array having the same precision.\n\n<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->\n\n<section class=\"intro\">\n\n</section>\n\n<!-- /.intro -->\n\n<!-- Package usage documentation. -->\n\n<section class=\"installation\">\n\n## Installation\n\n```bash\nnpm install @stdlib/strided-base-reinterpret-complex\n```\n\n</section>\n\n<section class=\"usage\">\n\n## Usage\n\n```javascript\nvar reinterpret = require( '@stdlib/strided-base-reinterpret-complex' );\n```\n\n#### reinterpret( x, offset )\n\nReturns a real-valued floating-point array view of a complex-valued floating-point array.\n\n```javascript\nvar Complex128Array = require( '@stdlib/array-complex128' );\n\nvar x = new Complex128Array( 10 );\n\nvar view = reinterpret( x, 0 );\n// returns <Float64Array>\n\nvar bool = ( view.buffer === x.buffer );\n// returns true\n\nvar len = view.length;\n// returns 20\n```\n\nThe `offset` argument specifies the starting index of the returned real-valued floating-point array view relative to the input array.\n\n```javascript\nvar Complex64Array = require( '@stdlib/array-complex64' );\n\nvar x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );\n\nvar view = reinterpret( x, 2 );\n// returns <Float32Array>\n\nvar len = view.length;\n// returns 4\n\nvar re = view[ 0 ];\n// returns 5.0\n\nvar im = view[ 1 ];\n// returns 6.0\n```\n\n</section>\n\n<!-- /.usage -->\n\n<!-- Package usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->\n\n<section class=\"notes\">\n\n</section>\n\n<!-- /.notes -->\n\n<!-- Package usage examples. -->\n\n<section class=\"examples\">\n\n## Examples\n\n<!-- eslint no-undef: \"error\" -->\n\n```javascript\nvar Complex128Array = require( '@stdlib/array-complex128' );\nvar real = require( '@stdlib/complex-float64-real' );\nvar imag = require( '@stdlib/complex-float64-imag' );\nvar reinterpret = require( '@stdlib/strided-base-reinterpret-complex' );\n\n// Define a complex number array:\nvar x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );\n// returns <Complex128Array>\n\n// Reinterpret as a `float64` array:\nvar view = reinterpret( x, 0 );\n// returns <Float64Array>\n\n// Set view elements:\nview[ 0 ] = 9.0;\nview[ 1 ] = 10.0;\n\n// Get the first element of the complex number array:\nvar z = x.get( 0 );\n// returns <Complex128>\n\nvar re = real( z );\n// returns 9.0\n\nvar im = imag( z );\n// returns 10.0\n```\n\n</section>\n\n<!-- /.examples -->\n\n<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->\n\n<section class=\"references\">\n\n</section>\n\n<!-- /.references -->\n\n<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->\n\n<section class=\"related\">\n\n* * *\n\n## See Also\n\n-   <span class=\"package-name\">[`@stdlib/strided-base/reinterpret-complex128`][@stdlib/strided/base/reinterpret-complex128]</span><span class=\"delimiter\">: </span><span class=\"description\">reinterpret a Complex128Array as a Float64Array.</span>\n-   <span class=\"package-name\">[`@stdlib/strided-base/reinterpret-complex64`][@stdlib/strided/base/reinterpret-complex64]</span><span class=\"delimiter\">: </span><span class=\"description\">reinterpret a Complex64Array as a Float32Array.</span>\n\n</section>\n\n<!-- /.related -->\n\n<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->\n\n\n<section class=\"main-repo\" >\n\n* * *\n\n## Notice\n\nThis package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.\n\nFor more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib].\n\n#### Community\n\n[![Chat][chat-image]][chat-url]\n\n---\n\n## License\n\nSee [LICENSE][stdlib-license].\n\n\n## Copyright\n\nCopyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].\n\n</section>\n\n<!-- /.stdlib -->\n\n<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->\n\n<section class=\"links\">\n\n[npm-image]: http://img.shields.io/npm/v/@stdlib/strided-base-reinterpret-complex.svg\n[npm-url]: https://npmjs.org/package/@stdlib/strided-base-reinterpret-complex\n\n[test-image]: https://github.com/stdlib-js/strided-base-reinterpret-complex/actions/workflows/test.yml/badge.svg?branch=v0.1.3\n[test-url]: https://github.com/stdlib-js/strided-base-reinterpret-complex/actions/workflows/test.yml?query=branch:v0.1.3\n\n[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/strided-base-reinterpret-complex/main.svg\n[coverage-url]: https://codecov.io/github/stdlib-js/strided-base-reinterpret-complex?branch=main\n\n<!--\n\n[dependencies-image]: https://img.shields.io/david/stdlib-js/strided-base-reinterpret-complex.svg\n[dependencies-url]: https://david-dm.org/stdlib-js/strided-base-reinterpret-complex/main\n\n-->\n\n[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg\n[chat-url]: https://stdlib.zulipchat.com\n\n[stdlib]: https://github.com/stdlib-js/stdlib\n\n[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors\n\n[umd]: https://github.com/umdjs/umd\n[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules\n\n[deno-url]: https://github.com/stdlib-js/strided-base-reinterpret-complex/tree/deno\n[deno-readme]: https://github.com/stdlib-js/strided-base-reinterpret-complex/blob/deno/README.md\n[umd-url]: https://github.com/stdlib-js/strided-base-reinterpret-complex/tree/umd\n[umd-readme]: https://github.com/stdlib-js/strided-base-reinterpret-complex/blob/umd/README.md\n[esm-url]: https://github.com/stdlib-js/strided-base-reinterpret-complex/tree/esm\n[esm-readme]: https://github.com/stdlib-js/strided-base-reinterpret-complex/blob/esm/README.md\n[branches-url]: https://github.com/stdlib-js/strided-base-reinterpret-complex/blob/main/branches.md\n\n[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/strided-base-reinterpret-complex/main/LICENSE\n\n<!-- <related-links> -->\n\n[@stdlib/strided/base/reinterpret-complex128]: https://www.npmjs.com/package/@stdlib/strided-base-reinterpret-complex128\n\n[@stdlib/strided/base/reinterpret-complex64]: https://www.npmjs.com/package/@stdlib/strided-base-reinterpret-complex64\n\n<!-- </related-links> -->\n\n</section>\n\n<!-- /.links -->\n","readmeFilename":"README.md"}