6 std::cerr <<
"# [MARK] dsymatrix::operator=(const _dsymatrix&)"
23 std::cerr <<
"# [MARK] dsymatrix::operator+=(const _dsymatrix&)"
29 std::cerr <<
"[ERROR] dsymatrix::operator+=(_dsymatrix&)" << std::endl
30 <<
"These two matrises can not make a summation." << std::endl
31 <<
"Your input was (" << N <<
"x" << N <<
") += ("
32 << mat.
N <<
"x" << mat.
N <<
")." << std::endl;
37 for(
long i=0;
i<N*N;
i++){
50 std::cerr <<
"# [MARK] dsymatrix::operator-=(const _dsymatrix&)"
56 std::cerr <<
"[ERROR] dsymatrix::operator-=(_dsymatrix&)" << std::endl
57 <<
"These two matrises can not make a sutraction." << std::endl
58 <<
"Your input was (" << N <<
"x" << N <<
") -= ("
59 << mat.
N <<
"x" << mat.
N <<
")." << std::endl;
64 for(
long i=0;
i<N*N;
i++){
81 std::cerr <<
"# [MARK] operator+(const dsymatrix&, const _dsymatrix&)"
87 std::cerr <<
"[ERROR] operator+(dsymatrix&, _dsymatrix&)" << std::endl
88 <<
"These two matrises can not make a summation." << std::endl
89 <<
"Your input was (" << matA.N <<
"x" << matA.N <<
") + ("
90 << matB.
N <<
"x" << matB.
N <<
")." << std::endl;
95 for(
long i=0; i<matA.N*matA.N; i++){
96 matB.
Array[i]+=matA.Array[i];
107 std::cerr <<
"# [MARK] operator-(const dsymatrix&, const _dsymatrix&)"
113 std::cerr <<
"[ERROR] operator-(dsymatrix&, _dsymatrix&)" << std::endl
114 <<
"These two matrises can not make a subtraction." << std::endl
115 <<
"Your input was (" << matA.N <<
"x" << matA.N <<
") - ("
116 << matB.
N <<
"x" << matB.
N <<
")." << std::endl;
121 for(
long i=0; i<matA.N*matA.N; i++){
133 std::cerr <<
"# [MARK] operator*(const dsymatrix&, const _dsymatrix&)"
139 std::cerr <<
"[ERROR] operator*(dsymatrix&, _dsymatrix&)" << std::endl
140 <<
"These two matrises can not make a product." << std::endl
141 <<
"Your input was (" << matA.N <<
"x" << matA.N <<
") * ("
142 << matB.
N <<
"x" << matB.
N <<
")." << std::endl;
151 dgemm_(
'N',
'N', matA.N, matB.
N, matA.N, 1.0, matA.Array, matA.N,
152 matB.
Array, matB.
N, 0.0, newmat.array, matA.N );
dsymatrix & operator-=(const dsymatrix &)
Definition: dsymatrix-dsymatrix.hpp:47
void destroy() const
Definition: _dsymatrix-misc.hpp:3
friend _dgematrix i(const dsymatrix &)
Definition: dsymatrix-calc.hpp:22
double * Array
1D Array to store vector data
Definition: _drovector.hpp:8
Real Double-precision General Dence Matrix Class.
Definition: dgematrix.hpp:3
double * Array
1D Array to store matrix data
Definition: _dsymatrix.hpp:8
Real Double-precision Symmetric Matrix Class [L-type (UPLO=L) Strage].
Definition: dsymatrix.hpp:3
friend _drovector operator-(const _drovector &)
Definition: _drovector-unary.hpp:15
(DO NOT USE) Smart-temporary Real Double-precision General Dence Matrix Class
Definition: _dgematrix.hpp:3
dsymatrix & operator+=(const dsymatrix &)
Definition: dsymatrix-dsymatrix.hpp:22
void shallow_copy(const _dsymatrix &)
Definition: dsymatrix-misc.hpp:108
dsymatrix & operator=(const dsymatrix &)
Definition: dsymatrix-dsymatrix.hpp:3
friend _drovector operator*(const drovector &, const dgematrix &)
Definition: drovector-dgematrix.hpp:3
long N
matrix column or row size
Definition: _dsymatrix.hpp:7
(DO NOT USE) Smart-temporary Real Double-precision Symmetric Matrix Class
Definition: _dsymatrix.hpp:3
void complete() const
Definition: _dsymatrix-misc.hpp:22
void complete() const
Definition: dsymatrix-misc.hpp:3
friend const _drovector & operator+(const _drovector &)
Definition: _drovector-unary.hpp:3