Scientific Programming / 2015 / Article / Alg 4

Research Article

ScalaLab and GroovyLab: Comparing Scala and Groovy for Scientific Computing

Algorithm 4

//define the operation: Number + double ,
// at the MetaClass of the Numbers class
Number.metaClass.plus  =
  {
//the double m array denotes the input parameter
double m  ->
// call a Java routine for the operation
  res  =
groovySci.math.LinearAlgebra.LinearAlgebra.plus(delegate,  m)// calls Java code
    res
}

We are experiencing issues with article search and journal table of contents. We are working on a fix as to remediate it and apologise for the inconvenience.

Article of the Year Award: Outstanding research contributions of 2020, as selected by our Chief Editors. Read the winning articles.