mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14938 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
7829620661
commit
bf3187d764
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue