MPS-Basic
Loading...
Searching...
No Matches
weight.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
common.hpp
"
4
5
enum class
WeightType
{
SemiImplicit
,
Explicit
,
ExplicitGrad
};
6
15
class
Weight
{
16
private
:
17
WeightType
weightType
;
18
19
public
:
20
Weight
() =
default
;
21
Weight
(
WeightType
weightType
);
22
39
double
weightFn
(
double
dis,
double
re);
40
};
Weight
Provides a weight function.
Definition
weight.hpp:15
Weight::weightType
WeightType weightType
Definition
weight.hpp:17
Weight::weightFn
double weightFn(double dis, double re)
Weight function for MPS method.
Definition
weight.cpp:10
Weight::Weight
Weight()=default
common.hpp
WeightType
WeightType
Definition
weight.hpp:5
WeightType::SemiImplicit
@ SemiImplicit
WeightType::Explicit
@ Explicit
WeightType::ExplicitGrad
@ ExplicitGrad
src
weight.hpp
Generated by
1.12.0