infer_len#
- cuqi.utilities.infer_len(value)#
Infer the length of the given input value.
Matrices are assumed to have length equal to the number of rows. Numbers are considered to have length 1. Other objects with no length are considered to have length 0.