Open bleyerj opened 4 months ago
I found it sometimes painful to use UFL when reshaping matrix/vectors, etc.
It would be useful to have UFL functions mimicking numpy like behavior such as: flatten, reshape, vstack, hstack, concatenate, etc.
flatten
reshape
vstack
hstack
concatenate
I would be happy to make a proposal if we agree on this
Presumably all of these are syntactic sugar for combinations of indexing on the one hand, and as_vector and as_tensor on the other. That being the case, this seems fairly unobjectionable.
as_vector
as_tensor
I found it sometimes painful to use UFL when reshaping matrix/vectors, etc.
It would be useful to have UFL functions mimicking numpy like behavior such as:
flatten
,reshape
,vstack
,hstack
,concatenate
, etc.I would be happy to make a proposal if we agree on this