Changeset 6c438f for src/LinearAlgebra/Matrix.hpp
- 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)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
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 /**
Note:
See TracChangeset
for help on using the changeset viewer.