May 2020
Intermediate to advanced
530 pages
17h 8m
English
Shark-ML is a C++ ML library with rich functionality. It also provides an API for linear algebra routines.
There are four container classes for representing matrices and vectors in the Shark-ML library. Notice that the linear algebra functionality is declared in the remora namespace instead of the shark namespace, which is used for other routines.
The following code sample shows container classes that exist in the Shark-ML library, wherein the vector type is a dynamically sized array:
remora::vector<double> b(100, 1.0); // vector of size 100 and filled with 1.0
The compressed_vector type is a sparse array storing values in a compressed format.
The matrix type is a dynamically sized dense matrix, as shown in the following code ...
Read now
Unlock full access