1 /****************************************************************************** 2 3 This source file is part of the Avogadro project. 4 5 Copyright 2012 Kitware, Inc. 6 7 This source code is released under the New BSD License, (the "License"). 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the License is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14 15 ******************************************************************************/ 16 17 #ifndef AVOGADRO_CORE_MATRIX_H 18 #define AVOGADRO_CORE_MATRIX_H 19 20 #include "avogadrocore.h" 21 #include <Eigen/Dense> 22 23 namespace Avogadro { 24 25 /** Typedefs for vector types. */ 26 typedef Eigen::Matrix<Real, 2, 2> Matrix2; 27 typedef Eigen::Matrix<Real, 3, 3> Matrix3; 28 typedef Eigen::Matrix<Real, 4, 4> Matrix4; 29 typedef Eigen::Matrix<Real, Eigen::Dynamic, Eigen::Dynamic> MatrixX; 30 31 typedef Eigen::Matrix<float, 2, 2> Matrix2f; 32 typedef Eigen::Matrix<float, 3, 3> Matrix3f; 33 typedef Eigen::Matrix<float, 4, 4> Matrix4f; 34 typedef Eigen::Matrix<float, Eigen::Dynamic, Eigen::Dynamic> MatrixXf; 35 36 } // end Avogadro namespace 37 38 #endif // AVOGADRO_CORE_MATRIX_H 39