SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
List of all members | Static Public Member Functions
EigenSparseUtil< T > Class Template Reference

Detailed Description

template<typename T>
class shogun::EigenSparseUtil< T >

This class contains some utilities for Eigen3 Sparse Matrix integration with shogun. Currently it provides a method for converting SGSparseMatrix to Eigen3 SparseMatrix.

Definition at line 73 of file eigen3.h.

Static Public Member Functions

static Eigen::SparseMatrix< T > toEigenSparse (SGSparseMatrix< T > sg_matrix)
 

Member Function Documentation

SparseMatrix< T > toEigenSparse ( SGSparseMatrix< T >  sg_matrix)
static

Converts a SGSparseMatrix to Eigen3 SparseMatrix by copying its non-zero co-efficients to a eigen3 SparseMatrix.

Parameters
sg_matrixthe SGSparseMatrix
Returns
Eigen3 SparseMatrix representation of sg_matrix

Definition at line 23 of file eigen3.cpp.


The documentation for this class was generated from the following files:

SHOGUN Machine Learning Toolbox - Documentation