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

Aberta
#783 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
45/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
rust
Domínio
data

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Rust
Estrelas
4.3k
Forks
391
Métricas de merge de PRs
Nenhum PR com merge em 30d

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de rust-ndarray/ndarray

Todas as issues de rust-ndarray/ndarray

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.