stdlib-js / stdlib-js/stdlib

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

Ouverte
#6,507 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
difficulty: 2 Feature JavaScript Math priority: Low RFC
Langage dominant
JavaScript
Étoiles
6k
Forks
1.3k
Merge moyen
1 j 3 h
PR mergées (30 j)
611

Description

### 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:`.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.