Multiplication and division between a ptvalue() and a double/integer value is now allowed.
ptvalue() for now.ptvalue() with a negative value are still not allowed and will raises an error.ptvalue() can be converted back to double values with unclass() or as.double().Other helper functions have been added in addition to invert_sign():
abs_sign() converts values to values with an 'absolute' sign (times or div)as_times() converts values to times onlyas_div() converts values to div onlyMore details were added in README:
div() and times(), for creating directly PT values.abs_sign(), as_times(), and as_div()