RSMesh
1.0.0
一个曲面重构的系统,输入为点云,输出为obj,stl等主流格式的网格文件,使用的方法为径向基函数插值,采取了并行优化、Intel-MKL等优化措施,支持百万级别的点云
载入中...
搜索中...
未找到
include
krylov
indentity_operator.h
1
//
2
// Created by RainSure on 2024/2/13.
3
//
4
5
#ifndef RSMESH_INDENTITY_OPERATOR_H
6
#define RSMESH_INDENTITY_OPERATOR_H
7
8
#include "common/macros.h"
9
#include "linear_operator.h"
10
#include "types.h"
11
12
namespace
rsmesh::krylov {
13
class
identity_operator
:
public
linear_operator
{
14
public
:
15
explicit
identity_operator
(index_t n) : n_(n) {}
16
17
valuesd operator()(
const
valuesd& v)
const override
{
18
RSMESH_ASSERT(
static_cast<
int
>
(v.rows()) == n_);
19
return
v;
20
}
21
22
[[nodiscard]] index_t size()
const override
{
return
n_; }
23
24
private
:
25
const
index_t n_;
26
};
27
}
28
29
#endif
//RSMESH_INDENTITY_OPERATOR_H
rsmesh::krylov::identity_operator
Definition
indentity_operator.h:13
rsmesh::krylov::linear_operator
Definition
linear_operator.h:11
制作者
1.10.0