[−][src]Macro artha::matrix
Creates a matrix containing the arguments.
matrix!
allows Matrix
to be define in similary manner to Vec
or arrays.
Since Matrix
is a 2D matrix, you have to put []
around the inner
data as well.
For example:
let x1 = matrix![[2., 3.],[1., 2.],[3., 5.]]; let x2 = matrix![[2, 3, 5],[1, 2, 5]]; let x3 = matrix![[3],[4],[5]];