6 std::cerr <<
"# [MARK] operator+(const zgbmatrix&, const zgematrix&)"
11 if(matA.N!=matB.N || matA.M!=matB.M){
12 std::cerr <<
"[ERROR] operator+(zgbmatrix&, zgematrix&)" << 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;
21 for(
long i=0; i<matA.M; i++){
22 for(
long j=
max(0,i-matA.KL); j<min(matA.N,i+matA.KU+1); j++){
23 newmat(i,j)+=matA(i,j);
35 std::cerr <<
"# [MARK] operator-(const zgbmatrix&, const zgematrix&)"
40 if(matA.N!=matB.N || matA.M!=matB.M){
41 std::cerr <<
"[ERROR] operator+(zgbmatrix&, zgematrix&)" << std::endl
42 <<
"These two matrises can not make a summation." << std::endl
43 <<
"Your input was (" << matA.M <<
"x" << matA.N <<
") + ("
44 << matB.M <<
"x" << matB.N <<
")." << std::endl;
50 for(
long i=0; i<matA.M; i++){
51 for(
long j=
max(0,i-matA.KL); j<min(matA.N,i+matA.KU+1); j++){
52 newmat(i,j)+=matA(i,j);
64 std::cerr <<
"# [MARK] operator*(const zgbmatrix&, const zgematrix&)"
70 std::cerr <<
"[ERROR] operator*(zgbmatrix&, zgematrix&)" << std::endl
71 <<
"These two matrises can not make a product." << std::endl
72 <<
"Your input was (" << matA.M <<
"x" << matA.N <<
") * ("
73 << matB.M <<
"x" << matB.N <<
")." << std::endl;
82 #pragma omp parallel for private(j,k)
83 for(i=0; i<newmat.
m; i++){
84 for(j=0; j<newmat.
n; j++){
85 for(k=
max(0,i-matA.KL); k<min(matA.N,i+matA.KU+1); k++){
86 newmat(i,j)+=matA(i,k)*matB(k,j);
double max(double v1, double v2)
Return maximum.
Definition: variousFunctions.cpp:355
long const & m
matrix row size (readable)
Definition: zgematrix.hpp:14
friend _zrovector operator-(const _zrovector &)
Definition: _zrovector-unary.hpp:15
long const & n
matrix column size (readable)
Definition: zgematrix.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 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
friend const _zrovector & operator+(const _zrovector &)
Definition: _zrovector-unary.hpp:3