Collection of operators and transforms implemented in python, ported from +mat_operators in the first instance