I noticed that LinearAlgebra
defines inv(A::Eigen)
, but only few other functions that that accept Eigen
as inputs. It seems like it would be easy and sensible enough to define
for f in (:exp, :cis, :log, :sqrt,
:cos, :sin, :tan, :csc, :sec, :cot,
:cosh, :sinh, :tanh, :csch, :sech, :coth,
:acos, :asin, :atan, :acsc, :asec, :acot,
:acosh, :asinh, :atanh, :acsch, :asech, :acoth)
@eval function $f(A::Eigen)
A.vectors * $f(Diagonal(A.values)) / A.vectors
end
end
to get all these functions supported for Eigen
objects too. Is there a good reason this is not in Base
?