IFEM  90A354
Vec3Oper.h
Go to the documentation of this file.
1 // $Id$
2 //==============================================================================
12 //==============================================================================
13 
14 #ifndef _VEC3_OPER_H
15 #define _VEC3_OPER_H
16 
17 #include "matrix.h"
18 
19 class Vec3;
20 
21 
23 Vec3 operator*(const utl::matrix<Real>& A, const std::vector<Real>& x);
25 Vec3 operator*(const utl::matrix<Real>& A, const Vec3& x);
26 
28 Vec3 operator*(const std::vector<Real>& x, const utl::matrix<Real>& A);
30 Vec3 operator*(const Vec3& x, const utl::matrix<Real>& A);
31 
33 Vec3 operator*(const Vec3& a, Real value);
34 
36 Vec3 operator*(Real value, const Vec3& a);
37 
39 Vec3 operator/(const Vec3& a, Real value);
40 
42 Real operator*(const Vec3& a, const Vec3& b);
43 
45 Vec3 operator+(const Vec3& a, const Vec3& b);
46 
48 Vec3 operator-(const Vec3& a, const Vec3& b);
49 
51 Vec3 operator+(const Vec3& a, Real value);
52 
54 Vec3 operator-(const Vec3& a, Real value);
55 
57 bool operator==(const Vec3& a, const Vec3& b);
58 
60 bool operator!=(const Vec3& a, const Vec3& b);
61 
63 bool operator<(const Vec3& a, const Vec3& b);
64 
66 std::ostream& operator<<(std::ostream& os, const Vec3& a);
67 
69 std::istream& operator>>(std::istream& is, Vec3& a);
70 
71 #endif
#define Real
The floating point type to use.
Definition: ImmersedBoundaries.h:18
bool operator!=(const Vec3 &a, const Vec3 &b)
Unequality operator.
Definition: Vec3Oper.C:128
bool operator<(const Vec3 &a, const Vec3 &b)
Less-than operator.
Definition: Vec3Oper.C:134
Vec3 operator+(const Vec3 &a, const Vec3 &b)
Summation of two vectors.
Definition: Vec3Oper.C:98
Vec3 operator-(const Vec3 &a, const Vec3 &b)
Subtraction of two vectors.
Definition: Vec3Oper.C:104
Vec3 operator/(const Vec3 &a, Real value)
Division of a vector by a scalar,.
Definition: Vec3Oper.C:86
std::ostream & operator<<(std::ostream &os, const Vec3 &a)
Output stream operator.
Definition: Vec3Oper.C:140
std::istream & operator>>(std::istream &is, Vec3 &a)
Input stream operator.
Definition: Vec3Oper.C:146
bool operator==(const Vec3 &a, const Vec3 &b)
Equality operator.
Definition: Vec3Oper.C:122
Vec3 operator*(const utl::matrix< Real > &A, const std::vector< Real > &x)
Multiplication of a matrix and a vector.
Definition: Vec3Oper.C:30
Simple class for representing a point in 3D space.
Definition: Vec3.h:27
Real & x
Reference to X-component.
Definition: Vec3.h:31
Simple template classes for dense rectangular matrices and vectors.