Class: JBLAS::DoubleMatrix
- Inherits:
-
Object
- Object
- JBLAS::DoubleMatrix
- Defined in:
- lib/lsh/math_util_jblas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.json_create(o) ⇒ Object
67 68 69 |
# File 'lib/lsh/math_util_jblas.rb', line 67 def self.json_create(o) from_array(o['data']).t end |
Instance Method Details
#to_json(*a) ⇒ Object
60 61 62 63 64 65 |
# File 'lib/lsh/math_util_jblas.rb', line 60 def to_json(*a) { 'json_class' => 'JBLAS::DoubleMatrix', 'data' => to_a, }.to_json(*a) end |