Class: Range

Inherits:
Object show all
Defined in:
lib/jblas/extensions.rb

Overview

Extensions to Ruby’s Range class

Instance Method Summary collapse

Instance Method Details

#to_matObject

Convert to matrix object.



62
63
64
# File 'lib/jblas/extensions.rb', line 62

def to_mat
  self.to_a.to_mat
end