Function

sparse_elementwise_norm_double

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

Declaration

double sparse_elementwise_norm_double(sparse_matrix_double A, sparse_norm norm);

Parameters

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 ( sqrt 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

Multiplies the dense vector x by the sparse matrix A and adds the result to the dense vector y, with all operands containing double-precision values.

sparse_matrix_vector_product_dense_float

Multiplies the dense vector x by the sparse matrix A and adds the result to the dense vector y, with all operands containing single-precision values.

sparse_vector_triangular_solve_dense_double

Solves the system of equations x = alpha * T⁻¹ * x for x where x is a dense vector and T is a triangular sparse matrix, with all operands containing double-precision values.

sparse_vector_triangular_solve_dense_float

Solves the system of equations x = alpha * T⁻¹ * x for x where x is a dense vector and T is a triangular sparse matrix, with all operands containing single-precision values.

sparse_outer_product_dense_double

Computes the outer product of the dense vector x and the sparse vector y, with both operands containing double-precision values.

sparse_outer_product_dense_float

Computes the outer product of the dense vector x and the sparse vector y, with both operands containing single-precision values.

sparse_permute_rows_double

Permutes the rows of the double-precision sparse matrix A based on the provided permutation array.

sparse_permute_rows_float

Permutes the rows of the single-precision sparse matrix A based on the provided permutation array.

sparse_permute_cols_double

Permutes the columns of the double-precision sparse matrix A based on the provided permutation array.

sparse_permute_cols_float

Permutes the columns of the single-precision sparse matrix A based on the provided permutation array.

sparse_elementwise_norm_float

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

sparse_operator_norm_double

Computes the specified operator norm of the double-precision sparse matrix A.

sparse_operator_norm_float

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

sparse_matrix_trace_double

Computes the sum along the specified diagonal of the double-precision sparse matrix A.

sparse_matrix_trace_float

Computes the sum along the specified diagonal of the single-precision sparse matrix A.