Contents

sparse_elementwise_norm_float(_:_:)

Computes the specified element-wise norm of the single-precision sparse matrix A.

Declaration

func sparse_elementwise_norm_float(_ A: sparse_matrix_float!, _ norm: sparse_norm) -> Float

Parameters

Return Value

The requested norm.

Discussion

This is the norm of the matrix treated as a vector, not the operator norm. Specify one of:

| SPARSE_NORM_ONE | sum over i,j ( | A[i,j] | ) | |—|—| | SPARSE_NORM_TWO | sqrt ( sum over i,j (A[i,j])² ) | | SPARSE_NORM_INF | max over i,j ( | A[i,j] | ) | | SPARSE_NORM_R1 | sum over j ( sqrt ( sum over i ( A[i,j]² ) ) ) |

If norm is not one of the enumerated norm types, the default value is SPARSE_NORM_INF.

See Also

Matrix-Vector Operations