Towards less abuse of asm
#854
Replies: 1 comment 7 replies
-
Ha, yes. Just in case this should be taken wrongly, ‘abuse of notation’ is a common locution in metamathematics and not at all derogatory:
and I agree that your (ab)uses have helped simplify the exposition and are helping suggest the correct intuition. So let's continue following those suggestions towards the correct intuition. Now, as to the idea of an iterator: interesting, not bad, maybe a bit un-Pythonic in that usually in NumPy we try to avoid explicit iteration over ndarrays in favour of built-in vectorized operations, but perhaps there might be a case to be made for its use in development as an explicit way which can be asserted to do the same thing as a less obvious I've been away on holidays and see that I've still quite a bit to catch up on, but before that I did begin on working to create somewhat similar figures on triangular and quadrilateral meshes, indicating quadrature points, normals to facets, &c., without recourse to side-effects of Rather than iterators, that accessed ndarrays of I'll take a look at #851 and after that I hope to have more concrete suggestions. It's something that I'm very interested in anyway. We really want to be able to calculate the jump and flux across an interface between subdomains as in ex26 and that means being able to consistently reorient the constitutive facets #821 or at least know what their orientation is so that it can be accounted for. |
Beta Was this translation helpful? Give feedback.
-
Ok, so yeah, I like to inflict syntactic mischief with
Functional
andasm
. Abuse, some would say. Have said, in fact.But its just so useful for poking around at things...
Is there any appetite for an actual iterator that traverses the data structures similar to how I've been using
asm
?This is a wide open question... obviously you can get quite far with what exists already. But I admit it's side effects, and it's ugly... And I'm not too clear at all on syntax or anything... its just an idea.
The first use case I was thinking of is all this plotting and poking around I've been doing. But then you can look at my train wreck in #851 and see how maybe it could be quite useful when trying to extend skfem.
Beta Was this translation helpful? Give feedback.
All reactions