monolish
0.14.0
MONOlithic LIner equation Solvers for Highly-parallel architecture
|
Go to the documentation of this file. 1 #include "../../../include/monolish_blas.hpp"
2 #include "../../internal/monolish_internal.hpp"
14 for (
int i = 1; i < M - 1; ++i) {
19 mat.
insert(M - 1, M - 2, b);
20 mat.
insert(M - 1, M - 1, a);
32 T exact_result = a - 2.0 * std::abs(b) * std::cos(M_PI * (N + 1) / (M + 1));
matrix::COO< T > tridiagonal_toeplitz_matrix(const int &M, T a, T b)
create tridiagonal Toeplitz matrix
logger class (singleton, for developper class)
T tridiagonal_toeplitz_matrix_eigenvalue(const int &M, int N, T a, T b)
Nth smallest eigenvalue of MxM tridiagonal Toeplitz matrix.
void insert(const size_t m, const size_t n, const Float val)
insert element to (m, n)
void util_in(const std::string func_name)
Coodinate (COO) format Matrix (need to sort)
static Logger & get_instance()