| 314 | |
| 315 | template <class T> |
| 316 | static Shear6<T> |
| 317 | multTuple(Shear6<T> &v, tuple t) |
| 318 | { |
| 319 | MATH_EXC_ON; |
| 320 | Shear6<T> w; |
| 321 | |
| 322 | if(t.attr("__len__")() == 6){ |
| 323 | w[0] = v[0] * extract<T>(t[0]); |
| 324 | w[1] = v[1] * extract<T>(t[1]); |
| 325 | w[2] = v[2] * extract<T>(t[2]); |
| 326 | w[3] = v[3] * extract<T>(t[3]); |
| 327 | w[4] = v[4] * extract<T>(t[4]); |
| 328 | w[5] = v[5] * extract<T>(t[5]); |
| 329 | } |
| 330 | else |
| 331 | throw std::domain_error ("tuple must have length of 6"); |
| 332 | |
| 333 | return w; |
| 334 | } |
| 335 | |
| 336 | template <class T> |
| 337 | static Shear6<T> |
nothing calls this directly
no outgoing calls
no test coverage detected