Skip to content

norm

Module: strata.core • Kind: function
Source: strata/core/linalg.mojo

def norm[dtype: DType = DType.float64](
A: Matrix[dtype],
ord: String = "fro",
) -> Float64
from strata.core import norm

Computes the Frobenius matrix norm: ||A||_F = sqrt(sum(A_ij^2)).