Skip to content

feat: add math/base/special/atan2f #7081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 176 commits into from
Jun 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
19fd51f
feat: add `math/base/special/atan2f`
anandkaranubc May 24, 2025
4abde6f
chore: update copyright years
stdlib-bot May 24, 2025
1dd5de3
refactor: simplify implementation
kgryte May 22, 2025
25a9b67
refactor: simplify implementation
kgryte May 22, 2025
86378e1
refactor: simplify implementation
kgryte May 22, 2025
a7266c6
refactor: simpilfy implementation
kgryte May 22, 2025
4645a92
test: add signed zero tests
kgryte May 22, 2025
6fe7a88
test: add signed zero tests
kgryte May 22, 2025
db10d20
fix: update implementation to preserve signed zeros
kgryte May 22, 2025
034d098
test: add signed zero tests
kgryte May 22, 2025
c56bf66
test: add signed zero tests
kgryte May 22, 2025
042b39d
test: add signed zero tests
kgryte May 22, 2025
f7128d4
test: add signed zero tests
kgryte May 22, 2025
a76f804
refactor: simplify implementation
kgryte May 22, 2025
97bc93a
refactor: simplify implementation
kgryte May 22, 2025
c44d7c1
refactor: simplify implementation
kgryte May 22, 2025
923a464
refactor: simplify implementation
kgryte May 22, 2025
8abe7d9
refactor: simplify implementation
kgryte May 22, 2025
f145be4
refactor: simplify implementation
kgryte May 22, 2025
7c365e2
refactor: simplify implementation
kgryte May 22, 2025
00973cc
refactor: simplify implementation
kgryte May 22, 2025
907c2c3
refactor: simplify implementation
kgryte May 22, 2025
48f9e50
refactor: simplify implementation
kgryte May 22, 2025
e5ee291
test: add signed zero tests
kgryte May 22, 2025
01a5c7d
test: add signed zero tests
kgryte May 22, 2025
d1134b6
test: add signed zero tests
kgryte May 22, 2025
091e571
feat: add `blas/ext/base/zsumkbn`
kgryte May 22, 2025
98763a2
feat: add `zsumkbn` to namespace
kgryte May 22, 2025
0f6e23a
fix: update implementation to preserve signed zeros
kgryte May 22, 2025
a6ce499
fix: update implementation to preserve signed zeros
kgryte May 22, 2025
59057a2
fix: update implementation to preserve signed zeros
kgryte May 22, 2025
ce2eaa0
fix: update implementation to preserve signed zeros
kgryte May 22, 2025
23c6d74
test: add signed zero tests
kgryte May 22, 2025
da6e254
test: add signed zero tests
kgryte May 22, 2025
f4aef1c
test: add signed zero tests
kgryte May 22, 2025
1f605c7
test: add signed zero tests
kgryte May 22, 2025
88835b6
fix: preserve sign of zero
kgryte May 22, 2025
ffe1f6e
fix: update implementation to preserve signed zeros
kgryte May 22, 2025
5e5d5f1
fix: update implementation to preserve signed zeros
kgryte May 22, 2025
eb25b19
fix: update implementation to preserve signed zeros
kgryte May 22, 2025
bb330a4
test: use single-precision utility
kgryte May 22, 2025
7431f79
fix: update implementation to preserve signed zeros
kgryte May 22, 2025
fe7846e
test: add signed zero tests
kgryte May 22, 2025
af781da
fix: update implementation to preserve signed zeros
kgryte May 22, 2025
d506eb7
fix: address pointer increment bug
kgryte May 22, 2025
ca5958b
fix: address pointer increment bug
kgryte May 22, 2025
810002c
fix: address pointer increment bug
kgryte May 22, 2025
ca86cbc
fix: address pointer increment bug
kgryte May 22, 2025
dd3fb28
fix: address pointer increment bug
kgryte May 22, 2025
1b0d8e9
fix: address pointer increment bug
kgryte May 22, 2025
fe51de6
fix: address pointer increment bug
kgryte May 22, 2025
ab0fd25
fix: update implementation to preserve signed zeros
kgryte May 22, 2025
82836c7
fix: use correct return value
kgryte May 22, 2025
9754329
fix: update implementation to preserve signed zeros
kgryte May 22, 2025
658d855
fix: use correct return value
kgryte May 22, 2025
590eb83
fix: update implementation to preserve signed zeros
kgryte May 22, 2025
a46dabb
refactor: use alias to reduce visual noise
kgryte May 22, 2025
c00aaf2
fix: update implementation to preserve signed zeros
kgryte May 22, 2025
6eed919
fix: update implementation to preserve signed zeros
kgryte May 22, 2025
99aa79a
fix: update implementation to preserve signed zeros
kgryte May 23, 2025
10b42a1
bench: fix array lengths
kgryte May 23, 2025
8d1ea45
fix: update implementation to preserve signed zeros
kgryte May 23, 2025
6383962
fix: update implementation to preserve signed zeros
kgryte May 24, 2025
4b278ae
fix: update implementation to preserve signed zeros
kgryte May 25, 2025
594c716
chore: fix EditorConfig lint errors
LalitNarayanYadav May 24, 2025
df3ce6a
docs: fix missing period
kgryte May 25, 2025
5f5c8be
docs: update descriptions
kgryte May 25, 2025
1945712
fix: update implementation to preserve signed zeros
kgryte May 25, 2025
2502aef
feat: add `blas/ext/base/gnannsumpw`
kgryte May 25, 2025
670548e
docs: fix missing period
kgryte May 25, 2025
5c93402
fix: update implementation to preserve signed zeros
kgryte May 25, 2025
060c5e2
fix: update implementation to preserve signed zeros
kgryte May 25, 2025
c144ed2
fix: update implementation to preserve signed zeros
kgryte May 25, 2025
df3dcc4
fix: update implementation to preserve signed zeros
kgryte May 25, 2025
621a665
feat: add `gnannsumpw` to namespace
kgryte May 25, 2025
ed49e36
fix: add missing checks for `N` and address failing tests stemming fr…
kgryte May 25, 2025
99c8562
fix: address indexing bug
kgryte May 25, 2025
ab66697
test: address failing test case
kgryte May 25, 2025
44600b1
fix: address indexing bug
kgryte May 25, 2025
71c6ed4
bench: fix package path
kgryte May 25, 2025
5c3a202
test: address failing test cases
kgryte May 25, 2025
8ceeb7b
docs: update list of contributors
stdlib-bot May 25, 2025
5cf9da3
feat: add `blas/ext/base/zsum`
kgryte May 25, 2025
72dd6b5
feat: add `zsum` to namespace
kgryte May 25, 2025
bc077fd
feat: add `blas/ext/base/csumkbn`
kgryte May 25, 2025
36fc8f0
feat: add `csumkbn` to namespace
kgryte May 25, 2025
88c8b37
chore: clean-up
kgryte May 25, 2025
cc3cddf
feat: add `blas/ext/base/csum`
kgryte May 25, 2025
aeb5fed
feat: add `csum` to namespace
kgryte May 25, 2025
32cb538
feat: add `blas/ext/base/ndarray/zsum`
kgryte May 25, 2025
58f3029
feat: add `zsum` to namespace
kgryte May 25, 2025
ad4f214
feat: add `blas/ext/base/ndarray/csum`
kgryte May 25, 2025
946f764
feat: add `csum` to namespace
kgryte May 25, 2025
f3484de
fix: update return type
kgryte May 25, 2025
1790daf
fix: update return type
kgryte May 25, 2025
675b4ca
fix: add support for complex64 and complex128
kgryte May 25, 2025
a0f22eb
docs: update namespace table of contents
stdlib-bot May 26, 2025
0560ba5
docs: update REPL namespace documentation
stdlib-bot May 26, 2025
459cf7f
bench: update random value generation
hrshya May 26, 2025
309f625
bench: update random value generation
hrshya May 26, 2025
25cb0a1
fix: correct `FLOAT32_GAMMA_LANCZOS_G`
anandkaranubc May 26, 2025
7ea5e31
feat: add `ndarray/vector/complex128`
kgryte May 26, 2025
d25e9ff
feat: add `Complex128Vector` to namespace
kgryte May 26, 2025
ed26961
feat: add `ndarray/vector/complex64`
kgryte May 26, 2025
ebe05a5
feat: add `Complex64Vector` to namespace
kgryte May 26, 2025
03d4cf6
fix: rename constant to follow `float32` naming conventions
anandkaranubc May 26, 2025
49db734
docs: remove references section
anandkaranubc May 26, 2025
b19c64d
test: add signed zero tests
kgryte May 26, 2025
0df68d0
fix: update implementation to preserve signed zeros
kgryte May 26, 2025
91b324c
chore: fix EditorConfig lint errors
LalitNarayanYadav May 27, 2025
1f33ea0
chore: fix JavaScript lint errors
Swapnil-2502 May 27, 2025
ac05335
docs: add Karan Anand as a core contributor
kgryte May 27, 2025
70c70b2
docs: update namespace table of contents
stdlib-bot May 27, 2025
0e5be74
fix: update implementation to preserve signed zeros
kgryte May 27, 2025
7d94ed4
test: add signed zero tests
kgryte May 27, 2025
a91b91e
fix: update implementation to preserve signed zeros
kgryte May 27, 2025
77f294b
style: add missing space
kgryte May 27, 2025
a86c2f3
refactor: use in-house macros for building native addon bindings
anandkaranubc May 26, 2025
4e27c24
refactor: use in-house macros for building native addon bindings
anandkaranubc May 27, 2025
15fb7ed
docs: update example
kgryte May 28, 2025
62516d6
docs: update comment
kgryte May 28, 2025
542f587
docs: update comment
kgryte May 28, 2025
29ba368
bench: fix typo in filename
kgryte May 28, 2025
1fee225
bench: fix typo in filename
kgryte May 28, 2025
78664c6
chore: clean-up
kgryte May 28, 2025
219efef
docs: fix examples
kgryte May 29, 2025
92030a4
feat: add `ndarray/base/count-truthy`
kgryte May 29, 2025
47d28a6
feat: add `countTruthy` to namespace
kgryte May 29, 2025
77ecfc3
docs: update related packages sections
stdlib-bot May 29, 2025
dadb293
feat: add `unaryReduceSubarrayBy` to namespace
kgryte May 29, 2025
ca060d2
bench: fix invocation
kgryte May 29, 2025
34ba607
refactor: tighten types
kgryte May 29, 2025
fcd7399
refactor: tighten types
kgryte May 29, 2025
8106212
style: fix alignment
kgryte May 29, 2025
c57dc34
docs: fix example
kgryte May 29, 2025
6b1351a
docs: update example
kgryte May 29, 2025
7fdc707
feat: add `ndarray/base/count-falsy`
kgryte May 30, 2025
5337947
feat: add `countFalsy` to namespace
kgryte May 30, 2025
e9c1b7f
bench: fix value generation in `stats/array/*`
gururaj1512 May 30, 2025
814595f
feat: add `stats/array/mediansorted`
gururaj1512 May 30, 2025
0e81471
docs: update namespace table of contents
stdlib-bot May 30, 2025
1cf9ffc
docs: replace manual `for` loop in examples
hrshya May 30, 2025
b38a93c
test: add missing skips for native add-on tests
Planeshifter May 30, 2025
0c4b066
test: add missing skips for native add-on tests
Planeshifter May 30, 2025
22e5807
test: add missing skips for native add-on tests
Planeshifter May 30, 2025
bd2e1da
test: add missing skips for native add-on tests
Planeshifter May 30, 2025
e5775bd
docs: replace manual `for` loop in examples
hrshya May 30, 2025
38722af
chore: address JavaScript lint errors
ujjwalkirti May 30, 2025
4807753
feat: add `ndarray/base/count-if`
kgryte May 31, 2025
2dfb94e
feat: add `countIf` to namespace
kgryte May 31, 2025
25cff88
feat: add `ndarray/count-truthy`
kgryte May 31, 2025
baa0f21
feat: add `countTruthy` to namespace
kgryte May 31, 2025
46b3958
feat: add `ndarray/count-falsy`
kgryte May 31, 2025
9f319bc
feat: add `countFalsy` to namespace
kgryte May 31, 2025
7722dd3
chore: fix EditorConfig lint errors
TusharBhardwaj441 May 30, 2025
9b346fd
docs: update namespace table of contents
stdlib-bot May 31, 2025
52ffe49
chore: fix EditorConfig lint errors
karanlvm May 31, 2025
f2ca60c
docs: update list of contributors
stdlib-bot May 31, 2025
f0b037e
docs: fix note
kgryte May 31, 2025
84b50e0
docs: update comment
kgryte May 31, 2025
daee5d1
feat: add `ndarray/count-if`
kgryte May 31, 2025
12d0ec6
docs: update examples
kgryte May 31, 2025
b88598f
docs: update examples
kgryte May 31, 2025
527a233
docs: update examples
kgryte May 31, 2025
c67ffc3
docs: update examples
kgryte May 31, 2025
c9e0a79
docs: update examples
kgryte May 31, 2025
0a048c3
docs: update comment
kgryte May 31, 2025
27ea442
docs: update comment
kgryte May 31, 2025
f154c06
docs: update examples
kgryte May 31, 2025
80eb1da
style: enable lint rule
kgryte May 31, 2025
fe0071e
feat: add `countIf` to namespace
kgryte May 31, 2025
2f15c20
feat: add `ndarray/base/some-by`
headlessNode May 31, 2025
6fc39dc
feat: add `someBy` to namespace
kgryte May 31, 2025
b0f16de
Merge branch 'develop' into feat/atan2f
anandkaranubc Jun 1, 2025
8bd94c6
Merge branch 'develop' into feat/atan2f
anandkaranubc Jun 1, 2025
15f6431
chore: apply suggestions from review
anandkaranubc Jun 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
213 changes: 213 additions & 0 deletions lib/node_modules/@stdlib/math/base/special/atan2f/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

DEPENDENCIES & ATTRIBUTION

The library links against the following external libraries or contains
implementations from the following external libraries, which have their own
licenses:

* Go <https://raw.githubusercontent.com/golang/go/master/LICENSE>

Copyright (c) 2009 The Go Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading