Changed typeof to explicit type to try to avoid mex error
parent
905377efb6
commit
50c370cf97
|
@ -338,6 +338,8 @@ public:
|
||||||
typedef MATRIX FullMatrix;
|
typedef MATRIX FullMatrix;
|
||||||
typedef Eigen::Block<MATRIX> Block;
|
typedef Eigen::Block<MATRIX> Block;
|
||||||
typedef Eigen::Block<const MATRIX> constBlock;
|
typedef Eigen::Block<const MATRIX> constBlock;
|
||||||
|
typedef typename FullMatrix::ColXpr::SegmentReturnType Column;
|
||||||
|
typedef typename FullMatrix::ConstColXpr::ConstSegmentReturnType constColumn;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static FullMatrix matrixTemp_; // just for finding types
|
static FullMatrix matrixTemp_; // just for finding types
|
||||||
|
@ -445,9 +447,6 @@ public:
|
||||||
/** access to full matrix */
|
/** access to full matrix */
|
||||||
const FullMatrix& fullMatrix() const { return matrix_; }
|
const FullMatrix& fullMatrix() const { return matrix_; }
|
||||||
|
|
||||||
typedef typeof((FullMatrix)matrixTemp_.col(0).segment(0, 1)) Column;
|
|
||||||
typedef typeof(((const FullMatrix&)matrixTemp_).col(0).segment(0, 1)) constColumn;
|
|
||||||
|
|
||||||
Column column(size_t i_block, size_t j_block, size_t columnOffset) {
|
Column column(size_t i_block, size_t j_block, size_t columnOffset) {
|
||||||
assertInvariants();
|
assertInvariants();
|
||||||
size_t i_actualBlock = i_block + blockStart_;
|
size_t i_actualBlock = i_block + blockStart_;
|
||||||
|
|
Loading…
Reference in New Issue