| 1 |
/****************************************************************************** |
| 2 |
This source file is part of the Avogadro project. |
| 3 |
This source code is released under the 3-Clause BSD License, (see "LICENSE"). |
| 4 |
******************************************************************************/ |
| 5 |
|
| 6 |
#ifndef AVOGADRO_CORE_MATRIX_H |
| 7 |
#define AVOGADRO_CORE_MATRIX_H |
| 8 |
|
| 9 |
#include "avogadrocore.h" |
| 10 |
#include <Eigen/Dense> |
| 11 |
|
| 12 |
namespace Avogadro { |
| 13 |
|
| 14 |
/** Typedefs for vector types. */ |
| 15 |
using Matrix2 = Eigen::Matrix<Real, 2, 2>; |
| 16 |
using Matrix3 = Eigen::Matrix<Real, 3, 3>; |
| 17 |
using Matrix4 = Eigen::Matrix<Real, 4, 4>; |
| 18 |
using MatrixX = Eigen::Matrix<Real, Eigen::Dynamic, Eigen::Dynamic>; |
| 19 |
|
| 20 |
using Matrix2f = Eigen::Matrix<float, 2, 2>; |
| 21 |
using Matrix3f = Eigen::Matrix<float, 3, 3>; |
| 22 |
using Matrix4f = Eigen::Matrix<float, 4, 4>; |
| 23 |
using MatrixXf = Eigen::Matrix<float, Eigen::Dynamic, Eigen::Dynamic>; |
| 24 |
|
| 25 |
} // namespace Avogadro |
| 26 |
|
| 27 |
#endif // AVOGADRO_CORE_MATRIX_H |