-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
59 lines (54 loc) · 1.87 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// For parity with non/spire
lazy val spireVersion = "0.14.1"
lazy val scalaTestVersion = "3.0.0"
lazy val commonSettings = inThisBuild(Seq(
scalaOrganization := "org.typelevel", // provide literal types
scalaVersion := "2.12.4-bin-typelevel-4",
version := "0.1.0-SNAPSHOT",
libraryDependencies += "org.typelevel" %% "spire" % spireVersion,
scalacOptions ++= Seq(
"-Yliteral-types",
"-Ypartial-unification",
"-language:higherKinds"
))
)
lazy val core = (project in file("core")).
settings(commonSettings: _*).
settings(
name := "Matrices for Spire (core)",
libraryDependencies ++= Seq(
"org.typelevel" %% "spire-laws" % spireVersion % "test",
"org.scalatest" %% "scalatest" % scalaTestVersion % "test"
),
initialCommands := """
import spire.std.double._
import spire.algebra.VectorSpace
import spire.syntax.vectorSpace._
"""
)
lazy val blas = (project in file("blas")).
settings(commonSettings : _*).
settings(
name := "Matrices for Spire (BLAS implementation)",
libraryDependencies ++= Seq(
"org.typelevel" %% "spire-laws" % spireVersion % "test",
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
"net.sourceforge.f2j" % "arpack_combined_all" % "0.1",
"com.github.fommil.netlib" % "all" % "1.1.2" // "core" will not pull any blas implemenations.
),
initialCommands += """
import spire.std.double._
import spire.algebra.VectorSpace
import spire.syntax.vectorSpace._
import spire.math.matrix._
import spire.blas.implicits._
import com.github.fommil.netlib._
implicit val blasInstance : BLAS = new F2jBLAS()
"""
).dependsOn(core)
lazy val fs2 = (project in file("fs2")).
settings(
name := "Matrices for Spire (fs2 implementation)",
libraryDependencies += "co.fs2" %% "fs2-core" % "0.10.0-M8"
).
dependsOn(core)