Re: [eigen] regression in patch aa6f0b4308ac?

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Ok, thanks for the explanation and the fix.
Daniel

On Thu, Jul 22, 2010 at 5:03 PM, Gael Guennebaud <gael.guennebaud@xxxxxxxxx> wrote:
ok problem solved, I forgot to clean the nesting type before using it
as a class.

Regarding the nesting mechanism, see these notes:

http://eigen.tuxfamily.org/index.php?title=Eigen3_Developer_Documentation#Nested_Expression_Templates

gael

On Thu, Jul 22, 2010 at 3:24 PM, Daniel Lowengrub <lowdanie@xxxxxxxxx> wrote:
> Hi,
> I was using SparseView() in the standard fashion [sparseMatrix.sparseView()]
> for debugging and started to get many errors like these:
> /data/Src/eigen/Eigen/src/Sparse/SparseView.h: At global scope:
> /data/Src/eigen/Eigen/src/Sparse/SparseView.h: In instantiation of
> ‘Eigen::SparseView<Eigen::Matrix<double, 10, 10, 0, 10, 10>
>>::InnerIterator’:
> /data/Src/eigen/Eigen/src/Sparse/SparseMatrix.h:457:   instantiated from
> ‘Eigen::SparseMatrix<_Scalar, _Flags, _Index>& Eigen::SparseMatrix<_Scalar,
> _Flags, _Index>::operator=(const Eigen::SparseMatrixBase<OtherDerived>&)
> [with OtherDerived = Eigen::SparseView<Eigen::Matrix<double, 10, 10, 0, 10,
> 10> >, _Scalar = double, int _Options = 0, _Index = int]’
> sparse_view.cpp:33:   instantiated from here
> /data/Src/eigen/Eigen/src/Sparse/SparseView.h:62: error: ‘const
> Eigen::Matrix<double, 10, 10, 0, 10, 10>&’ is not a class, struct, or union
> type
> /data/Src/eigen/Eigen/src/Sparse/SparseView.h:64: error: ‘const
> Eigen::Matrix<double, 10, 10, 0, 10, 10>&’ is not a class, struct, or union
> type
> /data/Src/eigen/Eigen/src/Sparse/SparseView.h:78: error: ‘const
> Eigen::Matrix<double, 10, 10, 0, 10, 10>&’ is not a class, struct, or union
> type
> /data/Src/eigen/Eigen/src/Sparse/SparseView.h:78: error: using-declaration
> for non-member at class scope
>
> If I rollback to before the aa6f0b4308ac patch [makes SparseView a true
> sparse _expression_ and fix use of nesting types] then I stop getting the
> errors, from there and after I get them.
>
> What could be causing this?  Can someone please elucidate the purpose of the
> patch? I'm afraid I don't understand the nesting type issue.
>
> Thanks,
> Daniel
>
>
>
>





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/