For a given A::M where M <: AbstractMatrix, I would like to calculate typeof(lu!(A)) in the least brittle way. That is,
-
without exposing internals if possible,
-
without performing the calculation if possible,
-
working well at least for usual suspects (eg
M = Matrix{Float64}), but ideally for all type stable calls. -
returning
Anyfor calls that are not type stable.
(To avoid XY problems: the objective is to build a dictionary, hence I need value types)