LifeV
VectorSmall.cpp
Go to the documentation of this file.
1 #include <lifev/core/array/VectorSmall.hpp>
2 #include <lifev/core/array/MatrixSmall.hpp>
3 
4 //! Outer product
5 /*!
6 @param vector second operand
7 */
8 namespace LifeV
9 {
10 
11 MatrixSmall<3, 3>
12 VectorSmall<3>::outerProduct ( VectorSmall<3> const& vector ) const
13 {
14  MatrixSmall<3, 3> result;
15 
16  for ( UInt i = 0; i < 3; i++ )
17  for ( UInt j = 0; j < 3; j++ )
18  {
19  result[i][j] = M_coords[ i ] * vector.M_coords[ j ];
20  }
21  return result;
22 }
23 
24 } //namespace LifeV
MatrixSmall< 3, 3 > outerProduct(VectorSmall< 3 > const &vector) const
Outer product.
Definition: VectorSmall.cpp:12
void updateInverseJacobian(const UInt &iQuadPt)
uint32_type UInt
generic unsigned integer (used mainly for addressing)
Definition: LifeV.hpp:191