spire.math

Natural

sealed abstract class Natural extends ScalaNumber with ScalaNumericConversions with Serializable

Self Type
Natural
Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, ScalaNumericConversions, ScalaNumericAnyConversions, ScalaNumber, java.lang.Number, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Natural
  2. Serializable
  3. ScalaNumericConversions
  4. ScalaNumericAnyConversions
  5. ScalaNumber
  6. Number
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Natural()

Abstract Value Members

  1. abstract def %(rd: UInt): Natural

  2. abstract def *(rd: UInt): Natural

  3. abstract def +(rd: UInt): Natural

  4. abstract def -(rd: UInt): Natural

  5. abstract def /(rd: UInt): Natural

  6. abstract def /%(rd: UInt): (Natural, Natural)

  7. abstract def digit: UInt

Concrete Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. def %(rhs: Natural): Natural

  4. def %(rhs: BigInt): BigInt

  5. def &(rhs: UInt): Natural

  6. def &(rhs: Natural): Natural

  7. def *(rhs: Natural): Natural

  8. def *(rhs: BigInt): BigInt

  9. def +(rhs: Natural): Natural

  10. def +(rhs: BigInt): BigInt

  11. def -(rhs: Natural): Natural

  12. def -(rhs: BigInt): BigInt

  13. def /(rhs: Natural): Natural

  14. def /(rhs: BigInt): BigInt

  15. def /%(rhs: Natural): (Natural, Natural)

  16. def /%(rhs: BigInt): (BigInt, BigInt)

  17. def /~(rhs: Natural): Natural

  18. def /~(rhs: BigInt): BigInt

  19. def /~(rd: UInt): Natural

  20. def <(r: BigInt): Boolean

  21. def <(r: UInt): Boolean

  22. def <(rhs: Natural): Boolean

  23. def <<(n: Int): Natural

  24. def <=(r: BigInt): Boolean

  25. def <=(r: UInt): Boolean

  26. def <=(rhs: Natural): Boolean

  27. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  28. def >(r: BigInt): Boolean

  29. def >(r: UInt): Boolean

  30. def >(rhs: Natural): Boolean

  31. def >=(r: BigInt): Boolean

  32. def >=(r: UInt): Boolean

  33. def >=(rhs: Natural): Boolean

  34. def >>(n: Int): Natural

  35. def ^(rhs: UInt): Natural

  36. def ^(rhs: Natural): Natural

  37. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  38. def byteValue(): Byte

    Definition Classes
    Number
  39. def chop(n: Int): Natural

  40. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def compare(rhs: Natural): Int

  42. def compare(rhs: UInt): Int

  43. def doubleValue(): Double

    Definition Classes
    Natural → ScalaNumericAnyConversions → Number
  44. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  45. final def equals(rhs: Any): Boolean

    Definition Classes
    Natural → AnyRef → Any
  46. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  47. def floatValue(): Float

    Definition Classes
    Natural → ScalaNumericAnyConversions → Number
  48. def foldDigitsLeft[A](a: A)(f: (A, UInt) ⇒ A): A

  49. def foldDigitsRight[A](a: A)(f: (A, UInt) ⇒ A): A

  50. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  51. def getDigitLength: Int

  52. def getNumBits: Int

  53. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  54. def intValue(): Int

    Definition Classes
    Natural → ScalaNumericAnyConversions → Number
  55. def isEven: Boolean

  56. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  57. def isOdd: Boolean

  58. def isOne: Boolean

  59. def isValidByte: Boolean

    Definition Classes
    ScalaNumericAnyConversions
  60. def isValidChar: Boolean

    Definition Classes
    ScalaNumericAnyConversions
  61. def isValidInt: Boolean

    Definition Classes
    ScalaNumericAnyConversions
  62. def isValidShort: Boolean

    Definition Classes
    ScalaNumericAnyConversions
  63. def isWhole(): Boolean

    Definition Classes
    Natural → ScalaNumericAnyConversions → ScalaNumber
  64. def isZero: Boolean

  65. def longValue(): Long

    Definition Classes
    Natural → ScalaNumericAnyConversions → Number
  66. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  67. final def notify(): Unit

    Definition Classes
    AnyRef
  68. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  69. def pow(rhs: UInt): Natural

  70. def pow(rhs: Natural): Natural

  71. def powerOfTwo: Int

  72. def reversed: Natural

  73. def shortValue(): Short

    Definition Classes
    Number
  74. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  75. def toArray: Array[Int]

  76. def toBigInt: BigInt

  77. def toByte: Byte

    Definition Classes
    ScalaNumericAnyConversions
  78. def toChar: Char

    Definition Classes
    ScalaNumericAnyConversions
  79. def toDouble: Double

    Definition Classes
    ScalaNumericAnyConversions
  80. def toFloat: Float

    Definition Classes
    ScalaNumericAnyConversions
  81. def toInt: Int

    Definition Classes
    Natural → ScalaNumericAnyConversions
  82. def toList: List[UInt]

  83. def toLong: Long

    Definition Classes
    Natural → ScalaNumericAnyConversions
  84. def toRepr: String

  85. def toShort: Short

    Definition Classes
    ScalaNumericAnyConversions
  86. def toString(): String

    Definition Classes
    Natural → AnyRef → Any
  87. def trim: Natural

  88. def underlying(): AnyRef

    Definition Classes
    Natural → ScalaNumericConversions → ScalaNumericAnyConversions → ScalaNumber
  89. def unifiedPrimitiveEquals(x: Any): Boolean

    Attributes
    protected
    Definition Classes
    ScalaNumericAnyConversions
  90. def unifiedPrimitiveHashcode(): Int

    Attributes
    protected
    Definition Classes
    ScalaNumericAnyConversions
  91. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  93. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  94. def |(rhs: UInt): Natural

  95. def |(rhs: Natural): Natural

Inherited from Serializable

Inherited from ScalaNumericConversions

Inherited from ScalaNumericAnyConversions

Inherited from ScalaNumber

Inherited from java.lang.Number

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped