42 #if !defined(Intrepid_MiniTensor_Tensor4_i_h)
43 #define Intrepid_MiniTensor_Tensor4_i_h
127 template<
typename S,
typename T>
143 template<
typename S,
typename T>
145 Tensor4<typename Promote<S, T>::type>
146 operator-(Tensor4<S>
const & A, Tensor4<T>
const & B)
148 Tensor4<typename Promote<S, T>::type>
162 operator-(Tensor4<T>
const & A)
178 operator==(Tensor4<T>
const & A, Tensor4<T>
const & B)
189 operator!=(Tensor4<T>
const & A, Tensor4<T>
const & B)
191 return not_equal(A, B);
197 template<
typename S,
typename T>
199 typename lazy_disable_if< order_1234<S>, apply_tensor4< Promote<S,T> > >::type
200 operator*(S
const & s, Tensor4<T>
const & A)
202 Tensor4<typename Promote<S, T>::type>
213 template<
typename S,
typename T>
215 typename lazy_disable_if< order_1234<S>, apply_tensor4< Promote<S,T> > >::type
216 operator*(Tensor4<T>
const & A, S
const & s)
218 Tensor4<typename Promote<S, T>::type>
229 template<
typename S,
typename T>
231 Tensor4<typename Promote<S, T>::type>
232 operator/(Tensor4<T>
const & A, S
const & s)
234 Tensor4<typename Promote<S, T>::type>
253 Index
const i, Index
const j, Index
const k, Index
const l)
const
266 return self[((i * N + j) * N + k) * N + l];
280 Index
const i, Index
const j, Index
const k, Index
const l)
293 return self[((i * N + j) * N + k) * N + l];
298 #endif // Intrepid_MiniTensor_Tensor4_i_h
Index get_dimension() const
T const & operator()(Index const i, Index const j, Index const k, Index const l) const