ARCS6 AR6-REV.24062600
読み取り中…
検索中…
一致する文字列を見つけられません
Limiter.hh
[詳解]
1
8//
9// Copyright (C) 2011-2024 Yuki YOKOKURA
10// This program is free software;
11// you can redistribute it and/or modify it under the terms of the FreeBSD License.
12// For details, see the License.txt file.
13
14#ifndef LIMITER
15#define LIMITER
16
17#include "ArcsMatrix.hh"
18#include "Matrix.hh"
19
20namespace ARCS { // ARCS名前空間
21 double Limiter(const double input, const double limit);
22 double Limiter(const double input, const double pos_limit, const double neg_limit);
23
28 template<size_t M>
29 void Limiter(ArcsMat<M,1>& inout, const ArcsMat<M,1>& limit){
30 for(size_t i = 1; i <= M; ++i) inout[i] = Limiter(inout[i], limit[i]);
31 }
32
37 template<size_t M>
38 void Limiter(Matrix<1,M>& inout, const Matrix<1,M>& limit){
39 for(size_t i = 1; i <= M; ++i) inout[i] = Limiter(inout[i], limit[i]);
40 }
41}
42
43#endif
44
double Limiter(const double input, const double limit)
リミッタ
Definition Limiter.cc:18
行列/ベクトル計算クラス(テンプレート版)
ARCS-Matrix 行列演算クラス
ARCS-Matrix 行列演算クラス
Definition ArcsMatrix.hh:89
行列/ベクトル計算クラス(テンプレート版)
Definition Matrix.hh:44