Using parametric type inside outer parametric constructor

Nice! I think I have a better understanding of it now.

But that’s still odd that everything “works” when I omit the A = Matrix{T}(undef, d, d) in the last function of my example (that is, Julia doesn’t complain if T is not mentioned, even though the function signature is the same). Of course, I would rather not data to zeros though…

1 Like