/****************************************************************************** This source file is part of the Avogadro project. Copyright (C) 2010 Eric C. Brown This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ******************************************************************************/ #ifndef QTAIMMATHUTILITIES_H #define QTAIMMATHUTILITIES_H #include #include using namespace Eigen; namespace Avogadro::QtPlugins::QTAIMMathUtilities { Matrix eigenvaluesOfASymmetricThreeByThreeMatrix( const Matrix& A); Matrix eigenvectorsOfASymmetricThreeByThreeMatrix( const Matrix& A); Matrix eigenvaluesOfASymmetricFourByFourMatrix( const Matrix& A); Matrix eigenvectorsOfASymmetricFourByFourMatrix( const Matrix& A); qint64 signOfARealNumber(qreal x); qint64 signatureOfASymmetricThreeByThreeMatrix(const Matrix& A); qreal ellipticityOfASymmetricThreeByThreeMatrix(const Matrix& A); qreal distance(const Matrix& a, const Matrix& b); Matrix sphericalToCartesian(const Matrix& rtp, const Matrix& x0y0z0); Matrix sphericalToCartesian(const Matrix& rtp); Matrix cartesianToSpherical(const Matrix& xyz, const Matrix& x0y0z0); Matrix cartesianToSpherical(const Matrix& xyz); // Cerjan-Miller-Baker-Popelier Methods // A small number to prevent divide by zero in CMBP routines #define SMALL 1.e-10 Matrix minusThreeSignatureLocatorGradient( const Matrix& g, const Matrix& H); Matrix minusOneSignatureLocatorGradient( const Matrix& g, const Matrix& H); Matrix plusOneSignatureLocatorGradient( const Matrix& g, const Matrix& H); Matrix plusThreeSignatureLocatorGradient( const Matrix& g, const Matrix& H); } // namespace Avogadro::QtPlugins::QTAIMMathUtilities #endif // QTAIMMATHUTILITIES_H