Skip to content

Commit fa681a8

Browse files
committed
Fixes wrong dimensions in x = A * y.
1 parent fcb8f1b commit fa681a8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/femlib/RNM.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,9 +1019,9 @@ class KN :public KN_<R> { public:
10191019

10201020

10211021
KN& operator =(const Mul_KNM_KN_<R> & u)
1022-
{ if(this->unset()) this->set(new R[u.b.N()],u.b.N());KN_<R>::operator=(u);return *this;}
1022+
{ if(this->unset()) this->set(new R[u.A.N()],u.A.N());KN_<R>::operator=(u);return *this;}
10231023
KN& operator =(const Mul_KNMh_KN_<R> & u)
1024-
{ if(this->unset()) this->set(new R[u.b.N()],u.b.N());KN_<R>::operator=(u);return *this;}
1024+
{ if(this->unset()) this->set(new R[u.A.M()],u.A.M());KN_<R>::operator=(u);return *this;}
10251025

10261026
// KN& operator =(const MatriceCreuseMulKN_<R> & Ax)
10271027
// {if(this->unset()) set(new R[Ax.v.N()],Ax.v.N()); KN_<R>::operator=(Ax);return *this;}

src/femlib/RNM_op.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ template<class R>
9494
KN_<R>& KN_<R>::operator oper (const Mul_KNMh_KN_<R> & u) {
9595
K_throwassert (SameShape(u.A.shapei) && !constant());
9696
R * l(v); KN_<const_R> li(u.A(0,'.')); // first line
97-
std::cout << " Mul_KNMh_KN_ "<< endl;
9897
for (long i=0;i<n;i++,l += step,++li)
9998
*l oper (conj(li),u.b);
10099
return *this;}

0 commit comments

Comments
 (0)