Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語 - Русский

Please note that the recommended version of Scilab is 6.1.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Scilab Help >> Data Structures > hypermat

# hypermat

initializes an N dimensional matrix. obsolete. Please use matrix.

### Syntax

`M = hypermat(dims [,v])`

### Arguments

dims

a vector of hypermatrix dimensions.

v

a vector of hypermatrix entries (default value `zeros(prod(dims),1)`).

### Description

The `hypermat` function initializes a hypermatrix whose dimensions are given in the vector `dims` and entries are given in optional argument `v`.

`M` data structure contains the vector of matrix dimensions `M('dims')` and the vector of entries `M('entries')` such as the leftmost subcripts vary first `[M(1,1,..);..;M(n1,1,..);...;M(1,n2,..);..;M(n1,n2,..);...]` If you build your own `hypermat`, you must be careful. The `M('dims')` entry must be a row vector whereas the `M('entries')` must be a column vector.

### Examples

```M = hypermat([2 3 2 2],1:24)
disp(size(M('dims')))
disp(size(M('entries')))

M_own            = mlist(['hm','dims','entries']);
M_own('dims')    = [2 3 2 2];
M_own('entries') = [1:24]';
disp(size(M_own('dims')))
disp(size(M_own('entries')))```

### See also

• hypermatrices — a Scilab object, N dimensional matrix in Scilab
• zeros — matrix made of zeros
• ones — matrix made of ones
• grand — Random numbers
• matrix — reshapes an array with the same number and order of components

### History

 Version Description 6.1 hypermat() removed.

### Comments

Add a comment:
Please login to comment this page.

 Report an issue << getfield Data Structures hypermatrices >>

 Scilab EnterprisesCopyright (c) 2011-2017 (Scilab Enterprises)Copyright (c) 1989-2012 (INRIA)Copyright (c) 1989-2007 (ENPC)with contributors Last updated:Mon Feb 12 19:26:51 CET 2018