Home > brede > brede_mat_density.m

brede_mat_density

PURPOSE ^

brede_mat_density - Density of a matrix

SYNOPSIS ^

function d = brede_mat_density(M)

DESCRIPTION ^

 brede_mat_density    - Density of a matrix

       d = brede_mat_density(M)

       Input:  M  'Mat' structure or numerical matrix

       Output: d  density of matrix

       Computes the density of the matrix (a value between 0 and 1),
       ie, the fraction of non-zero elements compared to the total
       number of element. 

       The sparsity is the "opposite": 
 
            sparsity = 1 - density

       See also BREDE, BREDE_MAT

 $Id: brede_mat_density.m,v 1.2 2003/12/02 11:10:01 fnielsen Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 27-Nov-2009 18:11:22 by m2html © 2005