Density of a matrix

From Linear

Definition

Suppose are positive integers and is a matrix. The density of is defined as the fraction of entries of that have nonzero value. Explicitly, it is the ratio:

The density of the matrix can also be defined as 1 minus its sparsity.

The density of a matrix can be any rational number in . For a matrix, the rational number must be expressible as an integer divided by .

Relation with other matrix measures

Measure Numerical relationship with density for a matrix ( if it is required to be square)
sparsity of a matrix The density and sparsity add up to 1.
rank of a matrix The density is at least equal to rank.
bandwidth of a matrix (for a square matrix) The bandwidth is at least equal to times the density (this can be improved somewhat by a constant order of magnitude of about 2).

Matrix operations

Matrix operation Lower bound on density of result Case where this occurs Upper bound on density of result Case where this occurs
Addition of two matrices and with densities and respectively For all positions where both entries are nonzero, they are negatives of one another.
Can be refined to
occurs when the set of positions with nonzero entries for is disjoint from the corresponding set for .
Multiplication of a matrix and a matrix
0 if
The case boils down to a Hadamard product computation. For , we can arrange for a zero product regardless of density by choosing the rows of and the columns of to be orthogonal.
Can be refined to
This occurs if there is exactly one column with nonzero entries in , and exactly one row with nonzero entries in , and the index number of the column and row coincide. The product in this case coincides with the Hadamard product of the nonzero column and the nonzero row.
Matrix transpose of a matrix , giving a matrix bound always attained precisely bound always attained precisely
Inverse matrix of a matrix ? (at least ) ? ? ?

|}