m

Initializes a new matrix
  • Empty matrix with 2 rows and 1 column: $m = m -rows 2 -columns 1
  • From string: $m = m "1 5;5 9"
  • From file: $m = m -matrixFile Samples\sampleMatrix.txt

i

Initializes a new identity matrix
  • Identity matrix of order 5: i 5

t

Transpose
  • m "1 0" | t
  • t $m

inv

Inverse
  • inv $m
  • m "4 5; 2 7" | inv

det

Determinant
  • det $m
  • m "4 5; 2 7" | det

trc

Trace
  • trc $m
  • m "4 5; 2 7" | trc

$m.function()

Calls a function on the matrix object
  • Get the diagonal of a matrix: $m.Diagonal()
  • Enumerate available members: $m.<tab>

Last edited Jun 29, 2013 at 6:40 AM by firazsamet, version 7

Comments

No comments yet.