Files with Implicit Conversions
In ScalaTion, the use of implicit conversions is kept to minimum.
Only the following six files have active implicit conversions.
Implicit conversions should only be imported if absolutely necessary.
Files with Active Implicit Conversions
-
math/Complex.scala: import scala.language.implicitConversions
-
implicit def double2Complex (d: Double): Complex = new Complex (d, 0.0)
-
math/package.scala: import language.implicitConversions
-
implicit def int_exp (x: Int) = new Int_Exp (x)
-
implicit def long_exp (x: Long) = new Long_Exp (x)
-
implicit def double_exp (x: Double) = new Double_Exp (x)
-
math/Rational.scala: import scala.language.implicitConversions
-
implicit def double2Rational (d: Double) = fromDouble (d)
-
math/Real.scala: import language.implicitConversions
-
implicit def double2Real (d: Double) = new Real (d, 0.0)
-
math/StrNum.scala: import language.implicitConversions
-
implicit def double2StrNum (d: Double): StrNum = new StrNum (d.toString)
-
implicit class StrNum (val ss: String) extends Numeric [StrNum] with Ordered [StrNum]
-
stat/package.scala: import language.implicitConversions
-
implicit def vectorC2StatVector (x: VectorC) = new StatVector (x.toDouble)
-
implicit def vectorD2StatVector (x: VectorD) = new StatVector (x)
-
implicit def vectorI2StatVector (x: VectorI) = new StatVector (x.toDouble)
-
implicit def vectorL2StatVector (x: VectorL) = new StatVector (x.toDouble)
-
implicit def vectorQ2StatVector (x: VectorQ) = new StatVector (x.toDouble)
-
implicit def vectorR2StatVector (x: VectorR) = new StatVector (x.toDouble)
Files with Inactive (Commented out) Implicit Conversions
-
graphalytics/package.scala: //import language.implicitConversions
-
graphalytics/SSShortestPath.scala: //import language.implicitConversions