79814513

Date: 2025-11-08 23:48:16
Score: 1
Natty:
Report link

Well, i know i can do it in other ways, but my point was to check if it can be done with pure numpy/torch in some "equivalent" method to a regex.

My goal is to filter regions in a differential field that show some derivate sign sequence but with a variable shape. I can easily just map positive derivates to "1", negatives to "-1", flats to "0", or whatever and use a regexp, but i thought maybe it was achievable natively in numpy :/.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Ghost