This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 465 - Missing native support for pow(expr,expr) and pow(scalar,expr)
Summary: Missing native support for pow(expr,expr) and pow(scalar,expr)
Status: NEW
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - general (show other bugs)
Version: 3.1
Hardware: All All
: Normal Unknown
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-19 22:46 UTC by Gael Guennebaud
Modified: 2019-12-04 11:40 UTC (History)
3 users (show)



Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.