Trait/Object

dsptools.numbers

Signed

Related Docs: object Signed | package numbers

Permalink

trait Signed[A] extends Any

A trait for things that have some notion of sign and the ability to ensure something has a positive sign.

Linear Supertypes
Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Signed
  2. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def abs(a: A): A

    Permalink

    An idempotent function that ensures an object has a non-negative sign.

  2. abstract def context_abs(a: A): A

    Permalink
  3. abstract def getClass(): Class[_]

    Permalink
    Definition Classes
    Any
  4. abstract def signum(a: A): ComparisonBundle

    Permalink

    Returns 0 if a is 0, > 0 if a is positive, and < 0 is a is negative.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  6. def hashCode(): Int

    Permalink
    Definition Classes
    Any
  7. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  8. def isSignNegative(a: A): Bool

    Permalink
  9. def isSignNonNegative(a: A): Bool

    Permalink
  10. def isSignNonPositive(a: A): Bool

    Permalink
  11. def isSignNonZero(a: A): Bool

    Permalink
  12. def isSignPositive(a: A): Bool

    Permalink
  13. def isSignZero(a: A): Bool

    Permalink
  14. def sign(a: A): Sign

    Permalink

    Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.

  15. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from Any

Ungrouped