Packages

final class DrxInt extends AnyVal

Source
numeric.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DrxInt
  2. AnyVal
  3. Any
Implicitly
  1. by richDrxAny
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DrxInt(v: Int)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. def #/(z: Int): Ratio
  4. def %/(w: Double): Double
  5. def %?(w: Int): Boolean
  6. def *(r: Ratio): Ratio
  7. def *(c: Complex): Complex
  8. def *(vec: Vec): Vec
  9. def *[A](other: BaseValue[A]): A
  10. def **(e: Int): Long
  11. def **(e: Double): Double
  12. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from DrxInt toany2stringadd[DrxInt] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  13. def +-(w: Double): Bound[Double]
  14. 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
    @inline()
  15. def /(t: Time): Frequency
  16. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  17. def G: Long
  18. def M: Int
  19. 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
  20. 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
  21. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  22. def base(charset: IndexedSeq[Char]): String
  23. def base(radix: Int, padZeroToWidth: Int = 1): String
  24. def base(radix: Int): String
  25. def bit(i: Int): Boolean

    returns true or false if a bit is set where i=0 is the LSB

  26. def bitFlip(i: Int): Int
  27. def bitNot(i: Int): Boolean
  28. def bitSet(i: Int, b: Boolean): Int
  29. def choose(k: Int): Int

    binomial coefficients, pascals triangle (n \choose k) = n^k/k!

  30. def dB: Double
  31. def day: Time
  32. def deg: Angle
  33. def diff(w: Int): Int
  34. def divCeil(k: Int): Long
  35. def divFloor(k: Int): Long
  36. def divMod(k: Int): (Int, Int)
  37. def double: Int
  38. 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
  39. def ensuring(cond: (DrxInt) => Boolean, msg: => Any): DrxInt
    Implicit
    This member is added by an implicit conversion from DrxInt toEnsuring[DrxInt] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  40. def ensuring(cond: (DrxInt) => Boolean): DrxInt
    Implicit
    This member is added by an implicit conversion from DrxInt toEnsuring[DrxInt] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  41. def ensuring(cond: Boolean, msg: => Any): DrxInt
    Implicit
    This member is added by an implicit conversion from DrxInt toEnsuring[DrxInt] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  42. def ensuring(cond: Boolean): DrxInt
    Implicit
    This member is added by an implicit conversion from DrxInt toEnsuring[DrxInt] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  43. def even: Boolean
  44. def exp(base: Double): Double

    nice way to flip things around rather than using base.pow(v); useful for chained equation descriptions

  45. def exp: Double
  46. def exp10: Double
  47. def exp2: Double
  48. def expE: Double
  49. def factorial: Long
  50. def factors: List[Int]

    prime factorization, not efficient but super simple and readable for one line of code and small primes*

  51. def foldLeft[T](acc: T)(f: (T) => T): T
  52. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from DrxInt toStringFormat[DrxInt] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  53. def ft: Length
  54. def g0: Acceleration
  55. def gamma: Long
  56. def gcd(z: Int): Int

    greatest common divisor

  57. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  58. def half: Int
  59. def hr: Time
  60. def hz: Frequency
  61. def i: Complex

    imaginary number notation

  62. def inv: Double
  63. def isEven: Boolean
  64. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  65. def isOdd: Boolean
  66. def isPrime: Boolean
  67. def iterate[T](acc: T)(f: (T) => T): T
  68. def k: Int
  69. def km: Length
  70. def lerp(b: Int)(amt: Double): Int
  71. def ln: Double
  72. def log(b: Double): Double
  73. def log: Double
  74. def log10: Double
  75. def log2: Double
  76. def logE: Double
  77. def m: Length
  78. def mean(w: Double): Double
  79. def minute: Time
  80. def modOption(w: Int): Option[Int]
  81. def month: Time
  82. def ms: Time
  83. def neg: Int
  84. def next: Int
  85. 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
  86. def not: Int
  87. def ns: Time
  88. def odd: Boolean
  89. 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
  90. def outOf(z: Int): Ratio
  91. def over(z: Int): Ratio

    return a Ratio (Rational) type reduced

  92. def percent: Ratio

    ratio construction by percent

  93. def plusOrMinus(w: Double): Bound[Double]
  94. def pow(e: Double): Double
  95. 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
  96. def prev: Int
  97. def px: Weight
  98. def rad: Angle
  99. def s: Time
  100. def sat(max: Int): Int
  101. def sat(min: Int, max: Int): Int
  102. def scan[T](acc: T)(f: (T) => T): List[T]
  103. def scanRight[T](acc: T)(f: (T) => T): List[T]
  104. def sgn: Int
  105. 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
  106. def sigmoid: Double
  107. 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
  108. def sq: Int
  109. def sqrt: Double
  110. def take(n: Int): Iterable[Double]
  111. 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
  112. def times(f: => Unit): Unit
  113. def toBig: BigDecimal
  114. def toByteArray: Array[Byte]
  115. def toString(): String
    Definition Classes
    Any
  116. def toWord: String
  117. def todB: Double
  118. def twosComp(depth: Int): Long
  119. def uniformHash: Int
  120. def unsigned: Long
  121. val v: Int
  122. def x: Vec
  123. def xy: Vec
  124. def xyz: Vec
  125. def y: Vec
  126. def yr: Time
  127. def z: Vec
  128. def ||(w: Double): Double
  129. def ~(w: Double): Bound[Double]
  130. def ~>(w: Double): Bound[Double]

Deprecated Value Members

  1. def #^(e: Int): Int
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.13) just use **, don't duplicate operator symbols

  2. 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

  3. def /:[T](acc: T)(f: (T) => T): T
    Annotations
    @deprecated
    Deprecated

    (Since version dp) use foldLeft instead in scala-2.13

  4. 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

  5. def bitset(i: Int, b: Boolean): Int
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use title case method name bitSet

  6. 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)

  7. 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.

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion richDrxAny fromDrxInt to DrxAny[DrxInt]

Inherited by implicit conversion any2stringadd fromDrxInt to any2stringadd[DrxInt]

Inherited by implicit conversion StringFormat fromDrxInt to StringFormat[DrxInt]

Inherited by implicit conversion Ensuring fromDrxInt to Ensuring[DrxInt]

Inherited by implicit conversion ArrowAssoc fromDrxInt to ArrowAssoc[DrxInt]

Ungrouped