Compiled, a scalar over a matrix argument divides by each entry, where evaluation inverts
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C#
- Sterne
- 831
- Forks
- 79
- Ø Merge
- 1 Std. 10 Min.
- Gemergte PRs (30 T.)
- 531
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ASC-Community/AngouriMath
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
ASC-Community/AngouriMath#2220 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
ASC-Community/AngouriMath#2293 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
ASC-Community/AngouriMath#2292 ·
Maintainer antworten meist innerhalb von 1 Tag
-
A Taylor expansion differentiates without simplifying, so sin(x)/x to 11 terms runs out of memoryOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
ASC-Community/AngouriMath#2291 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
ASC-Community/AngouriMath#2290 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in ASC-Community/AngouriMath
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
MahdiyarGHD/GheychiApp#39 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug effort:S P3
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
nightscout/nocturne#3136 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 76/100
GameShowLDA/AskMkiM#1075 ·
Maintainer antworten meist innerhalb von 1 Tag