source: util/src/NanoCreator.h@ 451d7a

Last change on this file since 451d7a was e08f45, checked in by Frederik Heber <heber@…>, 17 years ago

Merge branch 'ConcaveHull' of ../espack2 into ConcaveHull

Conflicts:

molecuilder/src/boundary.cpp
molecuilder/src/boundary.hpp
molecuilder/src/builder.cpp
molecuilder/src/linkedcell.cpp
molecuilder/src/linkedcell.hpp
molecuilder/src/vector.cpp
molecuilder/src/vector.hpp
util/src/NanoCreator.c

Basically, this resulted from a lot of conversions two from spaces to one tab, which is my standard indentation. The mess was caused by eclipse auto-indenting. And in espack2:ConcaveHull was the new stuff, so all from ConcaveHull was replaced in case of doubt.
Additionally, vector had ofstream << operator instead ostream << ...

  • Property mode set to 100755
File size: 1.2 KB
Line 
1#ifndef NANOCREATOR_H_
2#define NANOCREATOR_H_
3
4#define MYEPSILON 1e-13
5
6struct Atoms
7{
8 char name[3];
9 double x[3];
10};
11
12// file stuff
13char * ReadBuffer (char *filename, int *bufferlength);
14void AddAtomicNumber(char *filename, int atomicnumber, double **Vector, double **Recivector);
15void AddSheetInfo(char *filename, int *axis, int *chiral, int *factors, int seed, int numbercell, double *randomness);
16int GetNextline(char *buffer, char *line);
17
18// matrix stuff
19void MatrixInversion(double **matrix1ref, double **matrix2ref);
20void MatrixInversion(double **matrix1ref, double **matrix2ref);
21double Determinant(double **matrix);
22void PrintMatrix(FILE *file, double **matrix);
23
24// vector stuff
25double * MatrixTrafo(double **matrixref, double *vectorref);
26double * VectorAdd(double *vector1, double *vector2);
27void Orthogonalize(double **orthvector, int *axis);
28double Projection(double *vector1, double *vector2);
29double ScalarProduct(double *vector1, double *vector2);
30double Norm(double *vector);
31void PrintVector(FILE *file, double *vector);
32
33double DetermineBiggestDiameter(double **matrix, int *axis, int *factors);
34double * CenterOfGravity(char *bufptr, int number);
35void Debug(char *msg);
36
37#endif /*NANOCREATOR_H_*/
Note: See TracBrowser for help on using the repository browser.