mtl5.norm#
- mtl5.norm(...)#
Overloaded function.
norm(x: ndarray[dtype=float32, shape=(*), order='C', device='cpu', writable=False], ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_f32, ord: int = 2) -> floatnorm(x: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_f64, ord: int = 2) -> floatnorm(x: ndarray[dtype=int32, shape=(*), order='C', device='cpu', writable=False], ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_i32, ord: int = 2) -> floatnorm(x: ndarray[dtype=int64, shape=(*), order='C', device='cpu', writable=False], ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_i64, ord: int = 2) -> floatnorm(x: ndarray[dtype=complex64, shape=(*), order='C', device='cpu', writable=False], ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_c64, ord: int = 2) -> float
Vector norm. 1 = sum|z|, 2 = Euclidean, -1 = max|z|. Always real.
norm(A: mtl5._core.DenseMatrix_c64, ord: int = 2) -> float
Matrix norm. 1 = max column sum, 2 = Frobenius, -1 = max row sum.
norm(x: ndarray[dtype=complex128, shape=(*), order='C', device='cpu', writable=False], ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_c128, ord: int = 2) -> float
Vector norm. 1 = sum|z|, 2 = Euclidean, -1 = max|z|. Always real.
norm(A: mtl5._core.DenseMatrix_c128, ord: int = 2) -> float
Matrix norm. 1 = max column sum, 2 = Frobenius, -1 = max row sum.
norm(x: mtl5._core.DenseVector_fp8, ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_fp16, ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_posit8, ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_posit16, ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_posit32, ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_posit64, ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_fixpnt8, ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_fixpnt16, ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_lns16, ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_lns32, ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_cfloat32, ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_takum32, ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_dd_cascade, ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_td_cascade, ord: int = 2) -> floatnorm(x: mtl5._core.DenseVector_qd_cascade, ord: int = 2) -> float