Provide a macro to make it easier to define new scalar types

Abierto
#783 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
rust
Área
data

Línea de trabajo

Start by reading the ScalarOperand trait and the existing impl_scalar_lhs_op macro referenced in the issue. Determine the public macro interface needed for a user-defined scalar type, then verify that it supports the documented arithmetic operations on both operand sides.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement

Currently, to define a new scalar type usable in arithmetic operations involving scalar operands, the user needs to do the following:

  • Implement ScalarOperand for the scalar type so that it works as a right-side operand.

  • Add implementations for the scalar type on the left side. (In other words, copy the impl_scalar_lhs_op macro and apply it to the scalar type.)

It would be nice to provide a macro to make this easier.

Lenguaje dominante
Rust
Estrellas
4.3k
Forks
391
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rust-ndarray/ndarray

Todos los issues de rust-ndarray/ndarray

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.