Class: SparseMatrix::AbstractMatrix
- Inherits:
-
Object
- Object
- SparseMatrix::AbstractMatrix
show all
- Defined in:
- lib/sparse_matrix.rb
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of AbstractMatrix.
26
27
28
29
|
# File 'lib/sparse_matrix.rb', line 26
def initialize(r=0,c=0)
@row = r
@column = c
end
|
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column.
31
32
33
|
# File 'lib/sparse_matrix.rb', line 31
def column
@column
end
|
#row ⇒ Object
Returns the value of attribute row.
31
32
33
|
# File 'lib/sparse_matrix.rb', line 31
def row
@row
end
|
Instance Method Details
#*(b) ⇒ Object
48
49
50
|
# File 'lib/sparse_matrix.rb', line 48
def *(b)
raise "Error. metodo no definido."
end
|
#+(b) ⇒ Object
45
46
47
|
# File 'lib/sparse_matrix.rb', line 45
def +(b)
raise "Error. metodo no definido."
end
|
#print_matrix ⇒ Object
41
42
43
|
# File 'lib/sparse_matrix.rb', line 41
def print_matrix
raise "Error. metodo no definido."
end
|
#read_matrix ⇒ Object
33
34
35
|
# File 'lib/sparse_matrix.rb', line 33
def read_matrix
raise "Error. metodo no definido."
end
|
#to_s ⇒ Object
37
38
39
|
# File 'lib/sparse_matrix.rb', line 37
def to_s
raise "Error. metodo no definido."
end
|