Class: Matrc::MatrizDispersa
- Defined in:
- lib/matrc/matriz_dispersa.rb
Instance Attribute Summary
Attributes inherited from Matriz
Instance Method Summary collapse
- #[](row, col) ⇒ Object
- #[]=(row, col, val) ⇒ Object
-
#initialize(row, col) ⇒ MatrizDispersa
constructor
A new instance of MatrizDispersa.
Methods inherited from Matriz
#*, #+, #-, #==, #each, #max, #min, #to_s
Constructor Details
#initialize(row, col) ⇒ MatrizDispersa
Returns a new instance of MatrizDispersa.
5 6 7 8 |
# File 'lib/matrc/matriz_dispersa.rb', line 5 def initialize(row, col) super(row,col) @matrizdisp = Hash.new(zero) end |