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 ...

Get Scientific Computing with Scala now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.