aboutsummaryrefslogtreecommitdiff
path: root/src/CHAD/Drev/Types
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-11-27 21:30:17 +0100
committerTom Smeding <tom@tomsmeding.com>2025-11-27 21:30:17 +0100
commit20f7d7be13cd7869b338f98d1ab3fd33e8bbfb3e (patch)
treea21c90034a02cdeb7240563dbbab355e49622d0a /src/CHAD/Drev/Types
parentae634c056b500a568b2d89b7f8e225404a2c0c62 (diff)
WIP user-specified custom typesuser-types
The big roadblock encountered is that accumulation wants addition of monoids to be elementwise float addition; this fundamentally clashes with the concept of a user type with a custom zero and plus.
Diffstat (limited to 'src/CHAD/Drev/Types')
-rw-r--r--src/CHAD/Drev/Types/ToTan.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CHAD/Drev/Types/ToTan.hs b/src/CHAD/Drev/Types/ToTan.hs
index 019119c..51403f5 100644
--- a/src/CHAD/Drev/Types/ToTan.hs
+++ b/src/CHAD/Drev/Types/ToTan.hs
@@ -41,3 +41,4 @@ toTan typ primal der = case typ of
STScal sty -> case sty of
STI32 -> der ; STI64 -> der ; STF32 -> der ; STF64 -> der ; STBool -> der
STAccum{} -> error "Accumulators not allowed in input program"
+ STUser{} -> error "User types not yet supported in forward AD"