Skip to content

Commit 07ba19a

Browse files
authored
Add complex type mappings for f32 and f64 (#2026)
1 parent 078f525 commit 07ba19a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/enzyme_ad/jax/primitives.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,8 @@ def maketup(ty):
953953
"i64": "int64_t",
954954
"ui32": "uint32_t",
955955
"ui64": "uint64_t",
956+
"complex<f32>": "std::complex<float>",
957+
"complex<f64>": "std::complex<double>",
956958
}[tystr]
957959
return (tystr, ty.shape)
958960

0 commit comments

Comments
 (0)