Table of Contents
Index
You can index matrices in the same way one indexes Lua tables
Example
Input
- Example.Quanty
A = Matrix.New({{1,2},{3,4}}) B = A[2] print("A[2] = ",B) C = A[2][1] print("A[2][1] = ",C)
Result
A[2] = { 3 , 4 } A[2][1] = 3
You can index matrices in the same way one indexes Lua tables
A = Matrix.New({{1,2},{3,4}}) B = A[2] print("A[2] = ",B) C = A[2][1] print("A[2][1] = ",C)
A[2] = { 3 , 4 } A[2][1] = 3