Changeset 6c438f for src/LinearAlgebra
- Timestamp:
- Aug 28, 2010, 3:21:11 AM (15 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- a6e6b5, f8982c
- Parents:
- 2ad482 (diff), fd4905 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Frederik Heber <heber@…> (08/28/10 03:17:48)
- git-committer:
- Frederik Heber <heber@…> (08/28/10 03:21:11)
- Location:
- src/LinearAlgebra
- Files:
-
- 5 added
- 25 moved
Legend:
- Unmodified
- Added
- Removed
-
src/LinearAlgebra/Line.cpp
r2ad482 r6c438f 1 /* 2 * Project: MoleCuilder 3 * Description: creates and alters molecular systems 4 * Copyright (C) 2010 University of Bonn. All rights reserved. 5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. 6 */ 7 1 8 /* 2 9 * Line.cpp … … 6 13 */ 7 14 15 // include config.h 16 #ifdef HAVE_CONFIG_H 17 #include <config.h> 18 #endif 19 8 20 #include "Helpers/MemDebug.hpp" 9 21 10 #include "Line .hpp"22 #include "LinearAlgebra/Line.hpp" 11 23 12 24 #include <cmath> 13 14 #include "vector.hpp" 15 #include "log.hpp" 16 #include "verbose.hpp" 17 #include "gslmatrix.hpp" 18 #include "info.hpp" 25 #include <iostream> 26 27 #include "LinearAlgebra/Vector.hpp" 28 #include "Helpers/Log.hpp" 29 #include "Helpers/Verbose.hpp" 30 #include "LinearAlgebra/gslmatrix.hpp" 31 #include "Helpers/Info.hpp" 19 32 #include "Exceptions/LinearDependenceException.hpp" 20 33 #include "Exceptions/SkewException.hpp" 21 #include " Plane.hpp"34 #include "LinearAlgebra/Plane.hpp" 22 35 23 36 using namespace std; … … 294 307 } 295 308 296 297 309 /******************************** Points on the line ********************/ 298 310 … … 339 351 return x.param<y.param; 340 352 } 353 354 ostream& operator<<(ostream& ost, const Line& m) 355 { 356 const Vector origin = m.getOrigin(); 357 const Vector direction = m.getDirection(); 358 ost << "("; 359 for (int i=0;i<NDIM;i++) { 360 ost << origin[i]; 361 if (i != 2) 362 ost << ","; 363 } 364 ost << ") -> ("; 365 for (int i=0;i<NDIM;i++) { 366 ost << direction[i]; 367 if (i != 2) 368 ost << ","; 369 } 370 ost << ")"; 371 return ost; 372 }; 373 -
src/LinearAlgebra/Line.hpp
r2ad482 r6c438f 9 9 #define LINE_HPP_ 10 10 11 #include " Space.hpp"11 #include "LinearAlgebra/Space.hpp" 12 12 13 #include <iosfwd> 13 14 #include <memory> 14 15 #include <vector> … … 60 61 bool operator==(const Line&,const Line&); 61 62 63 std::ostream & operator << (std::ostream& ost, const Line &m); 64 62 65 /** 63 66 * Named constructor to make a line through two points -
src/LinearAlgebra/LineSegment.cpp
r2ad482 r6c438f 6 6 */ 7 7 8 #include "Line Segment.hpp"8 #include "LinearAlgebra/LineSegment.hpp" 9 9 #include "Helpers/Assert.hpp" 10 10 11 11 #include "Line.hpp" 12 #include " vector.hpp"12 #include "LinearAlgebra/Vector.hpp" 13 13 14 14 using namespace std; -
src/LinearAlgebra/LineSegmentSet.cpp
r2ad482 r6c438f 6 6 */ 7 7 8 #include "Line SegmentSet.hpp"8 #include "LinearAlgebra/LineSegmentSet.hpp" 9 9 10 10 #include "Helpers/Assert.hpp" 11 #include "Line .hpp"12 #include "Line Segment.hpp"11 #include "LinearAlgebra/Line.hpp" 12 #include "LinearAlgebra/LineSegment.hpp" 13 13 14 14 #include "Helpers/Range.hpp" -
src/LinearAlgebra/Matrix.cpp
r2ad482 r6c438f 1 /* 2 * Project: MoleCuilder 3 * Description: creates and alters molecular systems 4 * Copyright (C) 2010 University of Bonn. All rights reserved. 5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. 6 */ 7 1 8 /* 2 9 * Matrix.cpp … … 6 13 */ 7 14 8 #include "Matrix.hpp" 15 // include config.h 16 #ifdef HAVE_CONFIG_H 17 #include <config.h> 18 #endif 19 20 #include "Helpers/MemDebug.hpp" 21 22 #include "LinearAlgebra/Matrix.hpp" 9 23 #include "Helpers/Assert.hpp" 10 24 #include "Exceptions/NotInvertibleException.hpp" 11 25 #include "Helpers/fast_functions.hpp" 12 26 #include "Helpers/Assert.hpp" 13 #include " vector.hpp"27 #include "LinearAlgebra/Vector.hpp" 14 28 #include "VectorContent.hpp" 15 29 #include "MatrixContent.hpp" 16 30 17 31 #include <gsl/gsl_blas.h> 32 #include <gsl/gsl_eigen.h> 33 #include <gsl/gsl_matrix.h> 34 #include <gsl/gsl_multimin.h> 35 #include <gsl/gsl_vector.h> 18 36 #include <cmath> 19 37 #include <iostream> … … 96 114 } 97 115 116 void Matrix::zero(){ 117 for(int i=NDIM;i--;){ 118 for(int j=NDIM;j--;){ 119 set(i,j,0.); 120 } 121 } 122 } 123 124 void Matrix::rotation(const double x, const double y, const double z) 125 { 126 set(0,0, cos(y)*cos(z)); 127 set(0,1, cos(z)*sin(x)*sin(y) - cos(x)*sin(z)); 128 set(0,2, cos(x)*cos(z)*sin(y) + sin(x) * sin(z)); 129 set(1,0, cos(y)*sin(z)); 130 set(1,1, cos(x)*cos(z) + sin(x)*sin(y)*sin(z)); 131 set(1,2, -cos(z)*sin(x) + cos(x)*sin(y)*sin(z)); 132 set(2,0, -sin(y)); 133 set(2,1, cos(y)*sin(x)); 134 set(2,2, cos(x)*cos(y)); 135 } 136 98 137 Matrix &Matrix::operator=(const Matrix &src){ 99 138 if(&src!=this){ … … 103 142 } 104 143 105 Matrix &Matrix::operator+=(const Matrix &rhs){144 const Matrix &Matrix::operator+=(const Matrix &rhs){ 106 145 gsl_matrix_add(content->content, rhs.content->content); 107 146 return *this; 108 147 } 109 148 110 Matrix &Matrix::operator-=(const Matrix &rhs){149 const Matrix &Matrix::operator-=(const Matrix &rhs){ 111 150 gsl_matrix_sub(content->content, rhs.content->content); 112 151 return *this; 113 152 } 114 153 115 Matrix &Matrix::operator*=(const Matrix &rhs){154 const Matrix &Matrix::operator*=(const Matrix &rhs){ 116 155 (*this) = (*this)*rhs; 117 156 return *this; 118 157 } 119 158 120 Matrix Matrix::operator+(const Matrix &rhs) const{159 const Matrix Matrix::operator+(const Matrix &rhs) const{ 121 160 Matrix tmp = *this; 122 161 tmp+=rhs; … … 124 163 } 125 164 126 Matrix Matrix::operator-(const Matrix &rhs) const{165 const Matrix Matrix::operator-(const Matrix &rhs) const{ 127 166 Matrix tmp = *this; 128 167 tmp-=rhs; … … 130 169 } 131 170 132 Matrix Matrix::operator*(const Matrix &rhs) const{171 const Matrix Matrix::operator*(const Matrix &rhs) const{ 133 172 gsl_matrix *res = gsl_matrix_alloc(NDIM, NDIM); 134 173 gsl_blas_dgemm(CblasNoTrans, CblasNoTrans, 1.0, content->content, rhs.content->content, 0.0, res); … … 192 231 - at(2,2)*at(1,0)*at(0,1); 193 232 } 233 194 234 195 235 Matrix Matrix::invert() const{ … … 215 255 Matrix Matrix::transpose() const{ 216 256 MatrixContent *newContent = new MatrixContent(); 257 newContent->content = gsl_matrix_alloc(NDIM, NDIM); 217 258 gsl_matrix_transpose_memcpy(newContent->content, content->content); 218 259 Matrix res = Matrix(newContent); … … 220 261 } 221 262 222 Matrix &Matrix::operator*=(const double factor){ 263 Matrix &Matrix::transpose() 264 { 265 double tmp; 266 for (int i=0;i<NDIM;i++) 267 for (int j=i+1;j<NDIM;j++) { 268 tmp = at(j,i); 269 at(j,i) = at(i,j); 270 at(i,j) = tmp; 271 } 272 return *this; 273 } 274 275 276 Vector Matrix::transformToEigenbasis() 277 { 278 gsl_eigen_symmv_workspace *T = gsl_eigen_symmv_alloc(NDIM); 279 gsl_vector *eval = gsl_vector_alloc(NDIM); 280 gsl_matrix *evec = gsl_matrix_alloc(NDIM, NDIM); 281 gsl_eigen_symmv(content->content, eval, evec, T); 282 gsl_eigen_symmv_free(T); 283 gsl_matrix_memcpy(content->content, evec); 284 gsl_matrix_free(evec); 285 Vector evalues(gsl_vector_get(eval,0), gsl_vector_get(eval,1), gsl_vector_get(eval,2)); 286 gsl_vector_free(eval); 287 return evalues; 288 } 289 290 const Matrix &Matrix::operator*=(const double factor){ 223 291 gsl_matrix_scale(content->content, factor); 224 292 return *this; 225 293 } 226 294 227 Matrix operator*(const double factor,const Matrix& mat){295 const Matrix operator*(const double factor,const Matrix& mat){ 228 296 Matrix tmp = mat; 229 297 tmp*=factor; … … 231 299 } 232 300 233 Matrix operator*(const Matrix &mat,const double factor){301 const Matrix operator*(const Matrix &mat,const double factor){ 234 302 return factor*mat; 235 303 } … … 278 346 279 347 Vector operator*(const Matrix &mat,const Vector &vec){ 280 gsl_vector *res = gsl_vector_calloc(NDIM); 281 gsl_blas_dgemv( CblasNoTrans, 1.0, mat.content->content, vec.content->content, 0.0, res); 282 VectorContent *content = new VectorContent(); 283 content->content = res; 284 return Vector(content); 348 Vector res; 349 gsl_blas_dgemv( CblasNoTrans, 1.0, mat.content->content, vec.content->content, 0.0, res.content->content); 350 return res; 285 351 } 286 352 -
src/LinearAlgebra/Matrix.hpp
r2ad482 r6c438f 51 51 52 52 /** 53 * Set all matrix entries to zero. 54 */ 55 void zero(); 56 57 /** 58 * Sets all matrix corresponding to a rotation matrix, 59 * first around the x-, then the y-, finally the z-axis 60 * with given angles. 61 */ 62 void rotation(const double x, const double y, const double z); 63 64 /** 53 65 * Access the matrix at index (i,j) 54 66 */ … … 96 108 Matrix invert() const; 97 109 110 /** 111 * Diagonalizes a matrix and sets its rows to the resulting eigenvalues. 112 * The eigenvalues are returned as a vector. 113 * 114 * Rather costly, so use precomputation as often as possible. 115 */ 116 Vector transformToEigenbasis(); 117 118 /** 119 * Calculate the transpose of the matrix. 120 */ 98 121 Matrix transpose() const; 122 Matrix &transpose(); 99 123 100 124 // operators 101 125 Matrix &operator=(const Matrix&); 102 126 103 Matrix &operator+=(const Matrix&);104 Matrix &operator-=(const Matrix&);105 Matrix &operator*=(const Matrix&);127 const Matrix &operator+=(const Matrix&); 128 const Matrix &operator-=(const Matrix&); 129 const Matrix &operator*=(const Matrix&); 106 130 107 Matrix &operator*=(const double);131 const Matrix &operator*=(const double); 108 132 109 Matrix operator+(const Matrix&) const;110 Matrix operator-(const Matrix&) const;111 Matrix operator*(const Matrix&) const;133 const Matrix operator+(const Matrix&) const; 134 const Matrix operator-(const Matrix&) const; 135 const Matrix operator*(const Matrix&) const; 112 136 113 137 bool operator==(const Matrix&) const; … … 123 147 }; 124 148 125 Matrix operator*(const double,const Matrix&);126 Matrix operator*(const Matrix&,const double);149 const Matrix operator*(const double,const Matrix&); 150 const Matrix operator*(const Matrix&,const double); 127 151 128 152 /** -
src/LinearAlgebra/Plane.cpp
r2ad482 r6c438f 1 /* 2 * Project: MoleCuilder 3 * Description: creates and alters molecular systems 4 * Copyright (C) 2010 University of Bonn. All rights reserved. 5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. 6 */ 7 1 8 /* 2 9 * Plane.cpp … … 6 13 */ 7 14 15 // include config.h 16 #ifdef HAVE_CONFIG_H 17 #include <config.h> 18 #endif 19 8 20 #include "Helpers/MemDebug.hpp" 9 21 10 #include " Plane.hpp"11 #include " vector.hpp"22 #include "LinearAlgebra/Plane.hpp" 23 #include "LinearAlgebra/Vector.hpp" 12 24 #include "defs.hpp" 13 #include " info.hpp"14 #include " log.hpp"15 #include " verbose.hpp"25 #include "Helpers/Info.hpp" 26 #include "Helpers/Log.hpp" 27 #include "Helpers/Verbose.hpp" 16 28 #include "Helpers/Assert.hpp" 17 #include " helpers.hpp"29 #include "Helpers/helpers.hpp" 18 30 #include <cmath> 19 #include "Line .hpp"31 #include "LinearAlgebra/Line.hpp" 20 32 #include "Exceptions/MultipleSolutionsException.hpp" 21 33 -
src/LinearAlgebra/Plane.hpp
r2ad482 r6c438f 12 12 #include <vector> 13 13 #include <iosfwd> 14 #include " Space.hpp"14 #include "LinearAlgebra/Space.hpp" 15 15 #include "Exceptions/LinearDependenceException.hpp" 16 16 #include "Exceptions/ZeroVectorException.hpp" -
src/LinearAlgebra/Space.cpp
r2ad482 r6c438f 1 /* 2 * Project: MoleCuilder 3 * Description: creates and alters molecular systems 4 * Copyright (C) 2010 University of Bonn. All rights reserved. 5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. 6 */ 7 1 8 /* 2 9 * Space.cpp … … 6 13 */ 7 14 15 // include config.h 16 #ifdef HAVE_CONFIG_H 17 #include <config.h> 18 #endif 19 8 20 #include "Helpers/MemDebug.hpp" 9 21 10 #include " Space.hpp"11 #include " vector.hpp"22 #include "LinearAlgebra/Space.hpp" 23 #include "LinearAlgebra/Vector.hpp" 12 24 13 25 Space::Space() -
src/LinearAlgebra/Vector.cpp
r2ad482 r6c438f 1 /* 2 * Project: MoleCuilder 3 * Description: creates and alters molecular systems 4 * Copyright (C) 2010 University of Bonn. All rights reserved. 5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. 6 */ 7 1 8 /** \file vector.cpp 2 9 * … … 5 12 */ 6 13 14 // include config.h 15 #ifdef HAVE_CONFIG_H 16 #include <config.h> 17 #endif 18 7 19 #include "Helpers/MemDebug.hpp" 8 20 9 #include " vector.hpp"21 #include "LinearAlgebra/Vector.hpp" 10 22 #include "VectorContent.hpp" 11 #include " verbose.hpp"23 #include "Helpers/Verbose.hpp" 12 24 #include "World.hpp" 13 25 #include "Helpers/Assert.hpp" … … 17 29 #include <iostream> 18 30 #include <gsl/gsl_blas.h> 31 #include <gsl/gsl_vector.h> 19 32 20 33 … … 51 64 }; 52 65 66 /** Constructor of class vector. 67 */ 68 Vector::Vector(const double x[3]) 69 { 70 content = new VectorContent(); 71 gsl_vector_set(content->content,0,x[0]); 72 gsl_vector_set(content->content,1,x[1]); 73 gsl_vector_set(content->content,2,x[2]); 74 }; 75 53 76 Vector::Vector(VectorContent *_content) : 54 77 content(_content) … … 92 115 return (sqrt(DistanceSquared(y))); 93 116 }; 117 118 size_t Vector::GreatestComponent() const 119 { 120 int greatest = 0; 121 for (int i=1;i<NDIM;i++) { 122 if (at(i) > at(greatest)) 123 greatest = i; 124 } 125 return greatest; 126 } 127 128 size_t Vector::SmallestComponent() const 129 { 130 int smallest = 0; 131 for (int i=1;i<NDIM;i++) { 132 if (at(i) < at(smallest)) 133 smallest = i; 134 } 135 return smallest; 136 } 137 94 138 95 139 Vector Vector::getClosestPoint(const Vector &point) const{ -
src/LinearAlgebra/Vector.hpp
r2ad482 r6c438f 17 17 18 18 #include "defs.hpp" 19 #include " Space.hpp"19 #include "LinearAlgebra/Space.hpp" 20 20 21 21 /********************************************** declarations *******************************/ … … 36 36 Vector(); 37 37 Vector(const double x1, const double x2, const double x3); 38 Vector(const double x[3]); 38 39 Vector(const Vector& src); 39 40 virtual ~Vector(); … … 63 64 std::pair<Vector,Vector> partition(const Vector&) const; 64 65 std::pair<pointset,Vector> partition(const pointset&) const; 66 size_t GreatestComponent() const; 67 size_t SmallestComponent() const; 65 68 66 69 // Accessors ussually come in pairs... and sometimes even more than that -
src/LinearAlgebra/VectorContent.hpp
r2ad482 r6c438f 14 14 * Because of this the pointer to the gsl_vector struct is wrapped inside another 15 15 * (dumb) object that allows for forward definitions. 16 * 17 * DO NOT USE OUTSIDE OF VECTOR UNLESS YOU ABSOLUTELY HAVE TO AND KNOW WHAT YOU ARE DOING. 16 18 */ 17 19 -
src/LinearAlgebra/VectorSet.hpp
r2ad482 r6c438f 20 20 */ 21 21 22 #include " vector.hpp"22 #include "LinearAlgebra/Vector.hpp" 23 23 #include <list> 24 24 -
src/LinearAlgebra/gslmatrix.cpp
r2ad482 r6c438f 1 /* 2 * Project: MoleCuilder 3 * Description: creates and alters molecular systems 4 * Copyright (C) 2010 University of Bonn. All rights reserved. 5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. 6 */ 7 1 8 /* 2 9 * gslmatrix.cpp … … 6 13 */ 7 14 15 // include config.h 16 #ifdef HAVE_CONFIG_H 17 #include <config.h> 18 #endif 19 8 20 #include "Helpers/MemDebug.hpp" 9 21 10 22 using namespace std; 11 23 12 #include " gslmatrix.hpp"13 #include " helpers.hpp"24 #include "LinearAlgebra/gslmatrix.hpp" 25 #include "Helpers/helpers.hpp" 14 26 #include "Helpers/fast_functions.hpp" 15 27 -
src/LinearAlgebra/gslvector.cpp
r2ad482 r6c438f 1 /* 2 * Project: MoleCuilder 3 * Description: creates and alters molecular systems 4 * Copyright (C) 2010 University of Bonn. All rights reserved. 5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. 6 */ 7 1 8 /* 2 9 * gslvector.cpp … … 6 13 */ 7 14 15 // include config.h 16 #ifdef HAVE_CONFIG_H 17 #include <config.h> 18 #endif 19 8 20 #include "Helpers/MemDebug.hpp" 9 21 … … 12 24 #include <iostream> 13 25 14 #include " gslvector.hpp"26 #include "LinearAlgebra/gslvector.hpp" 15 27 #include "defs.hpp" 16 #include " vector.hpp"28 #include "LinearAlgebra/Vector.hpp" 17 29 #include "VectorContent.hpp" 18 30 -
src/LinearAlgebra/linearsystemofequations.cpp
r2ad482 r6c438f 1 /* 2 * Project: MoleCuilder 3 * Description: creates and alters molecular systems 4 * Copyright (C) 2010 University of Bonn. All rights reserved. 5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. 6 */ 7 1 8 /* 2 9 * linearsystemofequations.cpp … … 6 13 */ 7 14 15 // include config.h 16 #ifdef HAVE_CONFIG_H 17 #include <config.h> 18 #endif 19 8 20 #include "Helpers/MemDebug.hpp" 9 21 10 22 #include "defs.hpp" 11 #include " gslmatrix.hpp"12 #include " gslvector.hpp"13 #include " linearsystemofequations.hpp"14 #include " logger.hpp"15 #include " vector.hpp"23 #include "LinearAlgebra/gslmatrix.hpp" 24 #include "LinearAlgebra/gslvector.hpp" 25 #include "LinearAlgebra/linearsystemofequations.hpp" 26 #include "Helpers/logger.hpp" 27 #include "LinearAlgebra/Vector.hpp" 16 28 17 29 #include <cassert> -
src/LinearAlgebra/linearsystemofequations.hpp
r2ad482 r6c438f 6 6 */ 7 7 8 using namespace std; 8 #ifndef LINEARSYSTEMSOFEQUATIONS_HPP 9 #define LINEARSYSTEMSOFEQUATIONS_HPP 9 10 10 11 /*********************************************** includes ***********************************/ … … 55 56 bool IsSymmetric; 56 57 }; 58 59 #endif /* LINEARSYSTEMSOFEQUATIONS_HPP */ -
src/LinearAlgebra/vector_ops.cpp
r2ad482 r6c438f 1 /* 2 * Project: MoleCuilder 3 * Description: creates and alters molecular systems 4 * Copyright (C) 2010 University of Bonn. All rights reserved. 5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. 6 */ 7 1 8 /* 2 9 * vector_ops.cpp … … 6 13 */ 7 14 15 // include config.h 16 #ifdef HAVE_CONFIG_H 17 #include <config.h> 18 #endif 19 8 20 #include "Helpers/MemDebug.hpp" 9 21 10 #include " vector.hpp"11 #include " Plane.hpp"12 #include " log.hpp"13 #include " verbose.hpp"14 #include " gslmatrix.hpp"22 #include "LinearAlgebra/Vector.hpp" 23 #include "LinearAlgebra/Plane.hpp" 24 #include "Helpers/Log.hpp" 25 #include "Helpers/Verbose.hpp" 26 #include "LinearAlgebra/gslmatrix.hpp" 15 27 #include "leastsquaremin.hpp" 16 #include " info.hpp"28 #include "Helpers/Info.hpp" 17 29 #include "Helpers/fast_functions.hpp" 18 30 #include "Exceptions/LinearDependenceException.hpp"
Note:
See TracChangeset
for help on using the changeset viewer.