stdlib-js / stdlib-js/stdlib

[RFC]: add `assign` and `strided` methods to `math/base/special/csignumf`

未关闭
#6,507 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
difficulty: 2 Feature JavaScript Math priority: Low RFC
主要语言
JavaScript
星标
6k
派生
1.3k
平均合并
1 天 3 小时
30 天内合并 PR
611

描述

### Description

This RFC proposes adding an implementation for `csignumf.assign( re, im, out, strideOut, offsetOut )` and `csignumf.strided( z, sz, oz, out, so, oo )` in [`math/base/special/csignumf`](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/csignumf)

For `csignumf.assign( re, im, out, strideOut, offsetOut )`, the function supports the following parameters:

`re`: real component of the complex number.
`im`: imaginary component of the complex number.
`out`: output array.
`strideOut`: stride length for `out`.
`offsetOut`: starting index for `out`.

For `csignumf.strided( z, sz, oz, out, so, oo )`, the function supports the following parameters:

`z`: complex number strided array view.
`sz`: stride length for z.
`oz`: starting index for z.
`out`: output array.
`so`: stride length for out.
`oo`: starting index for out.

### Related Issues

[Reference implementation](https://github.com/stdlib-js/stdlib/commit/486fed2b9816530eb135f9846f3745281cec76e2#diff-21f0b814eeab6be07313a2f02453372f37d95323a6ba4961f06843be96deceb9)

[Reference comment](https://github.com/stdlib-js/stdlib/pull/6361#pullrequestreview-2734730020)

### Questions

No.

### Other

No.

### Checklist

- [x] I have read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
- [x] Searched for existing issues and pull requests.
- [x] The issue name begins with `RFC:`.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。