O'Reilly logo

Scientific Computing with Scala by Vytautas Jančauskas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Basic ScalaSci data structures

As mentioned before, ScalaLab uses its own domain-specific language called ScalaSci. Just think of it as Scala extended with data structures and methods providing some of the functionality of MATLAB. These include vector and matrix objects as well as various useful methods. They work similarly to how they work in the Breeze and Saddle systems we discussed before.

We will briefly overview them here. Covering all the functionality completely would require a separate book. To start using the functionality, you will need to import it. You can do it as shown here:

import scalaSci._

Enter the import statement into the ScalaLab window. You can execute statements by first selecting them as you would select a block of text ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required