CASM  1.1.0
A Clusters Approach to Statistical Mechanics
eigen.hh
Go to the documentation of this file.
1 #ifndef CASM_global_eigen
2 #define CASM_global_eigen
3 
4 #include "casm/external/Eigen/Dense"
5 
6 namespace CASM {
8 }
9 
10 namespace Eigen {
11 
12 typedef Matrix<long int, 3, 3> Matrix3l;
13 typedef Matrix<long int, 3, 1> Vector3l;
14 typedef Matrix<long int, Dynamic, Dynamic> MatrixXl;
15 typedef Matrix<long int, Dynamic, 1> VectorXl;
16 
17 template <typename Derived>
18 std::istream &operator>>(std::istream &s, MatrixBase<Derived> &m) {
19  for (int i = 0; i < m.rows(); ++i)
20  for (int j = 0; j < m.cols(); j++) s >> m(i, j);
21  return s;
22 }
23 } // namespace Eigen
24 
25 #endif
std::set< std::string > & s
Main CASM namespace.
Definition: APICommand.hh:8
Eigen::MatrixXd::Index EigenIndex
Definition: eigen.hh:7
INDEX_TYPE Index
For long integer indexing:
Definition: definitions.hh:39
Matrix< long int, 3, 1 > Vector3l
Definition: eigen.hh:13
Matrix< long int, Dynamic, 1 > VectorXl
Definition: eigen.hh:15
std::istream & operator>>(std::istream &s, MatrixBase< Derived > &m)
Definition: eigen.hh:18
Matrix< long int, 3, 3 > Matrix3l
Definition: eigen.hh:12
Matrix< long int, Dynamic, Dynamic > MatrixXl
Definition: eigen.hh:14