UFL

sgn function

Registered by Garth Wells

It would be useful if UFL provided a sgn function to extraction the sign of a function, returning -1, 0 or 1. e.g. in C code

  int signum = (v > 0) - (v < 0);

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Martin Sandve Alnæs
Completed by
Martin Sandve Alnæs

Related branches

Sprints

Whiteboard

Already implemented based on conditionals: sign(v).

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.