This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen

Bug 465

Summary: Missing native support for pow(expr,expr) and pow(scalar,expr)
Product: Eigen Reporter: Gael Guennebaud <gael.guennebaud>
Component: Core - generalAssignee: Nobody <eigen.nobody>
Status: NEW ---    
Severity: Unknown CC: gael.guennebaud, hazelnusse, jacob.benoit.1
Priority: Normal    
Version: 3.1   
Hardware: All   
OS: All   
Whiteboard:

Description Gael Guennebaud 2012-05-19 22:46:11 UTC

    
Comment 1 Dale Lukas Peterson 2013-06-13 19:50:56 UTC
This would be really nice to have.  I tried recently to use the unsupported matrix power, and ran into a number of segfaults for very simple matrix powers:

#include <iostream>
#include <unsupported/Eigen/MatrixFunctions>
int main()
{
  Eigen::MatrixXcd A(2,2);
  A << 1, 1, 4, -2;
  // Segfaults:
  //Eigen::MatrixPower<Eigen::MatrixXcd> Apow(A);
  //std::cout << Apow(3.1) << "\n\n";

  // Segfaults:
  //std::cout << A.pow(3.1) << "\n\n";

  // Segfaults:
  //std::cout << A.pow(3.1).eval() << "\n\n";

  // Segfaults:
  //Eigen::MatrixXcd B(2,2);
  //B = A.pow(3.1);
}

I use matrix power a lot, it would be nice if this worked in Eigen.
Comment 2 Gael Guennebaud 2013-06-13 22:21:25 UTC
Actually this entry is about coefficient-wise power, see the function signatures. So let's continue your issue on bug 614.
Comment 3 Nobody 2019-12-04 11:40:20 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/465.