~yade-dev/yade/eigen3

« back to all changes in this revision

Viewing changes to Eigen/src/SparseCore/SparseUtil.h

  • Committer: Anton Gladky
  • Date: 2012-11-07 22:02:48 UTC
  • Revision ID: gladky.anton@gmail.com-20121107220248-uoks7euvfwp7wrf7
3.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
 
114
114
template<typename T,int Rows,int Cols> struct sparse_eval {
115
115
    typedef typename traits<T>::Scalar _Scalar;
116
 
    enum { _Flags = traits<T>::Flags };
 
116
    typedef typename traits<T>::Index _Index;
 
117
    enum { _Options = ((traits<T>::Flags&RowMajorBit)==RowMajorBit) ? RowMajor : ColMajor };
117
118
  public:
118
 
    typedef SparseMatrix<_Scalar, _Flags> type;
 
119
    typedef SparseMatrix<_Scalar, _Options, _Index> type;
119
120
};
120
121
 
121
122
template<typename T> struct sparse_eval<T,1,1> {