LifeV
|
class VectorSmall<3> Partial specialization for the 3D case More...
#include <VectorSmall.hpp>
Constructors and destructors | |
VectorSmall () | |
Empty constructor (all components are set to zero) More... | |
VectorSmall (const Real value) | |
Non Empty constructor. More... | |
VectorSmall (Real const &x, Real const &y, Real const &z) | |
Full constructor with all components explicitly initialized. More... | |
VectorSmall (Real *rawVector) | |
VectorSmall< 3 > & | operator= (VectorSmall< 3 > const &vector) |
Assignment operator. More... | |
VectorSmall (VectorSmall< 3 > const &vector) | |
Copy constructor. More... | |
Overloaded operators | |
VectorSmall< 3 > & | operator+= (VectorSmall< 3 > const &vector) |
Operator +=. More... | |
VectorSmall< 3 > | operator+ (VectorSmall< 3 > const &vector) const |
Operator +. More... | |
VectorSmall< 3 > & | operator-= (VectorSmall< 3 > const &vector) |
Operator -=. More... | |
VectorSmall< 3 > | operator- (VectorSmall< 3 > const &vector) const |
Operator -. More... | |
VectorSmall< 3 > & | operator*= (Real const &factor) |
Operator *= (multiplication by scalar) More... | |
VectorSmall< 3 > | operator* (Real const &factor) const |
Operator * (multiplication by scalar on the right) More... | |
VectorSmall< 3 > & | operator/= (Real const &factor) |
Operator /= (division by scalar) More... | |
VectorSmall< 3 > | operator/ (Real const &factor) const |
Operator / (division by scalar) More... | |
Real const & | operator[] (UInt const &i) const |
Operator []. More... | |
Real & | operator[] (UInt const &i) |
Operator []. More... | |
Real const & | operator() (UInt const &i) const |
Operator () More... | |
Real & | operator() (UInt const &i) |
Operator () More... | |
Geometric Methods | |
Real | dot (VectorSmall< 3 > const &vector) const |
Scalar product. More... | |
VectorSmall< 3 > | cross (VectorSmall< 3 > const &vector) const |
Cross product. More... | |
MatrixSmall< 3, 3 > | outerProduct (VectorSmall< 3 > const &vector) const |
Outer product. More... | |
Real | extract (UInt const &i) const |
Extraction of a component. More... | |
Real | norm () const |
norm More... | |
void | normalize () |
Normalize vector. More... | |
VectorSmall< 3 > | normalized () |
Create the versor associated to this VectorSmall. More... | |
Tools | |
UInt | size () const |
function to get the size of the VectorSmall ( for compatibility with Eigen) More... | |
Data | |
Real | M_coords [3] |
Data storage. More... | |
class VectorSmall<3> Partial specialization for the 3D case
Definition at line 369 of file VectorSmall.hpp.
|
inline |
Empty constructor (all components are set to zero)
Definition at line 377 of file VectorSmall.hpp.
|
inline |
Non Empty constructor.
Definition at line 383 of file VectorSmall.hpp.
|
inline |
Full constructor with all components explicitly initialized.
x | x-component of the point |
y | y-component of the point |
z | z-component of the point |
Definition at line 394 of file VectorSmall.hpp.
|
inline |
Definition at line 402 of file VectorSmall.hpp.
|
inline |
Copy constructor.
Definition at line 419 of file VectorSmall.hpp.
|
inline |
Assignment operator.
Definition at line 410 of file VectorSmall.hpp.
|
inline |
Operator +=.
Definition at line 430 of file VectorSmall.hpp.
|
inline |
Operator +.
Definition at line 439 of file VectorSmall.hpp.
|
inline |
Operator -=.
Definition at line 446 of file VectorSmall.hpp.
|
inline |
Operator -.
Definition at line 455 of file VectorSmall.hpp.
|
inline |
Operator *= (multiplication by scalar)
Definition at line 462 of file VectorSmall.hpp.
|
inline |
Operator * (multiplication by scalar on the right)
Definition at line 471 of file VectorSmall.hpp.
|
inline |
Operator /= (division by scalar)
Definition at line 478 of file VectorSmall.hpp.
|
inline |
Operator / (division by scalar)
Definition at line 486 of file VectorSmall.hpp.
Operator [].
Definition at line 493 of file VectorSmall.hpp.
Operator [].
Definition at line 500 of file VectorSmall.hpp.
Operator ()
Definition at line 507 of file VectorSmall.hpp.
Operator ()
Definition at line 514 of file VectorSmall.hpp.
|
inline |
Scalar product.
vector | second operand |
Definition at line 530 of file VectorSmall.hpp.
|
inline |
MatrixSmall< 3, 3 > outerProduct | ( | VectorSmall< 3 > const & | vector | ) | const |
Extraction of a component.
index | of the component to be extracted |
Definition at line 562 of file VectorSmall.hpp.
|
inline |
norm
Definition at line 573 of file VectorSmall.hpp.
|
inline |
Normalize vector.
Definition at line 579 of file VectorSmall.hpp.
|
inline |
Create the versor associated to this VectorSmall.
Definition at line 588 of file VectorSmall.hpp.
|
inline |
function to get the size of the VectorSmall ( for compatibility with Eigen)
Definition at line 602 of file VectorSmall.hpp.
|
private |
Data storage.
Definition at line 615 of file VectorSmall.hpp.