Lines Matching refs:rhs

50         vec<TYPE, SIZE>& lhs, const VEC<TYPE, S>& rhs) {  in doAssign()  argument
54 lhs[i] = rhs[i]; in doAssign()
69 const VRHS<TYPE, SIZE>& rhs) { in doAdd() argument
72 r[i] = lhs[i] + rhs[i]; in doAdd()
84 const VRHS<TYPE, SIZE>& rhs) { in doSub() argument
87 r[i] = lhs[i] - rhs[i]; in doSub()
98 typename TypeTraits<TYPE>::ParameterType rhs) { in doMulScalar() argument
101 r[i] = lhs[i] * rhs; in doMulScalar()
112 const VEC<TYPE, SIZE>& rhs) { in doScalarMul() argument
115 r[i] = lhs * rhs[i]; in doScalarMul()
147 const VRHS<TYPE, SIZE>& rhs) {
148 return helpers::doAdd(lhs, rhs);
159 const VRHS<TYPE, SIZE>& rhs) {
160 return helpers::doSub(lhs, rhs);
170 typename TypeTraits<TYPE>::ParameterType rhs) {
171 return helpers::doMulScalar(lhs, rhs);
181 const VEC<TYPE, SIZE>& rhs) {
182 return helpers::doScalarMul(lhs, rhs);
194 const VRHS<TYPE, SIZE>& rhs) { in dot_product() argument
197 r += lhs[i] * rhs[i]; in dot_product()
324 vec(const vec& rhs) : base(rhs) { }
325 vec(const base& rhs) : base(rhs) { } // NOLINT(google-explicit-constructor)
330 vec(pTYPE rhs) { // NOLINT(google-explicit-constructor)
332 base::operator[](i) = rhs;
336 explicit vec(const VEC<TYPE, S>& rhs) {
337 helpers::doAssign(*this, rhs);
348 vec& operator = (const vec& rhs) {
349 base::operator=(rhs);
353 vec& operator = (const base& rhs) {
354 base::operator=(rhs);
358 vec& operator = (pTYPE rhs) {
360 base::operator[](i) = rhs;
365 vec& operator = (const VEC<TYPE, S>& rhs) {
366 return helpers::doAssign(*this, rhs);
372 vec& operator += (const vec& rhs);
373 vec& operator -= (const vec& rhs);
374 vec& operator *= (pTYPE rhs);
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);
394 friend inline vec PURE operator * (pTYPE v, const vec& rhs) {
395 return helpers::doScalarMul(v, rhs);
397 friend inline TYPE PURE dot_product(const vec& lhs, const vec& rhs) {
398 return android::dot_product(lhs, rhs);
405 vec<TYPE, SIZE>& vec<TYPE, SIZE>::operator += (const vec<TYPE, SIZE>& rhs) {
408 lhs[i] += rhs[i];
413 vec<TYPE, SIZE>& vec<TYPE, SIZE>::operator -= (const vec<TYPE, SIZE>& rhs) {
416 lhs[i] -= rhs[i];
421 vec<TYPE, SIZE>& vec<TYPE, SIZE>::operator *= (vec<TYPE, SIZE>::pTYPE rhs) {
424 lhs[i] *= rhs;