Changeset cca9ef for src/Actions


Ignore:
Timestamp:
Dec 4, 2010, 11:54:32 PM (14 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:
0d4424
Parents:
3bc926
git-author:
Frederik Heber <heber@…> (11/15/10 12:58:27)
git-committer:
Frederik Heber <heber@…> (12/04/10 23:54:32)
Message:

Renamed Matrix to RealSpaceMatrix.

  • class Matrix only represents 3x3 matrices, whereas we are now going to extend the class MatrixContent to contain arbritrary dimensions.
  • renamed class and file
Location:
src/Actions
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/AnalysisAction/PrincipalAxisSystemAction.cpp

    r3bc926 rcca9ef  
    2222#include "Helpers/Log.hpp"
    2323#include "Helpers/Verbose.hpp"
    24 #include "LinearAlgebra/Matrix.hpp"
     24#include "LinearAlgebra/RealSpaceMatrix.hpp"
    2525#include "LinearAlgebra/Vector.hpp"
    2626#include "element.hpp"
     
    4040/** =========== define the function ====================== */
    4141Action::state_ptr AnalysisPrincipalAxisSystemAction::performCall() {
    42   Matrix InertiaTensor;
     42  RealSpaceMatrix InertiaTensor;
    4343
    4444  DoLog(0) && (Log() << Verbose(0) << "Evaluating prinicipal axis." << endl);
  • src/Actions/MoleculeAction/RotateToPrincipalAxisSystemAction.cpp

    r3bc926 rcca9ef  
    2323#include "Helpers/Verbose.hpp"
    2424#include "LinearAlgebra/Line.hpp"
    25 #include "LinearAlgebra/Matrix.hpp"
     25#include "LinearAlgebra/RealSpaceMatrix.hpp"
    2626#include "LinearAlgebra/Vector.hpp"
    2727#include "element.hpp"
     
    5050    mol = iter->second;
    5151    DoLog(0) && (Log() << Verbose(0) << "Converting to prinicipal axis system." << endl);
    52     Matrix InertiaTensor;
     52    RealSpaceMatrix InertiaTensor;
    5353    Vector *CenterOfGravity = mol->DetermineCenterOfGravity();
    5454
  • src/Actions/SelectionAction/AllAtomsInsideCuboidAction.cpp

    r3bc926 rcca9ef  
    2525#include "Helpers/Log.hpp"
    2626#include "Helpers/Verbose.hpp"
    27 #include "LinearAlgebra/Matrix.hpp"
     27#include "LinearAlgebra/RealSpaceMatrix.hpp"
    2828#include "LinearAlgebra/Vector.hpp"
    2929#include "Shapes/BaseShapes.hpp"
     
    4545Action::state_ptr SelectionAllAtomsInsideCuboidAction::performCall() {
    4646  std::vector<atom *> selectedAtoms = World::getInstance().getSelectedAtoms();
    47   Matrix RotationMatrix;
     47  RealSpaceMatrix RotationMatrix;
    4848
    4949  // obtain information
     
    7070Action::state_ptr SelectionAllAtomsInsideCuboidAction::performRedo(Action::state_ptr _state){
    7171  SelectionAllAtomsInsideCuboidState *state = assert_cast<SelectionAllAtomsInsideCuboidState*>(_state.get());
    72   Matrix RotationMatrix;
     72  RealSpaceMatrix RotationMatrix;
    7373
    7474  RotationMatrix.setRotation(state->params.Xangle, state->params.Yangle, state->params.Zangle);
  • src/Actions/SelectionAction/NotAllAtomsInsideCuboidAction.cpp

    r3bc926 rcca9ef  
    2525#include "Helpers/Log.hpp"
    2626#include "Helpers/Verbose.hpp"
    27 #include "LinearAlgebra/Matrix.hpp"
     27#include "LinearAlgebra/RealSpaceMatrix.hpp"
    2828#include "LinearAlgebra/Vector.hpp"
    2929#include "Shapes/BaseShapes.hpp"
     
    4545Action::state_ptr SelectionNotAllAtomsInsideCuboidAction::performCall() {
    4646  std::vector<atom *> selectedAtoms = World::getInstance().getSelectedAtoms();
    47   Matrix RotationMatrix;
     47  RealSpaceMatrix RotationMatrix;
    4848
    4949  // obtain information
     
    7070Action::state_ptr SelectionNotAllAtomsInsideCuboidAction::performRedo(Action::state_ptr _state){
    7171  SelectionNotAllAtomsInsideCuboidState *state = assert_cast<SelectionNotAllAtomsInsideCuboidState*>(_state.get());
    72   Matrix RotationMatrix;
     72  RealSpaceMatrix RotationMatrix;
    7373
    7474  RotationMatrix.setRotation(state->params.Xangle, state->params.Yangle, state->params.Zangle);
  • src/Actions/ValueStorage.cpp

    r3bc926 rcca9ef  
    3131#include "Helpers/Verbose.hpp"
    3232#include "LinearAlgebra/BoxVector.hpp"
    33 #include "LinearAlgebra/Matrix.hpp"
     33#include "LinearAlgebra/RealSpaceMatrix.hpp"
    3434#include "LinearAlgebra/Vector.hpp"
    3535#include "atom.hpp"
     
    9595
    9696void ValueStorage::queryCurrentValue(const char * name, class Box &_T) {
    97   Matrix M;
     97  RealSpaceMatrix M;
    9898  double tmp;
    9999  if (typeid( Box ) == *(OptionRegistry_instance.getOptionByName(name)->getType())) {
     
    254254void ValueStorage::setCurrentValue(const char * name, class Box &_T)
    255255{
    256   const Matrix &M = _T.getM();
     256  const RealSpaceMatrix &M = _T.getM();
    257257  if (typeid( Box ) == *(OptionRegistry_instance.getOptionByName(name)->getType())) {
    258258    std::ostringstream stream;
  • src/Actions/WorldAction/CenterOnEdgeAction.cpp

    r3bc926 rcca9ef  
    2424#include "LinearAlgebra/Vector.hpp"
    2525#include "World.hpp"
    26 #include "LinearAlgebra/Matrix.hpp"
     26#include "LinearAlgebra/RealSpaceMatrix.hpp"
    2727
    2828#include <iostream>
     
    5959  }
    6060  // set new box size
    61   Matrix domain;
     61  RealSpaceMatrix domain;
    6262  for (int i=0;i<NDIM;i++) {
    6363    double tmp = Max[i]-Min[i];
  • src/Actions/WorldAction/ChangeBoxAction.cpp

    r3bc926 rcca9ef  
    2424#include "World.hpp"
    2525#include "Box.hpp"
    26 #include "LinearAlgebra/Matrix.hpp"
     26#include "LinearAlgebra/RealSpaceMatrix.hpp"
    2727
    2828#include <iostream>
  • src/Actions/WorldAction/RepeatBoxAction.cpp

    r3bc926 rcca9ef  
    2525#include "molecule.hpp"
    2626#include "LinearAlgebra/Vector.hpp"
    27 #include "LinearAlgebra/Matrix.hpp"
     27#include "LinearAlgebra/RealSpaceMatrix.hpp"
    2828#include "Helpers/Verbose.hpp"
    2929#include "World.hpp"
     
    6363
    6464  (cout << "Repeating box " << params.Repeater << " times for (x,y,z) axis." << endl);
    65   Matrix M = World::getInstance().getDomain().getM();
    66   Matrix newM = M;
     65  RealSpaceMatrix M = World::getInstance().getDomain().getM();
     66  RealSpaceMatrix newM = M;
    6767  Vector x,y;
    6868  int n[NDIM];
    69   Matrix repMat;
     69  RealSpaceMatrix repMat;
    7070  for (int axis = 0; axis < NDIM; axis++) {
    7171    params.Repeater[axis] = floor(params.Repeater[axis]);
  • src/Actions/WorldAction/ScaleBoxAction.cpp

    r3bc926 rcca9ef  
    2626#include "World.hpp"
    2727#include "Box.hpp"
    28 #include "LinearAlgebra/Matrix.hpp"
     28#include "LinearAlgebra/RealSpaceMatrix.hpp"
    2929
    3030#include <iostream>
     
    5353  }
    5454
    55   Matrix M = World::getInstance().getDomain().getM();
    56   Matrix scale;
     55  RealSpaceMatrix M = World::getInstance().getDomain().getM();
     56  RealSpaceMatrix scale;
    5757
    5858  for (int i=0;i<NDIM;i++) {
Note: See TracChangeset for help on using the changeset viewer.