42 #if !defined(Intrepid_MiniTensor_Vector_h)
43 #define Intrepid_MiniTensor_Vector_h
50 #include "Intrepid_MiniTensor_Definitions.h"
51 #include "Intrepid_MiniTensor_Storage.h"
52 #include "Intrepid_MiniTensor_TensorBase.h"
53 #include "Intrepid_MiniTensor_Utilities.h"
61 class Vector :
public TensorBase<T>
81 Vector(Index
const dimension);
89 Vector(Index
const dimension, ComponentValue value);
97 Vector(Index
const dimension, T
const & s);
103 Vector(T
const & s0, T
const & s1);
110 Vector(T
const & s0, T
const & s1, T
const & s2);
117 Vector(Index
const dimension, T
const * data_ptr);
155 template<
typename S,
typename T>
156 Vector<typename Promote<S, T>::type>
157 operator+(Vector<S>
const & u, Vector<T>
const & v);
163 template<
typename S,
typename T>
164 Vector<typename Promote<S, T>::type>
165 operator-(Vector<S>
const & u, Vector<T>
const & v);
173 operator-(Vector<T>
const & u);
179 template<
typename S,
typename T>
180 typename Promote<S, T>::type
181 operator*(Vector<S>
const & u, Vector<T>
const & v);
189 operator==(Vector<T>
const & u, Vector<T>
const & v);
197 operator!=(Vector<T>
const & u, Vector<T>
const & v);
205 template<
typename S,
typename T>
206 typename lazy_disable_if< order_1234<S>, apply_vector< Promote<S,T> > >::type
207 operator*(S
const & s, Vector<T>
const & u);
215 template<
typename S,
typename T>
216 typename lazy_disable_if< order_1234<S>, apply_vector< Promote<S,T> > >::type
217 operator*(Vector<T>
const & u, S
const & s);
225 template<
typename S,
typename T>
226 Vector<typename Promote<S, T>::type>
227 operator/(Vector<T>
const & u, S
const & s);
233 template<
typename S,
typename T>
234 typename Promote<S, T>::type
235 dot(Vector<S>
const & u, Vector<T>
const & v);
242 template<
typename S,
typename T>
243 Vector<typename Promote<S, T>::type>
244 cross(Vector<S>
const & u, Vector<T>
const & v);
252 norm(Vector<T>
const & u);
260 norm_square(Vector<T>
const & u);
268 norm_1(Vector<T>
const & u);
276 norm_infinity(Vector<T>
const & u);
286 operator>>(std::istream & is, Vector<T> & u);
296 operator<<(std::ostream & os, Vector<T>
const & u);
300 #include "Intrepid_MiniTensor_Vector.i.h"
301 #include "Intrepid_MiniTensor_Vector.t.h"
303 #endif //Intrepid_MiniTensor_Vector_h
T const & operator()(Index const i) const