6 std::cerr <<
"# [MARK] dsymatrix::operator=(const dsymatrix&)"
25 std::cerr <<
"# [MARK] dsymatrix::operator+=(const dsymatrix&)"
31 std::cerr <<
"[ERROR] dsymatrix::operator+=(dsymatrix&)" << std::endl
32 <<
"These two matrises can not make a summation." << std::endl
33 <<
"Your input was (" << N <<
"x" << N <<
") += ("
34 << mat.N <<
"x" << mat.N <<
")." << std::endl;
39 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++){
75 std::cerr <<
"# [MARK] operator+(const dsymatrix&, const dsymatrix&)"
81 std::cerr <<
"[ERROR] operator+(dsymatrix&, dsymatrix&)" << std::endl
82 <<
"These two matrises can not make a summation." << std::endl
83 <<
"Your input was (" << matA.N <<
"x" << matA.N <<
") + ("
84 << matB.N <<
"x" << matB.N <<
")." << std::endl;
91 for(
long i=0; i<N*N; i++){
92 newmat.Array[i] = matA.Array[i] + matB.Array[i];
102 std::cerr <<
"# [MARK] operator-(const dsymatrix&, const dsymatrix&)"
108 std::cerr <<
"[ERROR] operator-(dsymatrix&, dsymatrix&)" << std::endl
109 <<
"These two matrises can not make a subtraction." << std::endl
110 <<
"Your input was (" << matA.N <<
"x" << matA.N <<
") - ("
111 << matB.N <<
"x" << matB.N <<
")." << std::endl;
118 for(
long i=0; i<N*N; i++){
119 newmat.Array[i] =matA.Array[i]-matB.Array[i];
130 std::cerr <<
"# [MARK] operator*(const dsymatrix&, const dsymatrix&)"
136 std::cerr <<
"[ERROR] operator*(dsymatrix&, dsymatrix&)" << std::endl
137 <<
"These two matrises can not make a product." << std::endl
138 <<
"Your input was (" << matA.N <<
"x" << matA.N <<
") * ("
139 << matB.N <<
"x" << matB.N <<
")." << std::endl;
148 dgemm_(
'N',
'N', matA.N, matB.N, matA.N, 1.0, matA.Array, matA.N,
149 matB.Array, matB.N, 0.0, newmat.array, matA.N );
dsymatrix & operator-=(const dsymatrix &)
Definition: dsymatrix-dsymatrix.hpp:47
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
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
dsymatrix & operator=(const dsymatrix &)
Definition: dsymatrix-dsymatrix.hpp:3
friend _drovector operator*(const drovector &, const dgematrix &)
Definition: drovector-dgematrix.hpp:3
(DO NOT USE) Smart-temporary Real Double-precision Symmetric Matrix Class
Definition: _dsymatrix.hpp:3
void complete() const
Definition: dsymatrix-misc.hpp:3
void copy(const dsymatrix &)
Definition: dsymatrix-misc.hpp:78
friend const _drovector & operator+(const _drovector &)
Definition: _drovector-unary.hpp:3