File r37/lisp/csl/html/r37_0577.html artifact e2befe6992 part of check-in d9e362f11e



<A NAME=band_matrix>

<TITLE>band_matrix</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>



<B>BAND_MATRIX</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>operator</B><P>
<P>
 
<P>
<P>
 <P> <H3> 
syntax: </H3>
<em>band_matrix</em>(&lt;expr\_list&gt;,&lt;square\_size&gt;) 
<P>
<P>
<P>
&lt;expr\_list&gt; :- either a single scalar expression or a list of 
 an odd number of scalar expressions. 
<P>
<P>
&lt;square\_size&gt; :- a positive integer. 
<P>
<P>
<em>band_matrix</em>creates a square matrix of dimension 
&lt;square\_size&gt;. The diagonal consists of the middle expression 
of the &lt;expr\_list&gt;. The expressions to the left of this fill 
the required number of sub_diagonals and the expressions to the right 
the super_diagonals. 
<P>
<P>
 <P> <H3> 
examples: </H3>
<P><PRE><TT>

band_matrix({x,y,z},6) 

  [y  z  0  0  0  0]
  [                ]
  [x  y  z  0  0  0]
  [                ]
  [0  x  y  z  0  0]
  [                ]
  [0  0  x  y  z  0]
  [                ]
  [0  0  0  x  y  z]
  [                ]
  [0  0  0  0  x  y]

</TT></PRE><P>Related functions: 
<A HREF=r37_0586.html>diagonal</A>. 
<P>
<P>


REDUCE Historical
REDUCE Sourceforge Project | Historical SVN Repository | GitHub Mirror | SourceHut Mirror | NotABug Mirror | Chisel Mirror | Chisel RSS ]