Lines Matching refs:rhs
35 typename TypeTraits<TYPE>::ParameterType rhs) { in doAssign() argument
38 lhs[i][j] = (i==j) ? rhs : 0; in doAssign()
45 const mat<TYPE, C, D>& rhs) in doMul() argument
52 v += lhs[k][r] * rhs[c][k]; in doMul()
63 const vec<TYPE, D>& rhs) in doMul() argument
69 v += lhs[k][r] * rhs[k]; in doMul()
79 const mat<TYPE, C, 1>& rhs) in doMul() argument
84 res[c][r] = lhs[r] * rhs[c][0]; in doMul()
92 const mat<TYPE, C, R>& rhs, in doMul() argument
98 res[c][r] = rhs[c][r] * v; in doMul()
107 const mat<TYPE, C, R>& rhs) in doMul() argument
112 res[c][r] = v * rhs[c][r]; in doMul()
141 mat(const mat& rhs) : base(rhs) { } in mat() argument
142 mat(const base& rhs) : base(rhs) { } // NOLINT(google-explicit-constructor) in mat() argument
148 mat(pTYPE rhs) { // NOLINT(google-explicit-constructor) in mat() argument
149 helpers::doAssign(*this, rhs); in mat()
155 mat& operator=(const mat& rhs) {
156 base::operator=(rhs);
160 mat& operator=(const base& rhs) {
161 base::operator=(rhs);
165 mat& operator=(pTYPE rhs) {
166 return helpers::doAssign(*this, rhs);
172 friend inline mat PURE operator + (const mat& lhs, const mat& rhs) {
175 static_cast<const base&>(rhs));
177 friend inline mat PURE operator - (const mat& lhs, const mat& rhs) {
180 static_cast<const base&>(rhs));
187 const mat<TYPE, C, D>& rhs) {
188 return helpers::doMul(lhs, rhs);
193 const mat& lhs, const vec<TYPE, C>& rhs) {
194 return helpers::doMul(lhs, rhs);
199 const vec<TYPE, R>& lhs, const mat<TYPE, C, 1>& rhs) {
200 return helpers::doMul(lhs, rhs);
209 friend inline mat PURE operator * (pTYPE v, const mat& rhs) {
210 return helpers::doMul(v, rhs);
233 const vec<TYPE, R>& rhs) {
234 lhs.matrix[PREV_COLUMN+1] = rhs;
242 const vec<TYPE, R>& rhs) {
243 lhs.matrix[C-1] = rhs;
248 column_builder<0> operator << (const vec<TYPE, R>& rhs) {
249 (*this)[0] = rhs;
268 explicit mat(const base& rhs) : base(rhs) { } in mat() argument
269 mat(const mat& rhs) : base(rhs) { } in mat() argument
270 explicit mat(const TYPE& rhs) { helpers::doAssign(*this, rhs); } in mat() argument
271 mat& operator=(const mat& rhs) { base::operator=(rhs); return *this; }
272 mat& operator=(const base& rhs) { base::operator=(rhs); return *this; }
273 mat& operator=(const TYPE& rhs) { return helpers::doAssign(*this, rhs); }
277 void operator << (const vec<TYPE, R>& rhs) { base::operator[](0) = rhs; }