Packages

p

dsptools

numbers

package numbers

Linear Supertypes
RingSyntax, RigSyntax, RngSyntax, AdditiveGroupSyntax, AdditiveMonoidSyntax, SemiringSyntax, MultiplicativeSemigroupSyntax, AdditiveSemigroupSyntax, AllImpl, DspComplexImpl, DspRealImpl, FixedPointImpl, IntervalImpl, SIntImpl, UIntImpl, AllSyntax, ContextualRingSyntax, BinaryRepresentationSyntax, ChiselConvertableFromSyntax, ConvertableToSyntax, IsIntegerSyntax, IsRealSyntax, SignedSyntax, OrderSyntax, PartialOrderSyntax, EqSyntax, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. numbers
  2. RingSyntax
  3. RigSyntax
  4. RngSyntax
  5. AdditiveGroupSyntax
  6. AdditiveMonoidSyntax
  7. SemiringSyntax
  8. MultiplicativeSemigroupSyntax
  9. AdditiveSemigroupSyntax
  10. AllImpl
  11. DspComplexImpl
  12. DspRealImpl
  13. FixedPointImpl
  14. IntervalImpl
  15. SIntImpl
  16. UIntImpl
  17. AllSyntax
  18. ContextualRingSyntax
  19. BinaryRepresentationSyntax
  20. ChiselConvertableFromSyntax
  21. ConvertableToSyntax
  22. IsIntegerSyntax
  23. IsRealSyntax
  24. SignedSyntax
  25. OrderSyntax
  26. PartialOrderSyntax
  27. EqSyntax
  28. AnyRef
  29. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type AdditiveGroup[T] = algebra.ring.AdditiveGroup[T]
  2. trait AllImpl extends UIntImpl with SIntImpl with IntervalImpl with FixedPointImpl with DspRealImpl with DspComplexImpl
  3. trait AllSyntax extends EqSyntax with PartialOrderSyntax with OrderSyntax with SignedSyntax with IsRealSyntax with IsIntegerSyntax with ConvertableToSyntax with ChiselConvertableFromSyntax with BinaryRepresentationSyntax with ContextualRingSyntax
  4. class BBFACos extends BlackboxOneOperand
  5. class BBFACosh extends BlackboxOneOperand
  6. class BBFASin extends BlackboxOneOperand
  7. class BBFASinh extends BlackboxOneOperand
  8. class BBFATan extends BlackboxOneOperand
  9. class BBFATan2 extends BlackboxTwoOperand
  10. class BBFATanh extends BlackboxOneOperand
  11. class BBFAdd extends BlackboxTwoOperand
  12. class BBFCeil extends BlackboxOneOperand
  13. class BBFCos extends BlackboxOneOperand
  14. class BBFCosh extends BlackboxOneOperand
  15. class BBFDivide extends BlackboxTwoOperand
  16. class BBFEquals extends BlackboxTwoOperandBool
  17. class BBFExp extends BlackboxOneOperand
  18. class BBFFloor extends BlackboxOneOperand
  19. class BBFFromInt extends BlackboxOneOperand
  20. class BBFGreaterThan extends BlackboxTwoOperandBool
  21. class BBFGreaterThanEquals extends BlackboxTwoOperandBool
  22. class BBFHypot extends BlackboxTwoOperand
  23. class BBFLessThan extends BlackboxTwoOperandBool
  24. class BBFLessThanEquals extends BlackboxTwoOperandBool
  25. class BBFLn extends BlackboxOneOperand

    Math operations from IEEE.1364-2005 *

  26. class BBFLog10 extends BlackboxOneOperand
  27. class BBFMultiply extends BlackboxTwoOperand
  28. class BBFNotEquals extends BlackboxTwoOperandBool
  29. class BBFPow extends BlackboxTwoOperand
  30. class BBFSin extends BlackboxOneOperand
  31. class BBFSinh extends BlackboxOneOperand
  32. class BBFSqrt extends BlackboxOneOperand
  33. class BBFSubtract extends BlackboxTwoOperand
  34. class BBFTan extends BlackboxOneOperand
  35. class BBFTanh extends BlackboxOneOperand
  36. class BBFToInt extends BlackboxOneOperand
  37. trait BinaryRepresentation[A <: Data] extends Any
  38. trait BinaryRepresentationDspReal extends BinaryRepresentation[DspReal] with hasContext
  39. trait BinaryRepresentationFixedPoint extends BinaryRepresentation[FixedPoint] with hasContext
  40. class BinaryRepresentationOps[A <: Data] extends AnyRef
  41. trait BinaryRepresentationSInt extends BinaryRepresentation[SInt] with hasContext
  42. trait BinaryRepresentationSyntax extends AnyRef
  43. trait BinaryRepresentationUInt extends BinaryRepresentation[UInt] with hasContext
  44. trait BlackBoxWithVerilog extends BlackBox with HasBlackBoxResource
  45. class BlackboxOneOperand extends BlackBox with BlackBoxWithVerilog
  46. class BlackboxTwoOperand extends BlackBox with BlackBoxWithVerilog
  47. class BlackboxTwoOperandBool extends BlackBox with BlackBoxWithVerilog
  48. type CMonoid[T] = CommutativeMonoid[T]
  49. trait ChiselConvertableFrom[A <: Data] extends Any
  50. class ChiselConvertableFromOps[A <: Data] extends AnyRef
  51. trait ChiselConvertableFromSyntax extends AnyRef
  52. class ComparisonBundle extends Bundle
  53. class ContextualRingOps[A <: Data] extends AnyRef
  54. trait ContextualRingSyntax extends AnyRef
  55. type ConvertableFrom[T] = spire.math.ConvertableFrom[T]
  56. trait ConvertableFromDspReal extends ChiselConvertableFrom[DspReal] with hasContext
  57. trait ConvertableFromFixedPoint extends ChiselConvertableFrom[FixedPoint] with hasContext
  58. trait ConvertableFromSInt extends ChiselConvertableFrom[SInt] with hasContext
  59. trait ConvertableFromUInt extends ChiselConvertableFrom[UInt] with hasContext
  60. trait ConvertableTo[A <: Data] extends spire.math.ConvertableTo[A]
  61. trait ConvertableToDspReal extends ConvertableTo[DspReal] with hasContext
  62. trait ConvertableToFixedPoint extends ConvertableTo[FixedPoint] with hasContext
  63. class ConvertableToOps[A <: Data] extends AnyRef
  64. trait ConvertableToSInt extends ConvertableTo[SInt] with hasContext
  65. trait ConvertableToSyntax extends AnyRef
  66. trait ConvertableToUInt extends ConvertableTo[UInt] with hasContext
  67. trait DspBlackBlackBoxImpl extends BlackBoxImplementation with ScalaBlackBox
  68. class DspComplex[T <: Data] extends Bundle
  69. class DspComplexBinaryRepresentation[T <: Data] extends BinaryRepresentation[DspComplex[T]] with hasContext
  70. class DspComplexEq[T <: Data] extends Eq[DspComplex[T]] with hasContext
  71. trait DspComplexImpl extends AnyRef
  72. class DspComplexRing[T <: Data] extends Ring[DspComplex[T]] with hasContext
  73. class DspReal extends Bundle
  74. class DspRealACos extends DspRealOneArgumentToDouble
  75. class DspRealACosh extends DspRealOneArgumentToDouble
  76. class DspRealASin extends DspRealOneArgumentToDouble
  77. class DspRealASinh extends DspRealOneArgumentToDouble
  78. class DspRealATan extends DspRealOneArgumentToDouble
  79. class DspRealATan2 extends DspRealTwoArgumentToDouble
  80. class DspRealATanh extends DspRealOneArgumentToDouble
  81. class DspRealAdd extends DspRealTwoArgumentToDouble
  82. class DspRealCeil extends DspRealOneArgumentToDouble
  83. class DspRealCos extends DspRealOneArgumentToDouble
  84. class DspRealCosh extends DspRealOneArgumentToDouble
  85. class DspRealDivide extends DspRealTwoArgumentToDouble
  86. class DspRealEquals extends DspRealTwoArgumentToBoolean
  87. class DspRealExp extends DspRealOneArgumentToDouble
  88. class DspRealFactory extends BlackBoxFactory
  89. class DspRealFloor extends DspRealOneArgumentToDouble
  90. class DspRealFromInt extends BlackBoxImplementation with DspBlackBlackBoxImpl
  91. class DspRealGreaterThan extends DspRealTwoArgumentToBoolean
  92. class DspRealGreaterThanEquals extends DspRealTwoArgumentToBoolean
  93. class DspRealHypot extends DspRealTwoArgumentToDouble
  94. trait DspRealImpl extends AnyRef
  95. trait DspRealIsReal extends IsReal[DspReal] with DspRealOrder with DspRealSigned with hasContext
  96. class DspRealLessThan extends DspRealTwoArgumentToBoolean
  97. class DspRealLessThanEquals extends DspRealTwoArgumentToBoolean
  98. class DspRealLn extends DspRealOneArgumentToDouble

    Math operations from IEEE.1364-2005 *

  99. class DspRealLog10 extends DspRealOneArgumentToDouble
  100. class DspRealMultiply extends DspRealTwoArgumentToDouble
  101. class DspRealNotEquals extends DspRealTwoArgumentToBoolean
  102. abstract class DspRealOneArgumentToDouble extends BlackBoxImplementation with DspBlackBlackBoxImpl
  103. trait DspRealOrder extends Order[DspReal] with hasContext
  104. class DspRealPow extends DspRealTwoArgumentToDouble
  105. trait DspRealReal extends DspRealRing with DspRealIsReal with ConvertableToDspReal with ConvertableFromDspReal with BinaryRepresentationDspReal with RealBits[DspReal] with hasContext
  106. trait DspRealRing extends Ring[DspReal] with hasContext
  107. trait DspRealSigned extends Signed[DspReal] with DspRealRing with hasContext
  108. class DspRealSin extends DspRealOneArgumentToDouble
  109. class DspRealSinh extends DspRealOneArgumentToDouble
  110. class DspRealSqrt extends DspRealOneArgumentToDouble
  111. class DspRealSubtract extends DspRealTwoArgumentToDouble
  112. class DspRealTan extends DspRealOneArgumentToDouble
  113. class DspRealTanh extends DspRealOneArgumentToDouble
  114. class DspRealToInt extends BlackBoxImplementation with DspBlackBlackBoxImpl
  115. abstract class DspRealTwoArgumentToBoolean extends BlackBoxImplementation with DspBlackBlackBoxImpl
  116. abstract class DspRealTwoArgumentToDouble extends BlackBoxImplementation with DspBlackBlackBoxImpl
  117. trait Eq[A <: Data] extends Any

    A type class used to determine equality between 2 instances of the same type.

    A type class used to determine equality between 2 instances of the same type. Any 2 instances x and y are equal if eqv(x, y) is true. Moreover, eqv should form an equivalence relation.

  118. final class EqOps[A <: Data] extends AnyRef

    Much of this is drawn from non/spire, but using Chisel Bools instead of Java Bools.

    Much of this is drawn from non/spire, but using Chisel Bools instead of Java Bools. I suppose a more general solution would be generic in return type, but the use cases there seem obscure.

  119. trait EqSyntax extends AnyRef
  120. type Field[T] = spire.algebra.Field[T]
  121. trait FixedPointImpl extends AnyRef
  122. trait FixedPointIsReal extends IsReal[FixedPoint] with FixedPointOrder with FixedPointSigned with hasContext
  123. trait FixedPointOrder extends Order[FixedPoint] with hasContext
  124. trait FixedPointReal extends FixedPointRing with FixedPointIsReal with ConvertableToFixedPoint with ConvertableFromFixedPoint with BinaryRepresentationFixedPoint with RealBits[FixedPoint] with hasContext
  125. trait FixedPointRing extends Ring[FixedPoint] with hasContext

    Defines basic math functions for FixedPoint numbers

  126. trait FixedPointSigned extends Signed[FixedPoint] with hasContext
  127. trait Integer[A <: Data] extends Real[A] with IsIntegral[A]

    Much of this is drawn from non/spire, but using Chisel Bools instead of Java Bools.

    Much of this is drawn from non/spire, but using Chisel Bools instead of Java Bools. I suppose a more general solution would be generic in return type, but the use cases there seem obscure.

  128. trait IntegerBits[A <: Data] extends RealBits[A] with Integer[A]
  129. class IsIntegerOps[A <: Data] extends AnyRef
  130. trait IsIntegerSyntax extends IsRealSyntax
  131. trait IsIntegral[A <: Data] extends IsReal[A]
  132. trait IsReal[A <: Data] extends Order[A] with Signed[A]

    A simple type class for numeric types that are a subset of the reals.

  133. final class IsRealOps[A <: Data] extends AnyRef
  134. trait IsRealSyntax extends OrderSyntax with SignedSyntax
  135. type MultiplicativeAction[T, U] = spire.algebra.MultiplicativeAction[T, U]
  136. type MultiplicativeCMonoid[T] = MultiplicativeCommutativeMonoid[T]
  137. trait Order[A <: Data] extends PartialOrder[A]

    The Order type class is used to define a total ordering on some type A.

    The Order type class is used to define a total ordering on some type A. An order is defined by a relation <=, which obeys the following laws:

    - either x <= y or y <= x (totality) - if x <= y and y <= x, then x == y (antisymmetry) - if x <= y and y <= z, then x <= z (transitivity)

    The truth table for compare is defined as follows:

    x <= y x >= y Int true true = 0 (corresponds to x == y) true false < 0 (corresponds to x < y) false true > 0 (corresponds to x > y)

    By the totality law, x <= y and y <= x cannot be both false.

  138. final class OrderOps[A <: Data] extends AnyRef
  139. trait OrderSyntax extends PartialOrderSyntax
  140. trait PartialOrder[A <: Data] extends Eq[A]

    The PartialOrder type class is used to define a partial ordering on some type A.

    The PartialOrder type class is used to define a partial ordering on some type A.

    A partial order is defined by a relation <=, which obeys the following laws:

    - x <= x (reflexivity) - if x <= y and y <= x, then x === y (anti-symmetry) - if x <= y and y <= z, then x <= z (transitivity)

    To compute both <= and >= at the same time, we use a Double number to encode the result of the comparisons x <= y and x >= y. The truth table is defined as follows:

    x <= y x >= y Double true true = 0.0 (corresponds to x === y) false false = NaN (x and y cannot be compared) true false = -1.0 (corresponds to x < y) false true = 1.0 (corresponds to x > y)

  141. final class PartialOrderOps[A <: Data] extends AnyRef
  142. trait PartialOrderSyntax extends EqSyntax
  143. trait Real[A <: Data] extends Ring[A] with ConvertableTo[A] with IsReal[A]
  144. trait RealBits[A <: Data] extends Real[A] with ChiselConvertableFrom[A] with BinaryRepresentation[A]
  145. trait Ring[A] extends spire.algebra.Ring[A]
  146. trait SIntImpl extends AnyRef
  147. trait SIntInteger extends SIntRing with SIntIsReal with ConvertableToSInt with ConvertableFromSInt with BinaryRepresentationSInt with IntegerBits[SInt] with hasContext
  148. trait SIntIsReal extends IsIntegral[SInt] with SIntOrder with SIntSigned with hasContext
  149. trait SIntOrder extends Order[SInt] with hasContext
  150. trait SIntRing extends Ring[SInt] with hasContext

    Defines basic math functions for SInt

  151. trait SIntSigned extends Signed[SInt] with hasContext
  152. sealed class Sign extends Bundle

    A simple ADT representing the Sign of an object.

  153. trait Signed[A] extends Any

    A trait for things that have some notion of sign and the ability to ensure something has a positive sign.

  154. final class SignedOps[A] extends AnyRef
  155. trait SignedSyntax extends AnyRef
  156. class TreadleDspRealFactory extends ScalaBlackBoxFactory
  157. trait UIntImpl extends AnyRef
  158. trait UIntInteger extends UIntRing with UIntIsReal with ConvertableToUInt with ConvertableFromUInt with BinaryRepresentationUInt with IntegerBits[UInt] with hasContext
  159. trait UIntIsReal extends IsIntegral[UInt] with UIntOrder with UIntSigned with hasContext
  160. trait UIntOrder extends Order[UInt] with hasContext
  161. trait UIntRing extends Ring[UInt] with hasContext

    Defines basic math functions for UInt

  162. trait UIntSigned extends Signed[UInt] with hasContext

Value Members

  1. val Ceiling: RoundUp.type
  2. val Convergent: RoundHalfToEven.type
  3. implicit def DspComplexBinaryRepresentation[T <: Data](implicit arg0: Ring[T], arg1: BinaryRepresentation[T]): DspComplexBinaryRepresentation[T]
    Definition Classes
    DspComplexImpl
  4. implicit def DspComplexEq[T <: Data](implicit arg0: Eq[T]): DspComplexEq[T]
    Definition Classes
    DspComplexImpl
  5. implicit def DspComplexRingImpl[T <: Data](implicit arg0: Ring[T]): DspComplexRing[T]
    Definition Classes
    DspComplexImpl
  6. val Floor: RoundDown.type
  7. val Multiplicative: spire.algebra.Multiplicative.type
  8. val Round: RoundHalfTowardsInfinity.type
  9. implicit def additiveGroupOps[A](a: A)(implicit arg0: spire.algebra.AdditiveGroup[A]): AdditiveGroupOps[A]
    Definition Classes
    AdditiveGroupSyntax
  10. implicit def additiveMonoidOps[A](a: A)(implicit ev: AdditiveMonoid[A]): AdditiveMonoidOps[A]
    Definition Classes
    AdditiveMonoidSyntax
  11. implicit def additiveSemigroupOps[A](a: A)(implicit arg0: AdditiveSemigroup[A]): AdditiveSemigroupOps[A]
    Definition Classes
    AdditiveSemigroupSyntax
  12. implicit def binaryRepresentationOps[A <: Data](a: A)(implicit arg0: BinaryRepresentation[A]): BinaryRepresentationOps[A]
    Definition Classes
    BinaryRepresentationSyntax
  13. implicit def chiselConvertableFromOps[A <: Data](a: A)(implicit arg0: ChiselConvertableFrom[A]): ChiselConvertableFromOps[A]
    Definition Classes
    ChiselConvertableFromSyntax
  14. implicit def contextualRingOps[A <: Data](a: A)(implicit arg0: Ring[A]): ContextualRingOps[A]
    Definition Classes
    ContextualRingSyntax
  15. implicit def convertableToOps[A <: Data](a: A)(implicit arg0: ConvertableTo[A]): ConvertableToOps[A]
    Definition Classes
    ConvertableToSyntax
  16. implicit def eqOps[A <: Data](a: A)(implicit arg0: Eq[A]): EqOps[A]
    Definition Classes
    EqSyntax
  17. implicit def isIntegerOps[A <: Data](a: A)(implicit arg0: IsIntegral[A]): IsIntegerOps[A]
    Definition Classes
    IsIntegerSyntax
  18. implicit def isRealOps[A <: Data](a: A)(implicit arg0: IsReal[A]): IsRealOps[A]
    Definition Classes
    IsRealSyntax
  19. implicit def literalDoubleAdditiveGroupOps(lhs: Double): LiteralDoubleAdditiveGroupOps
    Definition Classes
    AdditiveGroupSyntax
  20. implicit def literalDoubleAdditiveSemigroupOps(lhs: Double): LiteralDoubleAdditiveSemigroupOps
    Definition Classes
    AdditiveSemigroupSyntax
  21. implicit def literalDoubleMultiplicativeSemigroupOps(lhs: Double): LiteralDoubleMultiplicativeSemigroupOps
    Definition Classes
    MultiplicativeSemigroupSyntax
  22. implicit def literalIntAdditiveGroupOps(lhs: Int): LiteralIntAdditiveGroupOps
    Definition Classes
    AdditiveGroupSyntax
  23. implicit def literalIntAdditiveSemigroupOps(lhs: Int): LiteralIntAdditiveSemigroupOps
    Definition Classes
    AdditiveSemigroupSyntax
  24. implicit def literalIntMultiplicativeSemigroupOps(lhs: Int): LiteralIntMultiplicativeSemigroupOps
    Definition Classes
    MultiplicativeSemigroupSyntax
  25. implicit def literalLongAdditiveGroupOps(lhs: Long): LiteralLongAdditiveGroupOps
    Definition Classes
    AdditiveGroupSyntax
  26. implicit def literalLongAdditiveSemigroupOps(lhs: Long): LiteralLongAdditiveSemigroupOps
    Definition Classes
    AdditiveSemigroupSyntax
  27. implicit def literalLongMultiplicativeSemigroupOps(lhs: Long): LiteralLongMultiplicativeSemigroupOps
    Definition Classes
    MultiplicativeSemigroupSyntax
  28. implicit def multiplicativeSemigroupOps[A](a: A)(implicit arg0: MultiplicativeSemigroup[A]): MultiplicativeSemigroupOps[A]
    Definition Classes
    MultiplicativeSemigroupSyntax
  29. implicit def orderOps[A <: Data](a: A)(implicit arg0: Order[A]): OrderOps[A]
    Definition Classes
    OrderSyntax
  30. implicit def partialOrderOps[A <: Data](a: A)(implicit arg0: PartialOrder[A]): PartialOrderOps[A]
    Definition Classes
    PartialOrderSyntax
  31. implicit def semiringOps[A](a: A)(implicit arg0: Semiring[A]): SemiringOps[A]
    Definition Classes
    SemiringSyntax
  32. implicit def signedOps[A <: Data](a: A)(implicit arg0: Signed[A]): SignedOps[A]
    Definition Classes
    SignedSyntax
  33. object BinaryRepresentation
  34. object ChiselConvertableFrom
  35. object ComparisonHelper
  36. object ConvertableTo
  37. object DspComplex
  38. object DspReal
  39. implicit object DspRealRealImpl extends DspRealReal
    Definition Classes
    DspRealImpl
  40. object Eq
  41. implicit object FixedPointRealImpl extends FixedPointReal
    Definition Classes
    FixedPointImpl
  42. object Integer extends Serializable
  43. object IntegerBits extends Serializable
  44. object IsIntegral
  45. object IsReal
  46. object Order
  47. object PartialOrder
  48. object Real extends Serializable
  49. object RealBits extends Serializable
  50. object RealTrig
  51. object Ring extends Serializable
  52. implicit object SIntIntegerImpl extends SIntInteger
    Definition Classes
    SIntImpl
  53. object Sign
  54. object Signed
  55. object TrigUtility
  56. implicit object UIntIntegerImpl extends UIntInteger
    Definition Classes
    UIntImpl
  57. implicit object IntervalRealImpl extends IntervalReal
    Definition Classes
    IntervalImpl
  58. object implicits extends AllSyntax with AllImpl with spire.syntax.AllSyntax

Inherited from RingSyntax

Inherited from RigSyntax

Inherited from RngSyntax

Inherited from AdditiveGroupSyntax

Inherited from AdditiveMonoidSyntax

Inherited from SemiringSyntax

Inherited from MultiplicativeSemigroupSyntax

Inherited from AdditiveSemigroupSyntax

Inherited from AllImpl

Inherited from DspComplexImpl

Inherited from DspRealImpl

Inherited from FixedPointImpl

Inherited from IntervalImpl

Inherited from SIntImpl

Inherited from UIntImpl

Inherited from AllSyntax

Inherited from ContextualRingSyntax

Inherited from ConvertableToSyntax

Inherited from IsIntegerSyntax

Inherited from IsRealSyntax

Inherited from SignedSyntax

Inherited from OrderSyntax

Inherited from PartialOrderSyntax

Inherited from EqSyntax

Inherited from AnyRef

Inherited from Any

Ungrouped