Class: Vector
- Inherits:
-
Object
- Object
- Vector
- Defined in:
- lib/spark/mllib/ruby_matrix/vector_adapter.rb
Overview
Based on ruby 2.1
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.elements(array, copy = true) ⇒ Object
6 7 8 |
# File 'lib/spark/mllib/ruby_matrix/vector_adapter.rb', line 6 def self.elements(array, copy=true) DenseVector.new(convert_to_array(array, copy)) end |