I wish to define a struct, containing a square MMatrix
. The number of rows / columns is N
. I tried to do this as
mutable struct my_struct{N, T <: AbstractFloat}
a::MVector{N, T}
b::MMatrix{N, N, T, N * N}
end
but this does not work as N * N
is not defined in general. How can I specify that N
is a integer value? Thanks.