SHOGUN  6.1.3
List of all members | Public Member Functions | Public Attributes
SGLinalg Class Reference

Detailed Description

linalg library backend

Definition at line 51 of file SGLinalg.h.

Public Member Functions

 SGLinalg ()
 
 ~SGLinalg ()
 
void set_cpu_backend (LinalgBackendBase *backend)
 
LinalgBackendBase *const get_cpu_backend () const
 
void set_gpu_backend (LinalgBackendBase *backend)
 
LinalgBackendBase *const get_gpu_backend () const
 
void set_linalg_warnings (bool enable_warnings=true)
 
bool const get_linalg_warnings () const
 

Public Attributes

CLock m_gpu_transfer
 

Constructor & Destructor Documentation

◆ SGLinalg()

SGLinalg ( )

Default constructor

Definition at line 58 of file SGLinalg.h.

◆ ~SGLinalg()

~SGLinalg ( )

Default destructor

Definition at line 67 of file SGLinalg.h.

Member Function Documentation

◆ get_cpu_backend()

LinalgBackendBase* const get_cpu_backend ( ) const

Set CPU backend

Returns
Pointer of LinalgBackendBase type

Definition at line 83 of file SGLinalg.h.

◆ get_gpu_backend()

LinalgBackendBase* const get_gpu_backend ( ) const

Set GPU backend

Returns
Pointer of LinalgBackendBase type

Definition at line 100 of file SGLinalg.h.

◆ get_linalg_warnings()

bool const get_linalg_warnings ( ) const

Get linalg library warnings display option

Returns
Whether to display linalg library warnings

Definition at line 120 of file SGLinalg.h.

◆ set_cpu_backend()

void set_cpu_backend ( LinalgBackendBase backend)

Set CPU backend The default CPU backend is EIGEN3

Definition at line 74 of file SGLinalg.h.

◆ set_gpu_backend()

void set_gpu_backend ( LinalgBackendBase backend)

Set GPU backend The default GPU backend is NULL

Definition at line 91 of file SGLinalg.h.

◆ set_linalg_warnings()

void set_linalg_warnings ( bool  enable_warnings = true)

Set linalg library warnings display option The warnings are default on.

Definition at line 108 of file SGLinalg.h.

Member Data Documentation

◆ m_gpu_transfer

CLock m_gpu_transfer

Mutex of GPU transfer methods

Definition at line 55 of file SGLinalg.h.


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

SHOGUN Machine Learning Toolbox - Documentation