Basic Saddle data structures
In this section, we will examine the basic data structures available to you when using Saddle. A lot of these you will recognize from similar data types in other systems. We will generally only quickly overview them. More advanced uses are covered in other sections. All of the examples in this section can be done from the REPL. We will only need to start creating separate .scala
files when we come to the more elaborate examples in the other sections. To start working with any of the following code examples, you need to first import the Saddle package:
scala> import org.saddle._ import org.saddle._
Using the Vec structure
The simplest type covered here is the vector. It is closest to a simple array in terms of functionality. ...
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.