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
Digit
,
End
Ordering
Alphabetic
By inheritance
Inherited
Natural
Serializable
ScalaNumericConversions
ScalaNumericAnyConversions
ScalaNumber
Number
Serializable
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Instance Constructors
new
Natural
()
Abstract Value Members
abstract
def
%
(
rd:
UInt
)
:
Natural
abstract
def
*
(
rd:
UInt
)
:
Natural
abstract
def
+
(
rd:
UInt
)
:
Natural
abstract
def
-
(
rd:
UInt
)
:
Natural
abstract
def
/
(
rd:
UInt
)
:
Natural
abstract
def
/%
(
rd:
UInt
)
: (
Natural
,
Natural
)
abstract
def
digit
:
UInt
Concrete Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
def
%
(
rhs:
Natural
)
:
Natural
def
%
(
rhs:
BigInt
)
:
BigInt
def
&
(
rhs:
UInt
)
:
Natural
def
&
(
rhs:
Natural
)
:
Natural
def
*
(
rhs:
Natural
)
:
Natural
def
*
(
rhs:
BigInt
)
:
BigInt
def
+
(
rhs:
Natural
)
:
Natural
def
+
(
rhs:
BigInt
)
:
BigInt
def
-
(
rhs:
Natural
)
:
Natural
def
-
(
rhs:
BigInt
)
:
BigInt
def
/
(
rhs:
Natural
)
:
Natural
def
/
(
rhs:
BigInt
)
:
BigInt
def
/%
(
rhs:
Natural
)
: (
Natural
,
Natural
)
def
/%
(
rhs:
BigInt
)
: (
BigInt
,
BigInt
)
def
/~
(
rhs:
Natural
)
:
Natural
def
/~
(
rhs:
BigInt
)
:
BigInt
def
/~
(
rd:
UInt
)
:
Natural
def
<
(
r:
BigInt
)
:
Boolean
def
<
(
r:
UInt
)
:
Boolean
def
<
(
rhs:
Natural
)
:
Boolean
def
<<
(
n:
Int
)
:
Natural
def
<=
(
r:
BigInt
)
:
Boolean
def
<=
(
r:
UInt
)
:
Boolean
def
<=
(
rhs:
Natural
)
:
Boolean
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
>
(
r:
BigInt
)
:
Boolean
def
>
(
r:
UInt
)
:
Boolean
def
>
(
rhs:
Natural
)
:
Boolean
def
>=
(
r:
BigInt
)
:
Boolean
def
>=
(
r:
UInt
)
:
Boolean
def
>=
(
rhs:
Natural
)
:
Boolean
def
>>
(
n:
Int
)
:
Natural
def
^
(
rhs:
UInt
)
:
Natural
def
^
(
rhs:
Natural
)
:
Natural
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
byteValue
()
:
Byte
Definition Classes
Number
def
chop
(
n:
Int
)
:
Natural
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
compare
(
rhs:
Natural
)
:
Int
def
compare
(
rhs:
UInt
)
:
Int
def
doubleValue
()
:
Double
Definition Classes
Natural
→ ScalaNumericAnyConversions → Number
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
equals
(
rhs:
Any
)
:
Boolean
Definition Classes
Natural
→ AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
floatValue
()
:
Float
Definition Classes
Natural
→ ScalaNumericAnyConversions → Number
def
foldDigitsLeft
[
A
]
(
a:
A
)
(
f: (
A
,
UInt
) ⇒
A
)
:
A
def
foldDigitsRight
[
A
]
(
a:
A
)
(
f: (
A
,
UInt
) ⇒
A
)
:
A
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
getDigitLength
:
Int
def
getNumBits
:
Int
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
def
intValue
()
:
Int
Definition Classes
Natural
→ ScalaNumericAnyConversions → Number
def
isEven
:
Boolean
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
isOdd
:
Boolean
def
isOne
:
Boolean
def
isValidByte
:
Boolean
Definition Classes
ScalaNumericAnyConversions
def
isValidChar
:
Boolean
Definition Classes
ScalaNumericAnyConversions
def
isValidInt
:
Boolean
Definition Classes
ScalaNumericAnyConversions
def
isValidShort
:
Boolean
Definition Classes
ScalaNumericAnyConversions
def
isWhole
()
:
Boolean
Definition Classes
Natural
→ ScalaNumericAnyConversions → ScalaNumber
def
isZero
:
Boolean
def
longValue
()
:
Long
Definition Classes
Natural
→ ScalaNumericAnyConversions → Number
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
pow
(
rhs:
UInt
)
:
Natural
def
pow
(
rhs:
Natural
)
:
Natural
def
powerOfTwo
:
Int
def
reversed
:
Natural
def
shortValue
()
:
Short
Definition Classes
Number
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toArray
:
Array
[
Int
]
def
toBigInt
:
BigInt
def
toByte
:
Byte
Definition Classes
ScalaNumericAnyConversions
def
toChar
:
Char
Definition Classes
ScalaNumericAnyConversions
def
toDouble
:
Double
Definition Classes
ScalaNumericAnyConversions
def
toFloat
:
Float
Definition Classes
ScalaNumericAnyConversions
def
toInt
:
Int
Definition Classes
Natural
→ ScalaNumericAnyConversions
def
toList
:
List
[
UInt
]
def
toLong
:
Long
Definition Classes
Natural
→ ScalaNumericAnyConversions
def
toRepr
:
String
def
toShort
:
Short
Definition Classes
ScalaNumericAnyConversions
def
toString
()
:
String
Definition Classes
Natural
→ AnyRef → Any
def
trim
:
Natural
def
underlying
()
:
AnyRef
Definition Classes
Natural
→ ScalaNumericConversions → ScalaNumericAnyConversions → ScalaNumber
def
unifiedPrimitiveEquals
(
x:
Any
)
:
Boolean
Attributes
protected
Definition Classes
ScalaNumericAnyConversions
def
unifiedPrimitiveHashcode
()
:
Int
Attributes
protected
Definition Classes
ScalaNumericAnyConversions
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
|
(
rhs:
UInt
)
:
Natural
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