Class: Vector

Inherits:
Object
  • Object
show all
Defined in:
lib/spark/mllib/ruby_matrix/vector_adapter.rb

Overview

Based on ruby 2.1

Direct Known Subclasses

Spark::Mllib::VectorAdapter

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