Class: Matrix

Inherits:
Object
  • Object
show all
Defined in:
lib/cs_matrix.rb

Overview

Useful Class Matrix mixins.

require 'cs' # get the CS gem require 'cs_matrix.rb' # get the CS Matrix mixin

And now you can do this:

<code>

puts 7.fibonacci() # prints 8

</code>

Instance Method Summary collapse

Instance Method Details

#lower_rightObject

Useful for dealing with matrices. Return the lower, right-hand element of a given matrix.



20
21
22
# File 'lib/cs_matrix.rb', line 20

def lower_right
  return CS::lower_right(self)
end