class Vector
Based on ruby 2.1
Public Class Methods
elements(array, copy=true)
click to toggle source
# 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