42 #if !defined(Intrepid_MiniTensor_Tensor3_h)
43 #define Intrepid_MiniTensor_Tensor3_h
45 #include "Intrepid_MiniTensor_Tensor.h"
53 class Tensor3 :
public TensorBase<T>
81 Tensor3(Index
const dimension, ComponentValue value);
88 Tensor3(Index
const dimension, T
const & s);
95 Tensor3(Index
const dimension, T
const * data_ptr);
115 operator()(Index
const i, Index
const j, Index
const k)
const;
124 operator()(Index
const i, Index
const j, Index
const k);
140 template<
typename S,
typename T>
141 Tensor3<typename Promote<S, T>::type>
142 operator+(Tensor3<S>
const & A, Tensor3<T>
const & B);
150 template<
typename S,
typename T>
151 Tensor3<typename Promote<S, T>::type>
152 operator-(Tensor3<S>
const & A, Tensor3<T>
const & B);
160 operator-(Tensor3<T>
const & A);
168 operator==(Tensor3<T>
const & A, Tensor3<T>
const & B);
176 operator!=(Tensor3<T>
const & A, Tensor3<T>
const & B);
184 template<
typename S,
typename T>
185 typename lazy_disable_if< order_1234<S>, apply_tensor3< Promote<S,T> > >::type
186 operator*(S
const & s, Tensor3<T>
const & A);
194 template<
typename S,
typename T>
195 typename lazy_disable_if< order_1234<S>, apply_tensor3< Promote<S,T> > >::type
196 operator*(Tensor3<T>
const & A, S
const & s);
204 template<
typename S,
typename T>
205 Tensor3<typename Promote<S, T>::type>
206 operator/(Tensor3<T>
const & A, S
const & s);
214 template<
typename S,
typename T>
215 Tensor<typename Promote<S, T>::type>
216 dot(Tensor3<T>
const & A, Vector<S>
const & u);
224 template<
typename S,
typename T>
225 Tensor<typename Promote<S, T>::type>
226 dot(Vector<S>
const & u, Tensor3<T>
const & A);
234 template<
typename S,
typename T>
235 Tensor<typename Promote<S, T>::type>
236 dot2(Tensor3<T>
const & A, Vector<S>
const & u);
244 template<
typename S,
typename T>
245 Tensor<typename Promote<S, T>::type>
246 dot2(Vector<S>
const & u, Tensor3<T>
const & A);
254 template<
typename S,
typename T>
255 Tensor3<typename Promote<S, T>::type>
256 dot(Tensor3<T>
const & A, Tensor<S>
const & B);
264 template<
typename S,
typename T>
265 Tensor3<typename Promote<S, T>::type>
266 dot(Tensor<S>
const & A, Tensor3<T>
const & B);
274 template<
typename S,
typename T>
275 Tensor3<typename Promote<S, T>::type>
276 dot2(Tensor3<T>
const & A, Tensor<S>
const & B);
284 template<
typename S,
typename T>
285 Tensor3<typename Promote<S, T>::type>
286 dot2(Tensor<S>
const & A, Tensor3<T>
const & B);
296 operator>>(std::istream & is, Tensor3<T> & A);
306 operator<<(std::ostream & os, Tensor3<T>
const & A);
310 #include "Intrepid_MiniTensor_Tensor3.i.h"
311 #include "Intrepid_MiniTensor_Tensor3.t.h"
313 #endif //Intrepid_MiniTensor_Tensor3_h
T const & operator()(Index const i, Index const j, Index const k) const