class SparseMatrix::SparseVector

Attributes

i[RW]
j[RW]
value[RW]

Public Class Methods

new(i=0,j=0,v=0) click to toggle source
# File lib/sparse_matrix.rb, line 62
def initialize(i=0,j=0,v=0)
    @i = i
    @j = j
    @value = v
end

Public Instance Methods

to_s() click to toggle source
# File lib/sparse_matrix.rb, line 69
def to_s
    "#{@i},#{@j},#{@value}"
end