git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14938 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2016-05-06 14:20:38 +00:00
parent 7829620661
commit bf3187d764
1 changed files with 2 additions and 2 deletions

View File

@ -115,11 +115,11 @@ DenseVector<T> operator*(const T s, const Vector<T> &v)
///////////////////////////////////////////////////////////////////////////////
//* inverse scaling operator - must always create memory
template<typename T>
DenseMatrix<T> operator/(const Vector<T> &v, const T s)
DenseVector<T> operator/(const Vector<T> &v, const T s)
{
DenseVector<T> r(v);
r*=(1.0/s); // for integer types this may be worthless
return ;
return r;
}
///////////////////////////////////////////////////////////////////////////////
//* Operator for Vector-Vector sum