[eigen] Assertion error on eigen_assert(checkIndexRange(indices))

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

Hi there guys,

I'm using some Tensors on a Nuttx OS, and I'm getting an assertion error:

Assertion failed at file:/home/nuno/dev_px4/apply_eigen_math/Firmware/src/lib/eigen/unsupported/Eigen/CXX11/../../Eigen/CXX11/src/Tensor/Tensor.h line: 233

Line 233 is part of an inline function:

EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar& operator()(const array<Index, NumIndices>& indices)
return coeffRef(indices);

What I'm trying to understand is where is this assertion failing. The code I have and where I'm using Tensors is: https://github.com/TSC21/Firmware/blob/apply_eigen_math/src/modules/position_estimator_inav/position_estimator_inav_main.cpp, where I created the following Tensors:

Tensor<float, 3> est_buf(EST_BUF_SIZE, 3, 2); // estimated position buffer
Tensor<float, 3> R_buf(EST_BUF_SIZE, 3, 3); // rotation matrix buffer

Those are modified in:

Can any of the developers help understand why is it giving an assertion error? 

Thanks in advance! Best regards,

Nuno Marques
Tenente Aluno de Transmissões (Eng)

+351 912 090 991
Azambuja | Portugal

As the creation appears, the path is driven in the conscious feeling of madness and happiness, which returns, in multiple ways, to what we achieve in greatness...

Follow me in:

This message and any files herewith attached may contain confidential or privileged information and is intended solely for the use of the entity to which it is addressed. If you receive this message in error, please notify the sender immediately and delete this message and any files attached without copying them in any way.

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