Class: Numeric
Instance Method Summary collapse
-
#b ⇒ Numeric
Get blue component.
-
#conj ⇒ Numeric
Compute complex conjugate.
-
#g ⇒ Numeric
Get green component.
-
#major(other) ⇒ Numeric
Get larger number of two numbers.
-
#minor(other) ⇒ Numeric
Get smaller number of two numbers.
-
#r ⇒ Numeric
Get red component.
Instance Method Details
#conj ⇒ Numeric
Compute complex conjugate
445 446 447 |
# File 'lib/multiarray.rb', line 445 def conj self end |
#major(other) ⇒ Numeric
Get larger number of two numbers
475 476 477 478 479 480 481 482 |
# File 'lib/multiarray.rb', line 475 def major( other ) if other.is_a? Numeric ( self >= other ).conditional self, other else x, y = other.coerce self x.major other end end |