Method: Eigen::MatrixX#pretty_print

Defined in:
lib/eigen/matrixx.rb

#pretty_print(pp) ⇒ Object



67
68
69
70
71
72
73
74
# File 'lib/eigen/matrixx.rb', line 67

def pretty_print(pp)
    for i in 0..rows()-1
        for j in 0..cols()-1
            pp.text " #{self[i,j]}"
        end
        pp.text "\n"
    end
end