Infinite recursion when doing exp(matrix)

Submitted by Gael Guennebaud @ggael

Assigned to Nobody

Link to original bugzilla bug (#314)
Version: 3.0

Description

Here is a simple example to reproduce:

#include <Eigen/Core>
#include <iostream>
int main() {
Eigen::MatrixXf a(4,4), b;
b = exp(a);
}

The problem is in the file MathFunctions.h, lines 469-488 where exp calls exp_default_impl::exp which itself calls exp...

The fix is probably to add specializations for MatrixBase objects.

Blocking

#387 (closed)

Edited Dec 05, 2019 by Eigen Bugzilla
Assignee Loading
Time tracking Loading