Flowdock
method

imaginary

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Matrix
imaginary() public

Returns the imaginary part of the matrix.

Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]]
  => 1+2i  i  0
        1  2  3
Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]].imaginary
  =>   2i  i  0
        0  0  0
Show source
Register or log in to add new notes.