Packages

p

dsptools

numbers

package numbers

Linear Supertypes
RingSyntax, RigSyntax, RngSyntax, AdditiveGroupSyntax, AdditiveMonoidSyntax, SemiringSyntax, MultiplicativeSemigroupSyntax, AdditiveSemigroupSyntax, AllImpl, DspComplexImpl, DspRealImpl, FixedPointImpl, 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. SIntImpl
  15. UIntImpl
  16. AllSyntax
  17. ContextualRingSyntax
  18. BinaryRepresentationSyntax
  19. ChiselConvertableFromSyntax
  20. ConvertableToSyntax
  21. IsIntegerSyntax
  22. IsRealSyntax
  23. SignedSyntax
  24. OrderSyntax
  25. PartialOrderSyntax
  26. EqSyntax
  27. AnyRef
  28. 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 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. class DspComplex[T <: Data] extends Bundle
  68. class DspComplexBinaryRepresentation[T <: Data] extends BinaryRepresentation[DspComplex[T]] with hasContext
  69. class DspComplexEq[T <: Data] extends Eq[DspComplex[T]] with hasContext
  70. trait DspComplexImpl extends AnyRef
  71. class DspComplexRing[T <: Data] extends Ring[DspComplex[T]] with hasContext
  72. class DspReal extends Bundle
  73. class DspRealACos extends DspRealOneArgumentToDouble
  74. class DspRealACosh extends DspRealOneArgumentToDouble
  75. class DspRealASin extends DspRealOneArgumentToDouble
  76. class DspRealASinh extends DspRealOneArgumentToDouble
  77. class DspRealATan extends DspRealOneArgumentToDouble
  78. class DspRealATan2 extends DspRealTwoArgumentToDouble
  79. class DspRealATanh extends DspRealOneArgumentToDouble
  80. class DspRealAdd extends DspRealTwoArgumentToDouble
  81. class DspRealCeil extends DspRealOneArgumentToDouble
  82. class DspRealCos extends DspRealOneArgumentToDouble
  83. class DspRealCosh extends DspRealOneArgumentToDouble
  84. class DspRealDivide extends DspRealTwoArgumentToDouble
  85. class DspRealEquals extends DspRealTwoArgumentToBoolean
  86. class DspRealExp extends DspRealOneArgumentToDouble
  87. class DspRealFactory extends BlackBoxFactory
  88. class DspRealFloor extends DspRealOneArgumentToDouble
  89. class DspRealFromInt extends BlackBoxImplementation
  90. class DspRealGreaterThan extends DspRealTwoArgumentToBoolean
  91. class DspRealGreaterThanEquals extends DspRealTwoArgumentToBoolean
  92. class DspRealHypot extends DspRealTwoArgumentToDouble
  93. trait DspRealImpl extends AnyRef
  94. trait DspRealIsReal extends IsReal[DspReal] with DspRealOrder with DspRealSigned with hasContext
  95. class DspRealLessThan extends DspRealTwoArgumentToBoolean
  96. class DspRealLessThanEquals extends DspRealTwoArgumentToBoolean
  97. class DspRealLn extends DspRealOneArgumentToDouble

    Math operations from IEEE.1364-2005 *

  98. class DspRealLog10 extends DspRealOneArgumentToDouble
  99. class DspRealMultiply extends DspRealTwoArgumentToDouble
  100. class DspRealNotEquals extends DspRealTwoArgumentToBoolean
  101. abstract class DspRealOneArgumentToDouble extends BlackBoxImplementation
  102. trait DspRealOrder extends Order[DspReal] with hasContext
  103. class DspRealPow extends DspRealTwoArgumentToDouble
  104. trait DspRealReal extends DspRealRing with DspRealIsReal with ConvertableToDspReal with ConvertableFromDspReal with BinaryRepresentationDspReal with RealBits[DspReal] with hasContext
  105. trait DspRealRing extends Ring[DspReal] with hasContext
  106. trait DspRealSigned extends Signed[DspReal] with DspRealRing with hasContext
  107. class DspRealSin extends DspRealOneArgumentToDouble
  108. class DspRealSinh extends DspRealOneArgumentToDouble
  109. class DspRealSqrt extends DspRealOneArgumentToDouble
  110. class DspRealSubtract extends DspRealTwoArgumentToDouble
  111. class DspRealTan extends DspRealOneArgumentToDouble
  112. class DspRealTanh extends DspRealOneArgumentToDouble
  113. class DspRealToInt extends BlackBoxImplementation
  114. abstract class DspRealTwoArgumentToBoolean extends BlackBoxImplementation
  115. abstract class DspRealTwoArgumentToDouble extends BlackBoxImplementation
  116. 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.

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

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

    Defines basic math functions for FixedPoint numbers

  125. trait FixedPointSigned extends Signed[FixedPoint] with hasContext
  126. 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.

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

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

  132. final class IsRealOps[A <: Data] extends AnyRef
  133. trait IsRealSyntax extends OrderSyntax with SignedSyntax
  134. type MultiplicativeAction[T, U] = spire.algebra.MultiplicativeAction[T, U]
  135. type MultiplicativeCMonoid[T] = MultiplicativeCommutativeMonoid[T]
  136. 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.

  137. final class OrderOps[A <: Data] extends AnyRef
  138. trait OrderSyntax extends PartialOrderSyntax
  139. 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)

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

    Defines basic math functions for SInt

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

    A simple ADT representing the Sign of an object.

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

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

    Defines basic math functions for UInt

  160. trait UIntSigned extends Signed[UInt] with hasContext

Value Members

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