norm
- norm(x, order=None)[source]
Returns the norm of a vector or matrix.
- Parameters:
x (array, numpy.ndarray, cas.MX, cas.SX or cas.DM) – Vector or matrix of which the norm should be calculated.
order (number or str, optional) – String defining the type of the norm. Posiible values are 1, 2, ‘fro’ or ‘inf’. The default is None.