sealed trait Dense extends AnyRef
Typelevel representation of dense numbers, stored as a list of Dense.Digit
Author:
Harshad Deo
- Since
0.1
- Grouped
- Alphabetic
- By Inheritance
- Dense
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract type Add[b <: Dense] <: Dense
Add to the number
Add to the number
Author:
Harshad Deo
- Since
0.1
- type Compare[B <: Dense] = CompareC[B, EQ]
Compares with the other dense number
Compares with the other dense number
Author:
Harshad Deo
- Since
0.1
- abstract type CompareC[B <: Dense, Carry <: Comparison] <: Comparison
Author:
Harshad Deo
- Attributes
- protected
- Since
0.1
- abstract type Dec <: Dense
Decrement the number
Decrement the number
Author:
Harshad Deo
- Since
0.1
- abstract type ExpHelper[arg <: Dense, res <: Dense] <: Dense
Author:
Harshad Deo
- Attributes
- protected
- Since
0.1
- abstract type Inc <: Dense
Increment the number
Increment the number
Author:
Harshad Deo
- Since
0.1
- abstract type Karatsuba[x <: Dense, res <: Dense] <: Dense
Author:
Harshad Deo
- Attributes
- protected
- Since
0.1
- abstract type Len <: Dense
Author:
Harshad Deo
- Attributes
- protected
- Since
0.1
- abstract type Match[NonZero <: Up, IfZero <: Up, Up] <: Up
Typeconstructor for querying whether this is zero
Typeconstructor for querying whether this is zero
Author:
Harshad Deo
- Since
0.1
- type Mult[b <: Dense] = Mult.b.Match[Karatsuba[b, DNil], DNil, Dense]
Multiply with the number
Multiply with the number
Author:
Harshad Deo
- Since
0.1
- abstract type ShiftL <: Dense
Unsigned left shift
Unsigned left shift
Author:
Harshad Deo
- Since
0.1
- abstract type ShiftR <: Dense
Unsigned right shift
Unsigned right shift
Author:
Harshad Deo
- Since
0.1
- abstract type Sq <: Dense
Square the number
Square the number
Author:
Harshad Deo
- Since
0.1
- type YodaExp[b <: Dense] = ExpHelper[b, _1]
Yoda exponent - to the power of the base, raise the exponent (this is the base).
Yoda exponent - to the power of the base, raise the exponent (this is the base). Implemented this way for efficiency
Author:
Harshad Deo
- Since
0.1
- abstract type digit <: Digit
Lowest priority bit
Lowest priority bit
Author:
Harshad Deo
- Since
0.1
- abstract type tail <: Dense
Rest of the bits, stored in reverse order or priority
Rest of the bits, stored in reverse order or priority
Author:
Harshad Deo
- Since
0.1
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Dense, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def ensuring(cond: (Dense) => Boolean, msg: => Any): Dense
- def ensuring(cond: (Dense) => Boolean): Dense
- def ensuring(cond: Boolean, msg: => Any): Dense
- def ensuring(cond: Boolean): Dense
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
- def →[B](y: B): (Dense, B)
- Implicit
- This member is added by an implicit conversion from Dense toArrowAssoc[Dense] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.