Sha256: 5d440f0075c814aaacd80354a40f36eea88622900d16bfb788fd3487c3954d38

Contents?: true

Size: 778 Bytes

Versions: 1

Compression:

Stored size: 778 Bytes

Contents

class Array
  def daru_vector name=nil, index=nil
    Daru::Vector.new name, self, index
  end

  alias_method :dv, :daru_vector

  def to_index
    Daru::Index.new self
  end
end

class Range
  def daru_vector name=nil, index=nil
    Daru::Vector.new name, self, index
  end

  alias_method :dv, :daru_vector

  def to_index
    Daru::Index.new self.to_a
  end
end

class Hash
  def daru_vector index=nil
    Daru::Vector.new self.values[0], self.keys[0], index
  end

  alias_method :dv, :daru_vector
end

class NMatrix
  def daru_vector name=nil, index=nil
    Daru::Vector.new name, self, index
  end

  alias_method :dv, :daru_vector
end

class MDArray
  def daru_vector name=nil, index=nil
    Daru::Vector.new name, self, index
  end

  alias_method :dv, :daru_vector
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
daru-0.0.3 lib/daru/monkeys.rb