6 std::cerr <<
"# [MARK] operator+(const _zgematrix&, const zgbmatrix&)"
11 if(matA.
N!=matB.N || matA.
M!=matB.M){
12 std::cerr <<
"[ERROR] operator+(_zgematrix&, zgbmatrix&)" << std::endl
13 <<
"These two matrises can not make a summation." << std::endl
14 <<
"Your input was (" << matA.
M <<
"x" << matA.
N <<
") + ("
15 << matB.M <<
"x" << matB.N <<
")." << std::endl;
20 for(
long i=0; i<matB.M; i++){
21 for(
long j=max(0,i-matB.KL); j<min(matB.N,i+matB.KU+1); j++){
34 std::cerr <<
"# [MARK] operator-(const _zgematrix&, const zgbmatrix&)"
39 if(matA.
N!=matB.N || matA.
M!=matB.M){
40 std::cerr <<
"[ERROR] operator+(_zgematrix&, zgbmatrix&)" << std::endl
41 <<
"These two matrises can not make a summation." << std::endl
42 <<
"Your input was (" << matA.
M <<
"x" << matA.
N <<
") + ("
43 << matB.M <<
"x" << matB.N <<
")." << std::endl;
48 for(
long i=0; i<matB.M; i++){
49 for(
long j=max(0,i-matB.KL); j<min(matB.N,i+matB.KU+1); j++){
62 std::cerr <<
"# [MARK] operator*(const _zgematrix&, const zgbmatrix&)"
68 std::cerr <<
"[ERROR] operator*(_zgematrix&, zgbmatrix&)" << std::endl
69 <<
"These two matrises can not make a product." << std::endl
70 <<
"Your input was (" << matA.
M <<
"x" << matA.
N <<
") * ("
71 << matB.M <<
"x" << matB.N <<
")." << std::endl;
80 #pragma omp parallel for private(j,k)
81 for(i=0; i<newmat.
m; i++){
82 for(j=0; j<newmat.
n; j++){
83 for(k=max(0,j-matB.KU); k<min(matB.M,j+matB.KL+1); k++){
84 newmat(i,j)+=matA(i,k)*matB(k,j);
long N
matrix column size
Definition: _zgematrix.hpp:8
friend _zrovector operator-(const _zrovector &)
Definition: _zrovector-unary.hpp:15
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
Definition: _zgematrix.hpp:3
void destroy() const
Definition: _zgematrix-misc.hpp:3
void zero()
Definition: zgematrix-misc.hpp:26
Complex Double-precision General Band Matrix Class.
Definition: zgbmatrix.hpp:3
friend _zrovector operator*(const zrovector &, const zgematrix &)
Definition: zrovector-zgematrix.hpp:3
long M
matrix row size
Definition: _zgematrix.hpp:7
long const & m
matrix row size (readable)
Definition: zgematrix.hpp:14
long const & n
matrix column size (readable)
Definition: zgematrix.hpp:15
friend const _zrovector & operator+(const _zrovector &)
Definition: _zrovector-unary.hpp:3