add det
This commit is contained in:
parent
92616a8c3d
commit
547ca64206
@ -31,7 +31,7 @@ graph(::typeof(svd), x) = svd(x)
|
|||||||
|
|
||||||
for op in (*, .*, .+, .^, log, exp, ceil, floor, sqrt, abs, cos,
|
for op in (*, .*, .+, .^, log, exp, ceil, floor, sqrt, abs, cos,
|
||||||
sin, tan, atan, asin, acos, tanh, lgamma, erf, erfc, real, imag, conj,
|
sin, tan, atan, asin, acos, tanh, lgamma, erf, erfc, real, imag, conj,
|
||||||
inv)
|
inv, det)
|
||||||
@eval graph(::typeof($op), args...) = $op(args...)
|
@eval graph(::typeof($op), args...) = $op(args...)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -41,6 +41,12 @@ u,s,v = m(A)
|
|||||||
m = tf(f)
|
m = tf(f)
|
||||||
@test maximum(abs.(m(A)-inv(A))) < error_margin
|
@test maximum(abs.(m(A)-inv(A))) < error_margin
|
||||||
|
|
||||||
|
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
# det
|
||||||
|
@net f(x) = det(x)
|
||||||
|
m = tf(f)
|
||||||
|
@test maximum(abs.(m(A)-det(A))) < error_margin
|
||||||
|
|
||||||
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user