Method: TwoDMatrix#state

Defined in:
lib/csrmatrix.rb

#stateObject

FIXME: convert to protected value Contract C::None => :ArrayOf[ArrayOf,ArrayOf,ArrayOf,C::Nat,C::Nat,C::Nat]



101
102
103
104
105
106
# File 'lib/csrmatrix.rb', line 101

def state
  # returns the current state of the csrmatrix
  # pre self
  # post [@value, @row_pointer, @column_index, @rows, @columns, @dimension]
  [@val, @row_ptr, @col_ind, @rows, @columns, @ndim]
end