Ignore:
Timestamp:
Aug 28, 2010, 3:21:11 AM (15 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

Merge branch 'StructureRefactoring' into Shapes

Conflicts:

src/Box.cpp
src/Box.hpp
src/Descriptors/AtomShapeDescriptor.cpp
src/Descriptors/AtomShapeDescriptor.hpp
src/Descriptors/AtomShapeDescriptor_impl.hpp
src/LinearAlgebra/Line.cpp
src/LinearAlgebra/Line.hpp
src/LinearAlgebra/Matrix.cpp
src/LinearAlgebra/Matrix.hpp
src/Makefile.am
src/Shapes/BaseShapes.cpp
src/Shapes/BaseShapes_impl.hpp
src/Shapes/Shape.cpp
src/Shapes/Shape.hpp
src/Shapes/ShapeOps_impl.hpp
src/Shapes/Shape_impl.hpp
src/unittests/ShapeUnittest.cpp

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/LinearAlgebra/Matrix.hpp

    r2ad482 r6c438f  
    5151
    5252  /**
     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  /**
    5365   * Access the matrix at index (i,j)
    5466   */
     
    96108  Matrix invert() const;
    97109
     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   */
    98121  Matrix transpose() const;
     122  Matrix &transpose();
    99123
    100124  // operators
    101125  Matrix &operator=(const Matrix&);
    102126
    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&);
    106130
    107   Matrix &operator*=(const double);
     131  const Matrix &operator*=(const double);
    108132
    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;
    112136
    113137  bool operator==(const Matrix&) const;
     
    123147};
    124148
    125 Matrix operator*(const double,const Matrix&);
    126 Matrix operator*(const Matrix&,const double);
     149const Matrix operator*(const double,const Matrix&);
     150const Matrix operator*(const Matrix&,const double);
    127151
    128152/**
Note: See TracChangeset for help on using the changeset viewer.