{"name":"@stdlib/complex-float32-base-mul","version":"0.1.0","description":"Multiply two single-precision complex floating-point numbers.","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","gypfile":false,"directories":{"doc":"./docs","include":"./include","lib":"./lib","src":"./src","dist":"./dist"},"types":"./docs/types","scripts":{},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/complex-float32-base-mul.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{"@stdlib/complex-float32-ctor":"^0.0.2","@stdlib/complex-float32-imag":"^0.1.1","@stdlib/complex-float32-real":"^0.1.1","@stdlib/complex-float32-reim":"^0.1.2","@stdlib/math-base-napi-binary":"^0.3.0","@stdlib/number-float64-base-to-float32":"^0.2.2","@stdlib/utils-library-manifest":"^0.2.2"},"devDependencies":{},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","stdmath","mathematics","math","mul","cmulf","mult","multiply","multiplication","arithmetic","complex","cmplx","number"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"gitHead":"39a67731ee7d3e1f6afb827ba59c89526b975f0a","_id":"@stdlib/complex-float32-base-mul@0.1.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-L+mJHJ7zpIfOnN8nka/Uvrf6RGEBcpw0i+Nr68TZUsNgekiQX7/hNPvwSwHoWCxAP7LAwrZ2K7tJFROG/3S4eA==","shasum":"b60ae155d9da99fe0111e680cec2734151e17a4c","tarball":"http://registry-npm.ywwl.com/@stdlib/complex-float32-base-mul/download/@stdlib/complex-float32-base-mul-0.1.0.tgz","fileCount":16,"unpackedSize":38116,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF1XpNxCKUmSIx1FKzndctJnr/aJd/y7rhTUDhcAvbTbAiEA6ze1DFmLsr6wUrBx7LGzWW9/sYZhNTcrMv2eBYAeQj4="}],"size":9546,"noattachment":false,"key":"/@stdlib/complex-float32-base-mul/-/@stdlib/complex-float32-base-mul-0.1.0.tgz"},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/complex-float32-base-mul_0.1.0_1722198953616_0.15777721017817115"},"_hasShrinkwrap":false,"readme":"<!--\n\n@license Apache-2.0\n\nCopyright (c) 2021 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# mul\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> Multiply two single-precision complex floating-point numbers.\n\n<section class=\"intro\">\n\n</section>\n\n<!-- /.intro -->\n\n<section class=\"installation\">\n\n## Installation\n\n```bash\nnpm install @stdlib/complex-float32-base-mul\n```\n\n</section>\n\n<section class=\"usage\">\n\n## Usage\n\n```javascript\nvar mul = require( '@stdlib/complex-float32-base-mul' );\n```\n\n#### mul( z1, z2 )\n\nMultiples two single-precision complex floating-point numbers.\n\n```javascript\nvar Complex64 = require( '@stdlib/complex-float32-ctor' );\nvar realf = require( '@stdlib/complex-float32-real' );\nvar imagf = require( '@stdlib/complex-float32-imag' );\n\nvar z1 = new Complex64( 5.0, 3.0 );\nvar z2 = new Complex64( -2.0, 1.0 );\n\nvar v = mul( z1, z2 );\n// returns <Complex64>\n\nvar re = realf( v );\n// returns -13.0\n\nvar im = imagf( v );\n// returns -1.0\n```\n\n</section>\n\n<!-- /.usage -->\n\n<section class=\"examples\">\n\n## Examples\n\n<!-- eslint no-undef: \"error\" -->\n\n```javascript\nvar Complex64 = require( '@stdlib/complex-float32-ctor' );\nvar discreteUniform = require( '@stdlib/random-base-discrete-uniform' ).factory;\nvar mul = require( '@stdlib/complex-float32-base-mul' );\n\nvar rand = discreteUniform( -50, 50 );\n\nvar z1;\nvar z2;\nvar z3;\nvar i;\nfor ( i = 0; i < 100; i++ ) {\n    z1 = new Complex64( rand(), rand() );\n    z2 = new Complex64( rand(), rand() );\n    z3 = mul( z1, z2 );\n    console.log( '(%s) * (%s) = %s', z1.toString(), z2.toString(), z3.toString() );\n}\n```\n\n</section>\n\n<!-- /.examples -->\n\n<!-- C interface documentation. -->\n\n* * *\n\n<section class=\"c\">\n\n## C APIs\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<!-- C usage documentation. -->\n\n<section class=\"usage\">\n\n### Usage\n\n```c\n#include \"stdlib/complex/float32/base/mul.h\"\n```\n\n#### stdlib_base_complex64_mul( z1, z2 )\n\nMultiplies two single-precision complex floating-point numbers.\n\n```c\n#include \"stdlib/complex/float32/ctor.h\"\n#include \"stdlib/complex/float32/real.h\"\n#include \"stdlib/complex/float32/imag.h\"\n\nstdlib_complex64_t z1 = stdlib_complex64( 5.0f, 3.0f );\nstdlib_complex64_t z2 = stdlib_complex64( -2.0f, 1.0f );\n\nstdlib_complex64_t out = stdlib_base_complex64_mul( z1, z2 );\n\nfloat re = stdlib_complex64_real( out );\n// returns -13.0f\n\nfloat im = stdlib_complex64_imag( out );\n// returns -1.0f\n```\n\nThe function accepts the following arguments:\n\n-   **z1**: `[in] stdlib_complex64_t` input value.\n-   **z2**: `[in] stdlib_complex64_t` input value.\n\n```c\nstdlib_complex64_t stdlib_base_complex64_mul( const stdlib_complex64_t z1, const stdlib_complex64_t z2 );\n```\n\n</section>\n\n<!-- /.usage -->\n\n<!-- C API 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<!-- C API usage examples. -->\n\n<section class=\"examples\">\n\n### Examples\n\n```c\n#include \"stdlib/complex/float32/base/mul.h\"\n#include \"stdlib/complex/float32/ctor.h\"\n#include \"stdlib/complex/float32/reim.h\"\n#include <stdio.h>\n\nint main( void ) {\n    const stdlib_complex64_t x[] = {\n        stdlib_complex64( 3.14f, 1.5f ),\n        stdlib_complex64( -3.14f, 1.5f ),\n        stdlib_complex64( 0.0f, -0.0f ),\n        stdlib_complex64( 0.0f/0.0f, 0.0f/0.0f )\n    };\n\n    stdlib_complex64_t v;\n    stdlib_complex64_t y;\n    float re;\n    float im;\n    int i;\n    for ( i = 0; i < 4; i++ ) {\n        v = x[ i ];\n        stdlib_complex64_reim( v, &re, &im );\n        printf( \"z = %f + %fi\\n\", re, im );\n\n        y = stdlib_base_complex64_mul( v, v );\n        stdlib_complex64_reim( y, &re, &im );\n        printf( \"mul(z, z) = %f + %fi\\n\", re, im );\n    }\n}\n```\n\n</section>\n\n<!-- /.examples -->\n\n</section>\n\n<!-- /.c -->\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/complex-float32/base/add`][@stdlib/complex/float32/base/add]</span><span class=\"delimiter\">: </span><span class=\"description\">add two single-precision complex floating-point numbers.</span>\n-   <span class=\"package-name\">[`@stdlib/complex-float64/base/mul`][@stdlib/complex/float64/base/mul]</span><span class=\"delimiter\">: </span><span class=\"description\">multiply two double-precision complex floating-point numbers.</span>\n-   <span class=\"package-name\">[`@stdlib/math-base/ops/csubf`][@stdlib/math/base/ops/csubf]</span><span class=\"delimiter\">: </span><span class=\"description\">subtract two single-precision complex floating-point numbers.</span>\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-2024. 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/complex-float32-base-mul.svg\n[npm-url]: https://npmjs.org/package/@stdlib/complex-float32-base-mul\n\n[test-image]: https://github.com/stdlib-js/complex-float32-base-mul/actions/workflows/test.yml/badge.svg?branch=v0.1.0\n[test-url]: https://github.com/stdlib-js/complex-float32-base-mul/actions/workflows/test.yml?query=branch:v0.1.0\n\n[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/complex-float32-base-mul/main.svg\n[coverage-url]: https://codecov.io/github/stdlib-js/complex-float32-base-mul?branch=main\n\n<!--\n\n[dependencies-image]: https://img.shields.io/david/stdlib-js/complex-float32-base-mul.svg\n[dependencies-url]: https://david-dm.org/stdlib-js/complex-float32-base-mul/main\n\n-->\n\n[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg\n[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im\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/complex-float32-base-mul/tree/deno\n[deno-readme]: https://github.com/stdlib-js/complex-float32-base-mul/blob/deno/README.md\n[umd-url]: https://github.com/stdlib-js/complex-float32-base-mul/tree/umd\n[umd-readme]: https://github.com/stdlib-js/complex-float32-base-mul/blob/umd/README.md\n[esm-url]: https://github.com/stdlib-js/complex-float32-base-mul/tree/esm\n[esm-readme]: https://github.com/stdlib-js/complex-float32-base-mul/blob/esm/README.md\n[branches-url]: https://github.com/stdlib-js/complex-float32-base-mul/blob/main/branches.md\n\n[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/complex-float32-base-mul/main/LICENSE\n\n<!-- <related-links> -->\n\n[@stdlib/complex/float32/base/add]: https://www.npmjs.com/package/@stdlib/complex-float32-base-add\n\n[@stdlib/complex/float64/base/mul]: https://www.npmjs.com/package/@stdlib/complex-float64-base-mul\n\n[@stdlib/math/base/ops/csubf]: https://www.npmjs.com/package/@stdlib/math-base-ops-csubf\n\n<!-- </related-links> -->\n\n</section>\n\n<!-- /.links -->\n","publish_time":1722198953767,"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"}],"_cnpm_publish_time":1722198953767,"dist-tags":{"latest":"0.2.1"}}