<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> 
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
<MAN>
  <LANGUAGE>fr</LANGUAGE>
  <TITLE>sprand  </TITLE>
  <TYPE>Scilab Function  </TYPE>
  <DATE>January 1995  </DATE>
  <SHORT_DESCRIPTION name="sprand">  matrice creuse aléatoire  </SHORT_DESCRIPTION>
  <CALLING_SEQUENCE>
  <CALLING_SEQUENCE_ITEM>sp=sprand(nrows,ncols,fill [,typ])  </CALLING_SEQUENCE_ITEM>
  </CALLING_SEQUENCE>
  <PARAM>
 <PARAM_INDENT>
  <PARAM_ITEM>
  <PARAM_NAME>nrows  </PARAM_NAME>
  <PARAM_DESCRIPTION>
  <SP>
    : entier (nombre de lignes)
</SP>
  </PARAM_DESCRIPTION> 
  </PARAM_ITEM>
  <PARAM_ITEM>
  <PARAM_NAME>ncols  </PARAM_NAME>
  <PARAM_DESCRIPTION>
  <SP>
    : entier (nombre de colonnes)
</SP>
  </PARAM_DESCRIPTION> 
  </PARAM_ITEM>
  <PARAM_ITEM>
  <PARAM_NAME>fill  </PARAM_NAME>
  <PARAM_DESCRIPTION>
  <SP>
    : coefficient de remplissage (densité)
</SP>
  </PARAM_DESCRIPTION> 
  </PARAM_ITEM>
  <PARAM_ITEM>
  <PARAM_NAME>typ  </PARAM_NAME>
  <PARAM_DESCRIPTION>
  <SP>
    : chaîne de caractères (<VERB>&apos;uniform&apos;</VERB> (par défaut) ou <VERB>&apos;normal&apos;</VERB>)
</SP>
  </PARAM_DESCRIPTION> 
  </PARAM_ITEM>
  <PARAM_ITEM>
  <PARAM_NAME>sp  </PARAM_NAME>
  <PARAM_DESCRIPTION>
  <SP>
    : matrice creuse
</SP>
  </PARAM_DESCRIPTION> 
  </PARAM_ITEM>
 </PARAM_INDENT>
  </PARAM>
  <DESCRIPTION>
  <P>
    <VERB>sp=sprand(nrows,ncols,fill)</VERB> renvoie une matrice creuse <VERB>sp</VERB> 
    avec <VERB>nrows</VERB> lignes, <VERB>ncols</VERB> colonnes et approximativement
    <VERB>fill*nrows*ncols</VERB> termes non-nuls.
  </P>
  <P>
    Si <VERB>typ=&apos;uniform&apos;</VERB> les termes non nuls suivent une loi uniforme sur [0,1].
    Si <VERB>typ=&apos;normal&apos;</VERB> les termes non nuls suivent une loi normale centrée réduite.
  </P>
  </DESCRIPTION>
  <EXAMPLE><![CDATA[
W=sprand(100,1000,0.001);
 ]]></EXAMPLE>
  <SEE_ALSO>
    <SEE_ALSO_ITEM> <LINK>sparse</LINK> </SEE_ALSO_ITEM>     <SEE_ALSO_ITEM> <LINK>full</LINK> </SEE_ALSO_ITEM>     <SEE_ALSO_ITEM> <LINK>rand</LINK> </SEE_ALSO_ITEM>     <SEE_ALSO_ITEM> <LINK>speye</LINK> </SEE_ALSO_ITEM>
  </SEE_ALSO>
</MAN>
