Lines Matching refs:rhs

50         vec<TYPE, SIZE>& lhs, const VEC<TYPE, S>& rhs) {
54 lhs[i] = rhs[i];
69 const VRHS<TYPE, SIZE>& rhs) {
72 r[i] = lhs[i] + rhs[i];
84 const VRHS<TYPE, SIZE>& rhs) {
87 r[i] = lhs[i] - rhs[i];
98 typename TypeTraits<TYPE>::ParameterType rhs) {
101 r[i] = lhs[i] * rhs;
112 const VEC<TYPE, SIZE>& rhs) {
115 r[i] = lhs * rhs[i];
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) {
197 r += lhs[i] * rhs[i];
324 vec(const vec& rhs) : base(rhs) { }
325 vec(const base& rhs) : base(rhs) { }
330 vec(pTYPE rhs) {
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;