Changeset 2863
- Timestamp:
- 01/20/10 07:34:44 (15 years ago)
- Location:
- issm/trunk/src/c/Bamgx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/Bamgx/Mesh2.h
r2861 r2863 9 9 //From MeshIo 10 10 #include <cstdio> 11 #include <iostream>12 11 #include <cstring> 13 12 #include <cstdlib> … … 40 39 #ifdef RAND_MAX 41 40 const long HalfRandMax = RAND_MAX/2; 42 return rand() < HalfRandMax;41 return rand() < HalfRandMax; 43 42 #else 44 43 return rand() & 16384; // 2^14 (for sun because RAND_MAX is not def in stdlib.h) -
issm/trunk/src/c/Bamgx/R2.h
r2862 r2863 1 #include <iostream>2 3 1 namespace bamg { 4 2 template <class R,class RR> class P2xP2; … … 26 24 template <class R,class RR> 27 25 class P2xP2 { // x ligne 1 y ligne2 28 29 friend std::ostream& operator <<(std::ostream& f, const P2xP2<R,RR> & c)30 { f << '[' << c.x << ',' << c.y << ']' <<std::flush ; return f; }31 26 32 27 friend P2<R,RR> operator*(P2<R,RR> c,P2xP2<R,RR> cc) … … 84 79 inline P2<R,RR> Orthogonal (const P2<R,RR> x) { 85 80 return P2<R,RR>(-x.y,x.x);} 86 87 template <class R,class RR>88 inline std::ostream& operator <<(std::ostream& f, const P2<R,RR> & c)89 { f << '[' << c.x << ',' << c.y <<']' <<std::flush ; return f; }90 81 }
Note:
See TracChangeset
for help on using the changeset viewer.