MatMechLab / AsFem

Advanced Simulation kit based on Finite Element Method (AsFem)
https://matmechlab.github.io/AsFem
GNU General Public License v3.0
183 stars 56 forks source link

Handwrite error in MatrixXd.h #37

Closed xyat21 closed 3 years ago

xyat21 commented 3 years ago

In line 168 of the file AsFem/include/Utils/MatrixXd.h, there is a typing error, it should be ' * ' rather than '+'. ` //** for

inline MatrixXd operator*(const double &val)const{

    MatrixXd temp(_M,_N);

    for(int i=0;i<_MN;++i) temp._vals[i]=_vals[i]+val;

    return temp;

}

`

The line should be for(int i=0;i<_MN;++i) temp._vals[i]=_vals[i]*val;

yangbai90 commented 3 years ago

Hi @xyat21 , Thank you very much for your feedback. The issue has now been resolved in ab769485ff8a58cb4d7d98593be532075907256f