Trait

dsptools.numbers

SIntInteger

Related Doc: package numbers

Permalink

trait SIntInteger extends SIntRing with SIntIsReal with ConvertableToSInt with ConvertableFromSInt with BinaryRepresentationSInt with IntegerBits[SInt] with hasContext

Linear Supertypes
IntegerBits[SInt], Integer[SInt], RealBits[SInt], Real[SInt], BinaryRepresentationSInt, BinaryRepresentation[SInt], ConvertableFromSInt, ChiselConvertableFrom[SInt], ConvertableToSInt, ConvertableTo[SInt], spire.math.ConvertableTo[SInt], SIntIsReal, SIntSigned, SIntOrder, IsIntegral[SInt], IsReal[SInt], Signed[SInt], Order[SInt], PartialOrder[SInt], Eq[SInt], SIntRing, hasContext, Ring[SInt], algebra.ring.Ring[SInt], Rng[SInt], AdditiveCommutativeGroup[SInt], algebra.ring.AdditiveGroup[SInt], Rig[SInt], MultiplicativeMonoid[SInt], Semiring[SInt], MultiplicativeSemigroup[SInt], AdditiveCommutativeMonoid[SInt], AdditiveCommutativeSemigroup[SInt], AdditiveMonoid[SInt], AdditiveSemigroup[SInt], Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SIntInteger
  2. IntegerBits
  3. Integer
  4. RealBits
  5. Real
  6. BinaryRepresentationSInt
  7. BinaryRepresentation
  8. ConvertableFromSInt
  9. ChiselConvertableFrom
  10. ConvertableToSInt
  11. ConvertableTo
  12. ConvertableTo
  13. SIntIsReal
  14. SIntSigned
  15. SIntOrder
  16. IsIntegral
  17. IsReal
  18. Signed
  19. Order
  20. PartialOrder
  21. Eq
  22. SIntRing
  23. hasContext
  24. Ring
  25. Ring
  26. Rng
  27. AdditiveCommutativeGroup
  28. AdditiveGroup
  29. Rig
  30. MultiplicativeMonoid
  31. Semiring
  32. MultiplicativeSemigroup
  33. AdditiveCommutativeMonoid
  34. AdditiveCommutativeSemigroup
  35. AdditiveMonoid
  36. AdditiveSemigroup
  37. Serializable
  38. Serializable
  39. AnyRef
  40. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def abs(a: SInt): SInt

    Permalink

    An idempotent function that ensures an object has a non-negative sign.

    An idempotent function that ensures an object has a non-negative sign.

    Definition Classes
    SIntIntegerSigned
  5. def additive: CommutativeGroup[SInt]

    Permalink
    Definition Classes
    AdditiveCommutativeGroup → AdditiveCommutativeMonoid → AdditiveCommutativeSemigroup → AdditiveGroup → AdditiveMonoid → AdditiveSemigroup
  6. def asFixed(a: SInt, proto: FixedPoint): FixedPoint

    Permalink
  7. def asFixed(a: SInt): FixedPoint

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def asReal(a: SInt): DspReal

    Permalink
  10. def ceil(a: SInt): SInt

    Permalink

    Rounds a the nearest integer that is greater than or equal to a.

    Rounds a the nearest integer that is greater than or equal to a.

    Definition Classes
    IsIntegralIsReal
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def compare(x: SInt, y: SInt): ComparisonBundle

    Permalink
    Definition Classes
    SIntOrderOrder
  13. def context: DspContext

    Permalink
    Definition Classes
    hasContext
  14. def context_abs(a: SInt): SInt

    Permalink
    Definition Classes
    SIntIntegerSigned
  15. def div2(a: SInt, n: Int): SInt

    Permalink
    Definition Classes
    SIntIntegerBinaryRepresentation
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def eqv(x: SInt, y: SInt): Bool

    Permalink

    Returns true if x and y are equivalent, false otherwise.

    Returns true if x and y are equivalent, false otherwise.

    Definition Classes
    SIntOrderOrderPartialOrderEq
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def floor(a: SInt): SInt

    Permalink

    Rounds a the nearest integer that is less than or equal to a.

    Rounds a the nearest integer that is less than or equal to a.

    Definition Classes
    IsIntegralIsReal
  21. def fromAlgebraic(a: Algebraic): SInt

    Permalink
    Definition Classes
    Real → ConvertableTo
  22. def fromBigDecimal(n: BigDecimal): SInt

    Permalink
    Definition Classes
    ConvertableToSInt → ConvertableTo
  23. def fromBigInt(n: BigInt): SInt

    Permalink
    Definition Classes
    SIntIntegerConvertableToSInt → ConvertableTo → Ring
  24. def fromByte(n: Byte): SInt

    Permalink
    Definition Classes
    ConvertableToSInt → ConvertableTo
  25. def fromDouble(d: Double, a: SInt): SInt

    Permalink
    Definition Classes
    ConvertableToSIntConvertableTo
  26. def fromDouble(n: Double): SInt

    Permalink
    Definition Classes
    ConvertableToSInt → ConvertableTo
  27. def fromDoubleWithFixedWidth(d: Double, a: SInt): SInt

    Permalink
    Definition Classes
    ConvertableToSIntConvertableTo
  28. def fromFloat(n: Float): SInt

    Permalink
    Definition Classes
    ConvertableToSInt → ConvertableTo
  29. def fromInt(n: Int): SInt

    Permalink
    Definition Classes
    SIntIntegerConvertableToSInt → ConvertableTo → Ring
  30. def fromLong(n: Long): SInt

    Permalink
    Definition Classes
    ConvertableToSInt → ConvertableTo
  31. def fromRational(a: Rational): SInt

    Permalink
    Definition Classes
    Real → ConvertableTo
  32. def fromReal(a: spire.math.Real): SInt

    Permalink
    Definition Classes
    Real → ConvertableTo
  33. def fromShort(n: Short): SInt

    Permalink
    Definition Classes
    ConvertableToSInt → ConvertableTo
  34. def fromType[B](n: B)(implicit c: ConvertableFrom[B]): SInt

    Permalink
    Definition Classes
    ConvertableToSInt → ConvertableTo
  35. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  36. def gt(x: SInt, y: SInt): Bool

    Permalink
    Definition Classes
    SIntOrderOrderPartialOrder
  37. def gteqv(x: SInt, y: SInt): Bool

    Permalink
    Definition Classes
    SIntOrderOrderPartialOrder
  38. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  39. def intPart(a: SInt): SInt

    Permalink
  40. def isEven(a: SInt): Bool

    Permalink
    Definition Classes
    IsIntegral
  41. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  42. def isOdd(a: SInt): Bool

    Permalink
    Definition Classes
    SIntIsRealIsIntegral
  43. def isOne(a: SInt)(implicit ev: algebra.Eq[SInt]): Boolean

    Permalink
    Definition Classes
    MultiplicativeMonoid
  44. def isSignNegative(a: SInt): Bool

    Permalink
    Definition Classes
    SIntSignedSigned
  45. def isSignNonNegative(a: SInt): Bool

    Permalink
    Definition Classes
    Signed
  46. def isSignNonPositive(a: SInt): Bool

    Permalink
    Definition Classes
    Signed
  47. def isSignNonZero(a: SInt): Bool

    Permalink
    Definition Classes
    Signed
  48. def isSignPositive(a: SInt): Bool

    Permalink
    Definition Classes
    Signed
  49. def isSignZero(a: SInt): Bool

    Permalink
    Definition Classes
    SIntSignedSigned
  50. def isWhole(a: SInt): Bool

    Permalink

    Returns true iff a is a an integer.

    Returns true iff a is a an integer.

    Definition Classes
    IsIntegralIsReal
  51. def isZero(a: SInt)(implicit ev: algebra.Eq[SInt]): Boolean

    Permalink
    Definition Classes
    AdditiveMonoid
  52. def lt(x: SInt, y: SInt): Bool

    Permalink
    Definition Classes
    SIntOrderOrderPartialOrder
  53. def lteqv(x: SInt, y: SInt): Bool

    Permalink
    Definition Classes
    SIntOrderOrderPartialOrder
  54. def max(x: SInt, y: SInt): SInt

    Permalink
    Definition Classes
    Order
  55. def min(x: SInt, y: SInt): SInt

    Permalink
    Definition Classes
    Order
  56. def minus(f: SInt, g: SInt): SInt

    Permalink
    Definition Classes
    SIntRing → AdditiveGroup
  57. def minusContext(f: SInt, g: SInt): SInt

    Permalink
    Definition Classes
    SIntRingRing
  58. def mod(a: SInt, b: SInt): SInt

    Permalink
    Definition Classes
    SIntIsRealIsIntegral
  59. def mul2(a: SInt, n: Int): SInt

    Permalink
    Definition Classes
    BinaryRepresentation
  60. def multiplicative: Monoid[SInt]

    Permalink
    Definition Classes
    MultiplicativeMonoid → MultiplicativeSemigroup
  61. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  62. def negate(f: SInt): SInt

    Permalink
    Definition Classes
    SIntRing → AdditiveGroup
  63. def negateContext(f: SInt): SInt

    Permalink
    Definition Classes
    SIntRingRing
  64. def neqv(x: SInt, y: SInt): Bool

    Permalink

    Returns false if x and y are equivalent, true otherwise.

    Returns false if x and y are equivalent, true otherwise.

    Definition Classes
    SIntOrderEq
  65. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  66. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  67. def on[B <: Data](f: (B) ⇒ SInt): Order[B]

    Permalink

    Defines an order on B by mapping B to A using f and using As order to order B.

    Defines an order on B by mapping B to A using f and using As order to order B.

    Definition Classes
    OrderPartialOrderEq
  68. def one: SInt

    Permalink
    Definition Classes
    SIntRing → MultiplicativeMonoid
  69. def partialCompare(x: SInt, y: SInt): ValidIO[ComparisonBundle]

    Permalink

    Result of comparing x with y.

    Result of comparing x with y. Returns ValidIO[ComparisonBundle] with valid false if operands are not comparable. If operands are comparable, bits.lt will be true if x < y and bits.eq will be true if x = y

    Definition Classes
    OrderPartialOrder
  70. def plus(f: SInt, g: SInt): SInt

    Permalink
    Definition Classes
    SIntRing → AdditiveSemigroup
  71. def plusContext(f: SInt, g: SInt): SInt

    Permalink
    Definition Classes
    SIntRingRing
  72. def pmax(x: SInt, y: SInt): ValidIO[SInt]

    Permalink

    Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

    Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

    Definition Classes
    PartialOrder
  73. def pmin(x: SInt, y: SInt): ValidIO[SInt]

    Permalink

    Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

    Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

    Definition Classes
    PartialOrder
  74. def positivePow(a: SInt, n: Int): SInt

    Permalink
    Attributes
    protected[this]
    Definition Classes
    MultiplicativeSemigroup
  75. def positiveSumN(a: SInt, n: Int): SInt

    Permalink
    Attributes
    protected[this]
    Definition Classes
    AdditiveSemigroup
  76. def pow(a: SInt, n: Int): SInt

    Permalink
    Definition Classes
    MultiplicativeMonoid → MultiplicativeSemigroup
  77. def product(as: TraversableOnce[SInt]): SInt

    Permalink
    Definition Classes
    MultiplicativeMonoid
  78. def reverse: Order[SInt]

    Permalink

    Defines an ordering on A where all arrows switch direction.

    Defines an ordering on A where all arrows switch direction.

    Definition Classes
    OrderPartialOrder
  79. def round(a: SInt): SInt

    Permalink

    Rounds a to the nearest integer (When the fractional part is 0.5, tie breaking rounds to positive infinity i.e.

    Rounds a to the nearest integer (When the fractional part is 0.5, tie breaking rounds to positive infinity i.e. round half up)

    Definition Classes
    IsIntegralIsReal
  80. def shl(a: SInt, n: UInt): SInt

    Permalink
  81. def shl(a: SInt, n: Int): SInt

    Permalink
  82. def shr(a: SInt, n: UInt): SInt

    Permalink
  83. def shr(a: SInt, n: Int): SInt

    Permalink
  84. def sign(a: SInt): Sign

    Permalink

    Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.

    Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.

    Definition Classes
    Signed
  85. def signBit(a: SInt): Bool

    Permalink
    Definition Classes
    SIntIntegerBinaryRepresentation
  86. def signum(a: SInt): ComparisonBundle

    Permalink

    Returns 0 if a is 0, > 0 if a is positive, and < 0 is a is negative.

    Returns 0 if a is 0, > 0 if a is positive, and < 0 is a is negative.

    Definition Classes
    SIntSignedSigned
  87. def sum(as: TraversableOnce[SInt]): SInt

    Permalink
    Definition Classes
    AdditiveMonoid
  88. def sumN(a: SInt, n: Int): SInt

    Permalink
    Definition Classes
    AdditiveGroup → AdditiveMonoid → AdditiveSemigroup
  89. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  90. def times(f: SInt, g: SInt): SInt

    Permalink
    Definition Classes
    SIntRing → MultiplicativeSemigroup
  91. def timesContext(f: SInt, g: SInt): SInt

    Permalink
    Definition Classes
    SIntRingRing
  92. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  93. def trimBinary(a: SInt, n: Option[Int]): SInt

    Permalink
  94. def trimBinary(a: SInt, n: Int): SInt

    Permalink
  95. def truncate(a: SInt): SInt

    Permalink
    Definition Classes
    IsIntegralIsReal
  96. def tryProduct(as: TraversableOnce[SInt]): Option[SInt]

    Permalink
    Definition Classes
    MultiplicativeMonoid → MultiplicativeSemigroup
  97. def trySum(as: TraversableOnce[SInt]): Option[SInt]

    Permalink
    Definition Classes
    AdditiveMonoid → AdditiveSemigroup
  98. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  101. def zero: SInt

    Permalink
    Definition Classes
    SIntRing → AdditiveMonoid

Inherited from IntegerBits[SInt]

Inherited from Integer[SInt]

Inherited from RealBits[SInt]

Inherited from Real[SInt]

Inherited from BinaryRepresentationSInt

Inherited from BinaryRepresentation[SInt]

Inherited from ConvertableFromSInt

Inherited from ChiselConvertableFrom[SInt]

Inherited from ConvertableToSInt

Inherited from ConvertableTo[SInt]

Inherited from spire.math.ConvertableTo[SInt]

Inherited from SIntIsReal

Inherited from SIntSigned

Inherited from SIntOrder

Inherited from IsIntegral[SInt]

Inherited from IsReal[SInt]

Inherited from Signed[SInt]

Inherited from Order[SInt]

Inherited from PartialOrder[SInt]

Inherited from Eq[SInt]

Inherited from SIntRing

Inherited from hasContext

Inherited from Ring[SInt]

Inherited from algebra.ring.Ring[SInt]

Inherited from Rng[SInt]

Inherited from AdditiveCommutativeGroup[SInt]

Inherited from algebra.ring.AdditiveGroup[SInt]

Inherited from Rig[SInt]

Inherited from MultiplicativeMonoid[SInt]

Inherited from Semiring[SInt]

Inherited from MultiplicativeSemigroup[SInt]

Inherited from AdditiveCommutativeMonoid[SInt]

Inherited from AdditiveCommutativeSemigroup[SInt]

Inherited from AdditiveMonoid[SInt]

Inherited from AdditiveSemigroup[SInt]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped