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
430 431 432 |
# File 'lib/multiarray.rb', line 430 def conj self end |
#major(other) ⇒ Numeric
Get larger number of two numbers
460 461 462 463 464 465 466 467 |
# File 'lib/multiarray.rb', line 460 def major( other ) if other.is_a? Numeric ( self >= other ).conditional self, other else x, y = other.coerce self x.major other end end |