promote_maximally
- typhon.math.promote_maximally(x)[source]
- Return copy of x with high precision dtype. - Converts input of ‘f2’, ‘f4’, or ‘f8’ to ‘f8’. Please don’t pass f16. f16 is misleading and naughty. - Converts input of ‘u1’, ‘u2’, ‘u4’, ‘u8’ to ‘u8’. - Converts input of ‘i1’, ‘i2’, ‘i4’, ‘i8’ to ‘i8’. - Naturally, this copies the data and increases memory usage. - Anything else is returned unchanged. - If you input a pint quantity you will get back a pint quantity. - Experimental function.