Sha256: 75ee98f447a7a9b45d62cd77eed2381d3083bd38c08401fc32e4889c030ad6d0

Contents?: true

Size: 354 Bytes

Versions: 5

Compression:

Stored size: 354 Bytes

Contents

module Statsample::VectorShorthands
  # Creates a new Statsample::Vector object
  # Argument should be equal to Vector.new
  def to_vector(*args)
    Daru::Vector.new(self)
  end
end

class Array
  include Statsample::VectorShorthands
end

if Statsample.has_gsl?
  module GSL
    class Vector
      include Statsample::VectorShorthands
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
statsample-ekatena-2.0.2.1 lib/statsample-ekatena/vector.rb
statsample-ekatena-2.0.2 lib/statsample-ekatena/vector.rb
statsample-2.1.0 lib/statsample/vector.rb
statsample-2.0.2 lib/statsample/vector.rb
statsample-2.0.1 lib/statsample/vector.rb