Matrix Function

Generates a matrix


Description

The Function \(Matrix\) generates a matrix of the specified size, initialized with a value.

If only one parameter \(a \) is specified, matrix generates a matrix of size \(a * a \). All elements then contain the value \(0 \).

Optionally, a parameter \(v \) can be specified with whose value the matrix should be initialized, and a parameter \(b \) indicating the number of lines.


Syntax

 

Matrix (a)

Matrix (a, v)

Matrix (a, b, v)

Size

a x a

a x a

a x b

Content

All fields contain the value 0

All fields contain the value v

All fields contain the value v; Number of lines is b


Example