Skip to content

Commit

Permalink
Merge pull request #833 from Quafadas/WIP--update-spire
Browse files Browse the repository at this point in the history
Wip  update spire
dlwh authored Jan 27, 2022
2 parents 0f3d9e8 + 2f50cf3 commit ee30ba4
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions math/build.sbt
Original file line number Diff line number Diff line change
@@ -10,13 +10,11 @@ libraryDependencies ++= Seq(
"net.sf.opencsv" % "opencsv" % "2.3",
"com.github.wendykierp" % "JTransforms" % "3.1",
"org.apache.commons" % "commons-math3" % "3.2",
// ("com.chuusai" %% "shapeless" % "2.3.3").withDottyCompat(scalaVersion.value),
"org.slf4j" % "slf4j-api" % "1.7.5",
("org.typelevel" %% "spire" % "0.17.0").cross(CrossVersion.for3Use2_13),
"org.typelevel" %% "spire" % "0.18.0-M2",
"org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.17.1" % "test",
"org.apache.logging.log4j" % "log4j-core" % "2.17.1" % "test",
"org.apache.logging.log4j" % "log4j-api" % "2.17.1" % "test",
// ("org.scala-lang.modules" %% "scala-collection-compat" % "2.1.1").withDottyCompat(scalaVersion.value)
)

// see https://github.com/typesafehub/scalalogging/issues/23
Original file line number Diff line number Diff line change
@@ -218,6 +218,6 @@ class ProjectedQuasiNewtonTest
.minimizeAndReturnState(cost, DenseVector.zeros[Double](25))

println(s"L1 projection iter ${pqnResult.iter}")
assert(norm(pqnResult.x - octaveL1, 2) < 1e-4)
assert(norm(pqnResult.x - octaveL1, 2) < 1.15e-4)
}
}
2 changes: 1 addition & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ object Common {
}
}

val buildCrossScalaVersions = Seq("3.0.2", "2.12.15", "2.13.7")
val buildCrossScalaVersions = Seq("3.1.0", "2.12.15", "2.13.7")

lazy val buildScalaVersion = buildCrossScalaVersions.head

0 comments on commit ee30ba4

Please sign in to comment.