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) -> FloatParameters
- A:
The sparse matrix, A.
- norm:
Specify the norm to be computed. Must be one of Sparse_norm_one, Sparse_norm_two, Sparse_norm_inf, or Sparse_norm_r1. See discussion for further details.
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
sparse_matrix_vector_product_dense_double(_:_:_:_:_:_:_:)sparse_matrix_vector_product_dense_float(_:_:_:_:_:_:_:)sparse_vector_triangular_solve_dense_double(_:_:_:_:_:)sparse_vector_triangular_solve_dense_float(_:_:_:_:_:)sparse_outer_product_dense_double(_:_:_:_:_:_:_:_:_:)sparse_outer_product_dense_float(_:_:_:_:_:_:_:_:_:)sparse_permute_rows_double(_:_:)sparse_permute_rows_float(_:_:)sparse_permute_cols_double(_:_:)sparse_permute_cols_float(_:_:)sparse_elementwise_norm_double(_:_:)sparse_operator_norm_double(_:_:)sparse_operator_norm_float(_:_:)sparse_matrix_trace_double(_:_:)sparse_matrix_trace_float(_:_:)