Method: AppMath::Mat#prn
- Defined in:
- lib/linalg.rb
#prn(name) ⇒ Object
Prints the content of self and naming the output.
775 776 777 778 779 780 781 |
# File 'lib/linalg.rb', line 775 def prn(name) for i in 1..dim1 for j in 1..dim2 puts " #{name}[#{i}][#{j}] = " + self[i][j].to_s end end end |