General type of 2d arrays

AbstractMatrix

You can also generalize over the element type, by e.g. foo(AbstractMatrix{T}) where {T:<Real}, or even omitting the type parameter entiredly.

3 Likes