Ignore:
Timestamp:
Mar 24, 2017, 10:12:23 AM (8 years ago)
Author:
Frederik Heber <heber@…>
Branches:
FitPartialCharges_GlobalError
Children:
fa2c89
Parents:
a3d08c
git-author:
Frederik Heber <heber@…> (10/10/16 12:34:32)
git-committer:
Frederik Heber <heber@…> (03/24/17 10:12:23)
Message:

Extracted PartialNucleiChargeFitter::calculateResiduum().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Potentials/PartialNucleiChargeFitter.hpp

    ra3d08c re6a2ef  
    105105   charges_t getSolutionAsCharges_t() const;
    106106
     107   /** Helper function to construct the discretized Coulomb operator for the
     108    * nuclei charges.
     109    *
     110    */
    107111   void writeMatrix();
     112
     113   /** Setter for solution as charges_t
     114    *
     115    * \param _charges solution vector x as type charges_t
     116    * \return false - if charges does not match in size with internal positions
     117    */
     118   bool setCharges(const charges_t &_charges);
     119
     120   /** Calculates the residuum for the currently set charges.
     121    *
     122    * \return residual for every charge
     123    */
     124   VectorContent calculateResiduum();
    108125
    109126private:
     
    132149       const Vector &grid_position) const;
    133150
     151   /** Helper function to allocate memory for charges.
     152    *
     153    * \param _size size to allocate
     154    */
     155   void prepareCharges(const size_t _size);
     156
    134157private:
    135158   //!> grid dimensions per axis for internal use
Note: See TracChangeset for help on using the changeset viewer.