Skip to content

Matrix-vector multiplication prints java version in stdout #849

@AlexGrunt

Description

@AlexGrunt

The following Code on Scala outputs return java 11 instance.

I'm using openjdk-11 and sbt 1.8.0.

# Main.scala
import breeze.linalg.{DenseMatrix, DenseVector}

object Main  extends App {
    val X = DenseMatrix((1.0, 0.0), (1.0, 1.0), (1.0, 2.0), (1.0, 3.0))
    val Y = DenseVector(0.0, 1.0)

    X * Y
}
# build.sbt
ThisBuild / version := "0.1.0-SNAPSHOT"

ThisBuild / scalaVersion := "2.13.10"

libraryDependencies  ++= Seq(
  "org.scalanlp" %% "breeze" % "2.1.0"
)

What is the reason for this output and how can I avoid this in my projects with Breeze?

Moreover this problem reproduces with other versions of jdk, this code always prints java version from which it was built.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions