SHOGUN
4.1.0
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
mathematics
linalg
linsolver
DirectSparseLinearSolver.h
浏览该文件的文档.
1
/*
2
* This program is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General turalPublic License as published by
4
* the Free Software Foundation; either version 3 of the License, or
5
* (at your option) any later version.
6
*
7
* Written (W) 2013 Soumyajit De
8
*/
9
10
#ifndef DIRECT_SPARSE_LINEAR_SOLVER_H_
11
#define DIRECT_SPARSE_LINEAR_SOLVER_H_
12
13
#include <
shogun/lib/config.h
>
14
15
#ifdef HAVE_EIGEN3
16
#include <
shogun/mathematics/linalg/linsolver/LinearSolver.h
>
17
18
namespace
shogun
19
{
20
24
class
CDirectSparseLinearSolver
:
public
CLinearSolver
<float64_t, float64_t>
25
{
26
public
:
28
CDirectSparseLinearSolver
();
29
31
virtual
~CDirectSparseLinearSolver
();
32
40
virtual
SGVector<float64_t>
solve
(
CLinearOperator<float64_t>
* A,
41
SGVector<float64_t>
b);
42
44
virtual
const
char
*
get_name
()
const
45
{
46
return
"DirectSparseLinearSolver"
;
47
}
48
49
};
50
51
}
52
53
#endif // HAVE_EIGEN3
54
#endif // DIRECT_SPARSE_LINEAR_SOLVER_H_
shogun::CDirectSparseLinearSolver::solve
virtual SGVector< float64_t > solve(CLinearOperator< float64_t > *A, SGVector< float64_t > b)
Definition:
DirectSparseLinearSolver.cpp:33
shogun::CDirectSparseLinearSolver::CDirectSparseLinearSolver
CDirectSparseLinearSolver()
Definition:
DirectSparseLinearSolver.cpp:24
config.h
shogun::CDirectSparseLinearSolver::~CDirectSparseLinearSolver
virtual ~CDirectSparseLinearSolver()
Definition:
DirectSparseLinearSolver.cpp:29
shogun::SGVector< float64_t >
shogun::CDirectSparseLinearSolver::get_name
virtual const char * get_name() const
Definition:
DirectSparseLinearSolver.h:44
shogun::CLinearSolver
Abstract template base class that provides an abstract solve method for linear systems, that takes a linear operator , a vector , solves the system and returns the vector .
Definition:
LinearSolver.h:25
shogun
all of classes and functions are contained in the shogun namespace
Definition:
class_list.h:18
shogun::CLinearOperator< float64_t >
shogun::CDirectSparseLinearSolver
Class that provides a solve method for real sparse-matrix linear systems using LLT.
Definition:
DirectSparseLinearSolver.h:24
LinearSolver.h
SHOGUN
机器学习工具包 - 项目文档