Diploma Thesis Percolation Simulation C++ Sourcecode Documentation |
#include <my_vector.h>
Collaboration diagram for myVector:
Public Methods | |
myVector () | |
myVector (int setdim) | |
myVector (const myVector &u) | |
void | set_dim (int setdim) |
void | randomvect (COORDFLOAT L) |
void | nullvect () |
void | unitvect () |
myVector & | operator= (const myVector &u) |
myVector & | operator-= (const myVector &) |
bool | operator!= (const myVector &u) |
COORDFLOAT | coord (int dir) |
Private Attributes | |
int | dim |
COORDFLOAT | x [MAXDIM] |
Friends | |
int | getdim (const myVector &u) |
REAL | length (const myVector &u) |
REAL | squarelength (const myVector &u) |
myVector | operator- (const myVector &, const myVector &) |
myVector | operator- (const myVector &) |
ostream & | operator<< (ostream &, myVector &) |
istream & | operator>> (istream &, myVector &) |
bool | operator< (const myVector &, const myVector &) |
bool | lower (const myVector &, COORDFLOAT border, int dir) |
|
Definition at line 64 of file my_vector.h. References dim.
00064 { 00065 dim=0; 00066 } |
|
Definition at line 68 of file my_vector.h. References errorout(), MAXDIM, and set_dim().
|
|
Definition at line 78 of file my_vector.h.
|
|
Definition at line 222 of file my_vector.h. References COORDFLOAT, and x. Referenced by greatercoord(), grid::put_vector_into_boxes(), and grid::test_vector2boxes().
00222 { 00223 return x[dir]; 00224 } |
|
Definition at line 162 of file my_vector.h. Referenced by operator-(), set_dim(), and sphere::unitpointsphere().
|
|
Definition at line 199 of file my_vector.h.
|
|
Definition at line 134 of file my_vector.h. References dim, errorout(), and x.
|
|
Definition at line 124 of file my_vector.h. References dim, errorout(), and x.
|
|
Definition at line 187 of file my_vector.h. References COORDFLOAT, dim, long_random(), and x. Referenced by throw_spheres().
00187 { 00188 for (int i=0;i<dim;i++) { 00189 x[i] = long_random(L); 00190 } 00191 } |
|
Definition at line 85 of file my_vector.h. References dim, and nullvect(). Referenced by myVector(), sphere::operator=(), set_dim(), and sphere::sphere().
|
|
Definition at line 167 of file my_vector.h.
|
|
Definition at line 90 of file my_vector.h.
00090 { 00091 return u.dim; 00092 } |
|
Definition at line 95 of file my_vector.h.
00095 { 00096 COORDFLOAT temp=0; 00097 for (int i=0;i<u.dim;i++) 00098 {temp+=u.x[i]*u.x[i];} 00099 return sqrt(temp); 00100 } |
|
Definition at line 211 of file my_vector.h.
|
|
Definition at line 156 of file my_vector.h.
|
|
Definition at line 145 of file my_vector.h.
|
|
Definition at line 195 of file my_vector.h.
|
|
Definition at line 109 of file my_vector.h.
|
|
Definition at line 117 of file my_vector.h.
|
|
Definition at line 102 of file my_vector.h.
00102 { 00103 COORDFLOAT temp=0; 00104 for (int i=0;i<u.dim;i++) 00105 {temp+=u.x[i]*u.x[i];} 00106 return temp; 00107 } |
|
Definition at line 33 of file my_vector.h. Referenced by getdim(), length(), lower(), myVector(), nullvect(), operator!=(), operator-(), operator-=(), operator<<(), operator=(), operator>>(), randomvect(), set_dim(), squarelength(), and unitvect(). |
|
Definition at line 34 of file my_vector.h. Referenced by coord(), length(), lower(), myVector(), nullvect(), operator!=(), operator-=(), operator<<(), operator=(), operator>>(), randomvect(), squarelength(), and unitvect(). |
Diploma Thesis Sourcecode
Documentation check out the text and the executable binaries |