Skip to content

[Fix] Vectorisation of Abs

Markus Holzer requested to merge holzer/pystencils:VectorAbs into master

When an abs function is encountered the Vector printer checks if its argument is a 'VectorMemoryAccess'. This causes two issues 1. only abs functions containing a field access can be vectorised and 2. even worse, if the abs function does not contain a 'VectorMemoryAccess' the scalar version is printed which causes faulty code.

This MR simply removes the condition.

Merge request reports