Skip to content

Commit 5aa7cab

Browse files
feat: add inverses of solve helpers
1 parent 691ab14 commit 5aa7cab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/inverse.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ inverse(::typeof(NaNMath.log10)) = inverse(log10)
157157
inverse(::typeof(NaNMath.log1p)) = inverse(log1p)
158158
inverse(::typeof(NaNMath.log2)) = inverse(log2)
159159
left_inverse(::typeof(NaNMath.sqrt)) = left_inverse(sqrt)
160+
# inverses of solve helpers
161+
left_inverse(::typeof(ssqrt)) = left_inverse(sqrt)
162+
left_inverse(::typeof(scbrt)) = left_inverse(cbrt)
163+
left_inverse(::typeof(slog)) = left_inverse(log)
160164

161165
function inverse(f::ComposedFunction)
162166
return inverse(f.inner) inverse(f.outer)

0 commit comments

Comments
 (0)