From 20f7d7be13cd7869b338f98d1ab3fd33e8bbfb3e Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Thu, 27 Nov 2025 21:30:17 +0100 Subject: WIP user-specified custom 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. --- src/CHAD/Drev/Types/ToTan.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/CHAD/Drev/Types') 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" -- cgit v1.2.3-70-g09d2