Skip to content

Commit

Permalink
have to use specfic trait types to expose inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
erikerlandson committed Dec 27, 2023
1 parent c1449cc commit 22d2b54
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions core/src/main/scala/spire/std/double.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ import spire.algebra.{Field, IsRational, NRoot, Order, Signed, Trig, TruncatedDi
class DoubleAlgebra extends DoubleIsField with DoubleIsNRoot with DoubleIsTrig with DoubleIsReal with Serializable

trait DoubleInstances {
implicit final val DoubleAlgebra: Field[Double]
with NRoot[Double]
with Trig[Double]
with IsRational[Double]
with TruncatedDivisionCRing[Double]
with Signed[Double]
with Order[Double] = new DoubleAlgebra
implicit final val DoubleAlgebra: DoubleIsField
with DoubleIsNRoot
with DoubleIsTrig
with DoubleIsReal
with DoubleSigned
with Serializable = new DoubleAlgebra
import Double._
import spire.math.NumberTag
import spire.math.NumberTag._
Expand Down

0 comments on commit 22d2b54

Please sign in to comment.