Open KristofferC opened 6 years ago
Another thing is that length(...)
is usually the same as prod(size(...))
which this breaks.
Ok. This needs to change. Do you have a proposal or an idea how to change?
Yes, we could do this somehow differently. This convention originates from the need to know proper dimensions of workspace when evaluating e.g. basis functions.
FEMBasis does some "puns" on Base functions, for example:
length
is typically defined for collections (or at least when the instance of the type is a collection).AbstractBasis
is not iterable and it probably shouldn't be. Instead of defining these functions I think they should have their own namesndim
,nbasis
. Overloading Base functions are typically meant so you can write generic code but there is no way to write generic code with puns like this.