Closed ahojukka5 closed 5 years ago
Makes sense to me, perhaps an @assert length(data) = length(dofs1) * length(dofs2)
would be good to catch potential buggy input?
Makes sense to me, perhaps an
@assert length(data) = length(dofs1) * length(dofs2)
would be good to catch potential buggy input?
What a great idea! Already found a bug from test after adding an assertion. :)
With these changes it's possible to give
dofs1
anddofs2
eg. in sub-arrays or tuples, not only vectors. Also,data
can be a long vector in row-major order (data_vec = vec(data)
).