stdlib-js / stdlib-js/stdlib

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

Abierto
#6,507 2 comentarios 0 reacciones 0 asignados Ver en GitHub
difficulty: 2 Feature JavaScript Math priority: Low RFC
Lenguaje dominante
JavaScript
Estrellas
6k
Forks
1.3k
Merge medio
1 d 3 h
PR fusionados (30 d)
611

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.