Skip to content

Commit 16f5f0f

Browse files
committed
add Float32 support
1 parent ad32c73 commit 16f5f0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/LinearSolveForwardDiffExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ using RecursiveArrayTools
99

1010

1111
# Define type for non-nested dual numbers
12-
const SingleDual{T, V, P} = Dual{T, V, P} where {T, V <:Float64 , P}
12+
const SingleDual{T, V, P} = Dual{T, V, P} where {T, V <:Union{Float64, Float32} , P}
1313

1414
# Define type for nested dual numbers
1515
const NestedDual{T, V, P} = Dual{T, V, P} where {T, V <: Dual, P}

0 commit comments

Comments
 (0)