New user self-registration is disabled due to spam. Please email eigen-core-team @ lists.tuxfamily.org if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!
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: 2013-06-13 22:21 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.

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