42 #if !defined(Intrepid_MiniTensor_Tensor4_h)
43 #define Intrepid_MiniTensor_Tensor4_h
45 #include "Intrepid_MiniTensor_Tensor3.h"
53 class Tensor4 :
public TensorBase<T>
81 Tensor4(Index
const dimension, ComponentValue value);
88 Tensor4(Index
const dimension, T
const & s);
95 Tensor4(Index
const dimension, T
const * data_ptr);
120 Index
const l)
const;
150 template<
typename S,
typename T>
151 Tensor4<typename Promote<S, T>::type>
152 operator+(Tensor4<S>
const & A, Tensor4<T>
const & B);
160 template<
typename S,
typename T>
161 Tensor4<typename Promote<S, T>::type>
162 operator-(Tensor4<S>
const & A, Tensor4<T>
const & B);
170 operator-(Tensor4<T>
const & A);
178 operator==(Tensor4<T>
const & A, Tensor4<T>
const & B);
186 operator!=(Tensor4<T>
const & A, Tensor4<T>
const & B);
194 template<
typename S,
typename T>
195 typename lazy_disable_if< order_1234<S>, apply_tensor4< Promote<S,T> > >::type
196 operator*(S
const & s, Tensor4<T>
const & A);
204 template<
typename S,
typename T>
205 typename lazy_disable_if< order_1234<S>, apply_tensor4< Promote<S,T> > >::type
206 operator*(Tensor4<T>
const & A, S
const & s);
214 template<
typename S,
typename T>
215 Tensor4<typename Promote<S, T>::type>
216 operator/(Tensor4<T>
const & A, S
const & s);
223 transpose(Tensor4<T>
const & A);
231 identity_1(Index
const N);
239 identity_2(Index
const N);
247 identity_3(Index
const N);
255 template<
typename S,
typename T>
256 Tensor3<typename Promote<S, T>::type>
257 dot(Tensor4<T>
const & A, Vector<S>
const & u);
265 template<
typename S,
typename T>
266 Tensor3<typename Promote<S, T>::type>
267 dot(Vector<S>
const & u, Tensor4<T>
const & A);
275 template<
typename S,
typename T>
276 Tensor3<typename Promote<S, T>::type>
277 dot2(Tensor4<T>
const & A, Vector<S>
const & u);
285 template<
typename S,
typename T>
286 Tensor3<typename Promote<S, T>::type>
287 dot2(Vector<S>
const & u, Tensor4<T>
const & A);
295 template<
typename S,
typename T>
296 Tensor<typename Promote<S, T>::type>
297 dotdot(Tensor4<T>
const & A, Tensor<S>
const & B);
305 template<
typename S,
typename T>
306 Tensor<typename Promote<S, T>::type>
307 dotdot(Tensor<S>
const & B, Tensor4<T>
const & A);
315 template<
typename S,
typename T>
316 Tensor4<typename Promote<S, T>::type>
317 dotdot(Tensor4<S>
const & A, Tensor4<T>
const & B);
325 template<
typename S,
typename T>
326 Tensor4<typename Promote<S, T>::type>
327 tensor(Tensor<S>
const & A, Tensor<T>
const & B);
335 template<
typename S,
typename T>
336 Tensor4<typename Promote<S, T>::type>
337 tensor2(Tensor<S>
const & A, Tensor<T>
const & B);
345 template<
typename S,
typename T>
346 Tensor4<typename Promote<S, T>::type>
347 tensor3(Tensor<S>
const & A, Tensor<T>
const & B);
355 template<
typename S,
typename T>
356 Tensor4<typename Promote<S, T>::type>
357 dot(Tensor4<T>
const & A, Tensor<S>
const & B);
365 template<
typename S,
typename T>
366 Tensor4<typename Promote<S, T>::type>
367 dot_t(Tensor4<T>
const & A, Tensor<S>
const & B);
375 template<
typename S,
typename T>
376 Tensor4<typename Promote<S, T>::type>
377 dot(Tensor<S>
const & A, Tensor4<T>
const & B);
385 template<
typename S,
typename T>
386 Tensor4<typename Promote<S, T>::type>
387 t_dot(Tensor<S>
const & A, Tensor4<T>
const & B);
395 template<
typename S,
typename T>
396 Tensor4<typename Promote<S, T>::type>
397 dot2(Tensor4<T>
const & A, Tensor<S>
const & B);
405 template<
typename S,
typename T>
406 Tensor4<typename Promote<S, T>::type>
407 dot2_t(Tensor4<T>
const & A, Tensor<S>
const & B);
415 template<
typename S,
typename T>
416 Tensor4<typename Promote<S, T>::type>
417 dot2(Tensor<S>
const & A, Tensor4<T>
const & B);
425 template<
typename S,
typename T>
426 Tensor4<typename Promote<S, T>::type>
427 t_dot2(Tensor<S>
const & A, Tensor4<T>
const & B);
437 template<
typename S,
typename T>
438 Tensor4<typename Promote<S, T>::type>
439 odot(Tensor<S>
const & A, Tensor<T>
const & B);
449 operator>>(std::istream & is, Tensor4<T> & A);
459 operator<<(std::ostream & os, Tensor4<T>
const & A);
463 #include "Intrepid_MiniTensor_Tensor4.i.h"
464 #include "Intrepid_MiniTensor_Tensor4.t.h"
466 #endif //Intrepid_MiniTensor_Tensor4_h
T const & operator()(Index const i, Index const j, Index const k, Index const l) const