Global Variable

SPARSE_NORM_TWO

Norm Two

Declaration

var SPARSE_NORM_TWO: sparse_norm { get }

Discussion

Matrix element wise

sqrt( sumᵢ,ⱼ (A[i,j])² )

Matrix operator

Largest singular value of matrix, note that the operator SPARSE_NORM_TWO is significantly more expensive than other norm operations.

Vector element wise

sqrt( sumᵢ (x[i])² )