00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CCTBX_UTILS
00028 #define CCTBX_UTILS
00029
00030 #include <cstring>
00031
00032
00033 #include <clipper/clipper.h>
00034 using clipper::Vec3;
00035 using clipper::Mat33;
00036 using clipper::RTop;
00037 typedef clipper::Vec3<double> DVect3;
00038 typedef clipper::Mat33<double> DMat33;
00039
00041
00042 #include <cctbx/crystal/symmetry.h>
00043 #include <cctbx/sgtbx/lattice_symmetry.h>
00044 #include <cctbx/uctbx/fast_minimum_reduction.h>
00045
00046 #include <assert.h>
00047 #define ASSERT assert
00048
00049 using namespace cctbx;
00050
00051 namespace MVutil {
00052
00053
00054 scitbx::mat3<double> SetSMat33(const std::vector<double>& Rmatrix);
00055
00056 scitbx::vec3<double> SetSvec3(const clipper::Vec3<double>& v3);
00057
00058
00059
00060 sgtbx::rt_mx SetRtMx(scitbx::mat3<double>& cdmat,
00061 const int r_den=1,
00062 const int t_den=sgtbx::sg_t_den);
00063
00064 sgtbx::rt_mx SetRtMx(const std::vector<double>& Rmatrix,
00065 const int r_den=1,
00066 const int t_den=sgtbx::sg_t_den);
00067
00068 sgtbx::rt_mx SetRtMx(const clipper::RTop<double>& RT,
00069 const int r_den=1,
00070 const int t_den=sgtbx::sg_t_den);
00071
00072
00073
00074
00075 std::string FormatReindex_as_hkl(const scitbx::mat3<double>& op);
00076 }
00077
00078 #endif
00079