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
19class Vec3;
20
21
23Vec3 operator*(const utl::matrix<Real>& A, const std::vector<Real>& x);
25Vec3 operator*(const utl::matrix<Real>& A, const Vec3& x);
26
28Vec3 operator*(const std::vector<Real>& x, const utl::matrix<Real>& A);
30Vec3 operator*(const Vec3& x, const utl::matrix<Real>& A);
31
33Vec3 operator*(const Vec3& a, Real value);
34
36Vec3 operator*(Real value, const Vec3& a);
37
39Vec3 operator/(const Vec3& a, Real value);
40
42Real operator*(const Vec3& a, const Vec3& b);
43
45Vec3 operator+(const Vec3& a, const Vec3& b);
46
48Vec3 operator-(const Vec3& a, const Vec3& b);
49
51Vec3 operator+(const Vec3& a, Real value);
52
54Vec3 operator-(const Vec3& a, Real value);
55
57bool operator==(const Vec3& a, const Vec3& b);
58
60bool operator!=(const Vec3& a, const Vec3& b);
61
63bool operator<(const Vec3& a, const Vec3& b);
64
66std::ostream& operator<<(std::ostream& os, const Vec3& a);
67
69std::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
std::istream & operator>>(std::istream &is, Vec3 &a)
Input stream operator.
Definition Vec3Oper.C:146
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
bool operator==(const Vec3 &a, const Vec3 &b)
Equality operator.
Definition Vec3Oper.C:122
std::ostream & operator<<(std::ostream &os, const Vec3 &a)
Output stream operator.
Definition Vec3Oper.C:140
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
Two-dimensional rectangular matrix with some algebraic operations.
Definition matrix.h:456
Simple template classes for dense rectangular matrices and vectors.