~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/programming/hypermat.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
hypermat          Scilab Group          Scilab Function            hypermat
 
2
NAME
 
3
   hypermat - initialize an  N dimensional matrices 
 
4
  
 
5
CALLING SEQUENCE
 
6
 M=hypermat(dims [,v])
 
7
PARAMETERS
 
8
 dims       : vector of hypermatrix dimensions
 
9
            
 
10
 v          : vector of hypermatrix entries (default value
 
11
            zeros(prod(dims),1))
 
12
            
 
13
DESCRIPTION
 
14
   Initialize an hypermatrix whose dimensions are given in the vector dims
 
15
  and entries are given in optional argument v  M data structure contains
 
16
  the vector of matrix dimensions M('dims') and the vector of entries
 
17
  M('entries') such as the leftmost subcripts vary first
 
18
  [M(1,1,..);..;M(n1,1,..);...;M(1,n2,..);..;M(n1,n2,..);...]
 
19
  
 
20
EXAMPLES
 
21
 M=hypermat([2 3 2 2],1:24)