Compiled, a scalar over a matrix argument divides by each entry, where evaluation inverts
Mantenedores costumam responder em até 1 dia
Um pull request relacionado já foi integrado.
- #2289 de @Rafael-SOWNet — integrado
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
Direção de pesquisa
Start by reading TensorCompilation's DivideFromScalar and compare its behavior with evaluation for scalar divided by a matrix; the issue gives examples for both a matrix argument and a matrix written directly in the expression. Also review the related context in #2232 and #2286. Done means compiled evaluation of a matrix argument matches the stated inverse-based behavior rather than dividing by each entry.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Compiled, a scalar divided by a matrix argument divides by each entry, where evaluation multiplies by the inverse (#2232). Master:
| Answered | |
|---|---|
"2 / [[1, 2], [3, 4]]".ToEntity().Evaled |
[[-4, 2], [3, -1]], which is 2 times the inverse |
"x / A" compiled over GenTensor<double>, with A = [[1, 0], [0, 1]] and x = 1 |
[[1, Infinity], [Infinity, 1]] |
With a matrix written into the expression, compiled output agrees with evaluation, because the expression is simplified before it is compiled: "x / [[1, 0], [2, 4]]" at 1 is [[1, 0], [-0.5, 0.25]]. Only a matrix argument reaches TensorCompilation's DivideFromScalar, which is Elementwise(a, x => Divide(scalar, x)).
Found while testing #2286.
- Linguagem predominante
- C#
- Estrelas
- 832
- Forks
- 79
- Merge médio
- 1h 12min
- PRs com merge (30d)
- 518
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ASC-Community/AngouriMath
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
ASC-Community/AngouriMath#2220 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
Opinions wanted
Dificuldade 4/5 Mais de uma semana Facilidade para iniciantes 15/100
ASC-Community/AngouriMath#2319 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 18/100
ASC-Community/AngouriMath#2298 ·
Mantenedores costumam responder em até 1 dia
-
The kernel under WebAssembly: 1.26 MB Brotli over the bare runtime, and 0.2 s to the first SimplifyAberta
Dificuldade 3/5 Meio dia Facilidade para iniciantes 48/100
ASC-Community/AngouriMath#2296 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
ASC-Community/AngouriMath#2293 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de ASC-Community/AngouriMath
Issues semelhantes
-
needs-area-label
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
Mantenedores costumam responder em até 2 dias
-
bug github_actions
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
endercodezz/BYDLO#336 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
SubtitleEdit/subtitleedit#16638 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
sebastienros/jint#4449 ·
Mantenedores costumam responder em até 1 dia