Programmer Guide/Command Reference/EVAL/init: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
(initial import) |
m (1 revision: Initial import) |
Revision as of 17:31, 18 November 2010
Contents
init
Create a vector or a matrix and initialize it with a particular value. This is a subcommand of the EVAL
command.
Usage:
init(rows, cols, value)
Parameters:
- rows
- The number of rows. There is no default.
- cols
- The number of columns. The default is
1
.
- value
- The value to initialize with. The default is
0
.
Return Type:
vector or matrix