Density of a matrix

From Linear
Revision as of 16:17, 1 May 2014 by Vipul (talk | contribs) (Created page with "==Definition== Suppose <math>m,n</math> are positive integers and <math>A</math> is a <math>m \times n</math> matrix. The '''density''' of <math>A</math> is defined as the fr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Definition

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

|{(i,j){1,2,,m}×{1,2,,n}:aij0}|mn

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 [0,1]. For a m×n matrix, the rational number must be expressible as an integer divided by mn.

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 m×n matrices A and B with densities dA and dB respectively |dAdB| For all positions where both entries are nonzero, they are negatives of one another. dA+dB
Can be refined to min{dA+dB,1}
dA+dB occurs when the set of positions with nonzero entries for A is disjoint from the corresponding set for B.
Multiplication of a m×n matrix A and a n×p matrix B dAdB</math.if<math>n=1
0 if n>1
The n=1 case boils down to a Hadamard product computation. For n>1, we can arrange for a zero product regardless of density by choosing the rows of A and the columns of B to be orthogonal. n2dAdB
Can be refined to min{n2dAdB,1}
This occurs if there is exactly one column with nonzero entries in A, and exactly one row with nonzero entries in B, and the index number of the column and row coincide. The product AB in this case coincides with the Hadamard product of the nonzero column and the nonzero row.
Matrix transpose of a m×n matrix A, giving a n×m matrix AT dA bound always attained precisely dA bound always attained precisely
Inverse matrix of a n×n matrix A ? (at least 1/n) ? ? ?

|}