final class DrxInt extends AnyVal
- Source
- numeric.scala
- Alphabetic
- By Inheritance
- DrxInt
- AnyVal
- Any
- by richDrxAny
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def #/(z: Int): Ratio
- def %/(w: Double): Double
- def %?(w: Int): Boolean
- def *(r: Ratio): Ratio
- def *(c: Complex): Complex
- def *(vec: Vec): Vec
- def *[A](other: BaseValue[A]): A
- def **(e: Int): Long
- def **(e: Double): Double
- def +(other: String): String
- def +-(w: Double): Bound[Double]
- def ->[B](y: B): (DrxInt, B)
- def /(t: Time): Frequency
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def G: Long
- def M: Int
- def applyIf(t: Boolean, f: (DrxInt) => DrxInt): DrxInt
- Implicit
- This member is added by an implicit conversion from DrxInt toDrxAny[DrxInt] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (DrxInt) => Boolean)(f: (DrxInt) => DrxInt): DrxInt
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from DrxInt toDrxAny[DrxInt] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def base(charset: IndexedSeq[Char]): String
- def base(radix: Int, padZeroToWidth: Int = 1): String
- def base(radix: Int): String
- def bit(i: Int): Boolean
returns true or false if a bit is set where i=0 is the LSB
- def bitFlip(i: Int): Int
- def bitNot(i: Int): Boolean
- def bitSet(i: Int, b: Boolean): Int
- def choose(k: Int): Int
binomial coefficients, pascals triangle (n \choose k) = n^k/k!
- def dB: Double
- def day: Time
- def deg: Angle
- def diff(w: Int): Int
- def divCeil(k: Int): Long
- def divFloor(k: Int): Long
- def divMod(k: Int): (Int, Int)
- def double: Int
- def elementOf(xs: Set[DrxInt]): Boolean
- Implicit
- This member is added by an implicit conversion from DrxInt toDrxAny[DrxInt] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (DrxInt) => Boolean, msg: => Any): DrxInt
- def ensuring(cond: (DrxInt) => Boolean): DrxInt
- def ensuring(cond: Boolean, msg: => Any): DrxInt
- def ensuring(cond: Boolean): DrxInt
- def even: Boolean
- def exp(base: Double): Double
nice way to flip things around rather than using base.pow(v); useful for chained equation descriptions
- def exp: Double
- def exp10: Double
- def exp2: Double
- def expE: Double
- def factorial: Long
- def factors: List[Int]
prime factorization, not efficient but super simple and readable for one line of code and small primes*
- def foldLeft[T](acc: T)(f: (T) => T): T
- def formatted(fmtstr: String): String
- def ft: Length
- def g0: Acceleration
- def gamma: Long
- def gcd(z: Int): Int
greatest common divisor
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def half: Int
- def hr: Time
- def hz: Frequency
- def i: Complex
imaginary number notation
- def inv: Double
- def isEven: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isOdd: Boolean
- def isPrime: Boolean
- def iterate[T](acc: T)(f: (T) => T): T
- def k: Int
- def km: Length
- def lerp(b: Int)(amt: Double): Int
- def ln: Double
- def log(b: Double): Double
- def log: Double
- def log10: Double
- def log2: Double
- def logE: Double
- def m: Length
- def mean(w: Double): Double
- def minute: Time
- def modOption(w: Int): Option[Int]
- def month: Time
- def ms: Time
- def neg: Int
- def next: Int
- def noneIf(f: (DrxInt) => Boolean): Option[DrxInt]
- Implicit
- This member is added by an implicit conversion from DrxInt toDrxAny[DrxInt] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def not: Int
- def ns: Time
- def odd: Boolean
- def optionIf(f: (DrxInt) => Boolean): Option[DrxInt]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from DrxInt toDrxAny[DrxInt] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def outOf(z: Int): Ratio
- def over(z: Int): Ratio
return a Ratio (Rational) type reduced
- def percent: Ratio
ratio construction by percent
- def plusOrMinus(w: Double): Bound[Double]
- def pow(e: Double): Double
- def preApply[B](f: (DrxInt) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from DrxInt toDrxAny[DrxInt] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def prev: Int
- def px: Weight
- def rad: Angle
- def s: Time
- def sat(max: Int): Int
- def sat(min: Int, max: Int): Int
- def scan[T](acc: T)(f: (T) => T): List[T]
- def scanRight[T](acc: T)(f: (T) => T): List[T]
- def sgn: Int
- def sideEffect(f: (DrxInt) => Unit): DrxInt
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from DrxInt toDrxAny[DrxInt] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def sigmoid: Double
- def someIf(f: (DrxInt) => Boolean): Option[DrxInt]
- Implicit
- This member is added by an implicit conversion from DrxInt toDrxAny[DrxInt] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def sq: Int
- def sqrt: Double
- def take(n: Int): Iterable[Double]
- val thisAny: DrxInt
- Implicit
- This member is added by an implicit conversion from DrxInt toDrxAny[DrxInt] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def times(f: => Unit): Unit
- def toBig: BigDecimal
- def toByteArray: Array[Byte]
- def toString(): String
- Definition Classes
- Any
- def toWord: String
- def todB: Double
- def twosComp(depth: Int): Long
- def uniformHash: Int
- def unsigned: Long
- val v: Int
- def x: Vec
- def xy: Vec
- def xyz: Vec
- def y: Vec
- def yr: Time
- def z: Vec
- def ||(w: Double): Double
- def ~(w: Double): Bound[Double]
- def ~>(w: Double): Bound[Double]
Deprecated Value Members
- def #^(e: Int): Int
- Annotations
- @deprecated
- Deprecated
(Since version 0.2.13) just use **, don't duplicate operator symbols
- def #^(e: Double): Double
consider alternative exponent function for drx exponents that matches eponential as higher precidence than / or *
consider alternative exponent function for drx exponents that matches eponential as higher precidence than / or *
- Annotations
- @deprecated
- Deprecated
(Since version 0.2.13) just use **, don't duplicate operator symbols
- def /:[T](acc: T)(f: (T) => T): T
- Annotations
- @deprecated
- Deprecated
(Since version dp) use foldLeft instead in scala-2.13
- def ?>(f: (DrxInt) => Boolean): Option[DrxInt]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from DrxInt toDrxAny[DrxInt] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to many symbols are hard to undertand
- def bitset(i: Int, b: Boolean): Int
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use title case method name bitSet
- def |>[B](f: (DrxInt) => B): B
- Implicit
- This member is added by an implicit conversion from DrxInt toDrxAny[DrxInt] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
preApply
if you must (symbols are concise without concision)
- def →[B](y: B): (DrxInt, B)
- Implicit
- This member is added by an implicit conversion from DrxInt toArrowAssoc[DrxInt] 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.