Lines Matching refs:lhs

50         vec<TYPE, SIZE>& lhs, const VEC<TYPE, S>& rhs) {  in doAssign()  argument
54 lhs[i] = rhs[i]; in doAssign()
56 lhs[i] = 0; in doAssign()
57 return lhs; in doAssign()
68 const VLHS<TYPE, SIZE>& lhs, in doAdd() argument
72 r[i] = lhs[i] + rhs[i]; in doAdd()
83 const VLHS<TYPE, SIZE>& lhs, in doSub() argument
87 r[i] = lhs[i] - rhs[i]; in doSub()
97 const VEC<TYPE, SIZE>& lhs, in doMulScalar() argument
101 r[i] = lhs[i] * rhs; in doMulScalar()
111 typename TypeTraits<TYPE>::ParameterType lhs, in doScalarMul() argument
115 r[i] = lhs * rhs[i]; in doScalarMul()
146 const VLHS<TYPE, SIZE>& lhs,
148 return helpers::doAdd(lhs, rhs);
158 const VLHS<TYPE, SIZE>& lhs,
160 return helpers::doSub(lhs, rhs);
169 const VEC<TYPE, SIZE>& lhs,
171 return helpers::doMulScalar(lhs, rhs);
180 typename TypeTraits<TYPE>::ParameterType lhs,
182 return helpers::doScalarMul(lhs, rhs);
193 const VLHS<TYPE, SIZE>& lhs, in dot_product() argument
197 r += lhs[i] * rhs[i]; in dot_product()
245 vec<TYPE, SIZE> PURE operator - (const vec<TYPE, SIZE>& lhs) {
248 r[i] = -lhs[i];
385 friend inline vec PURE operator + (const vec& lhs, const vec& rhs) {
386 return helpers::doAdd(lhs, rhs);
388 friend inline vec PURE operator - (const vec& lhs, const vec& rhs) {
389 return helpers::doSub(lhs, rhs);
391 friend inline vec PURE operator * (const vec& lhs, pTYPE v) {
392 return helpers::doMulScalar(lhs, v);
397 friend inline TYPE PURE dot_product(const vec& lhs, const vec& rhs) {
398 return android::dot_product(lhs, rhs);
406 vec<TYPE, SIZE>& lhs(*this);
408 lhs[i] += rhs[i];
409 return lhs;
414 vec<TYPE, SIZE>& lhs(*this);
416 lhs[i] -= rhs[i];
417 return lhs;
422 vec<TYPE, SIZE>& lhs(*this);
424 lhs[i] *= rhs;
425 return lhs;