mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-12 09:23:12 +08:00
fix doc compilation on non 32bits systems
This commit is contained in:
parent
850c6d8a2b
commit
19a70ae939
@ -2,13 +2,14 @@
|
|||||||
#include <Eigen/Dense>
|
#include <Eigen/Dense>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
using namespace Eigen;
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
Eigen::MatrixXf mat(2,4);
|
MatrixXf mat(2,4);
|
||||||
mat << 1, 2, 6, 9,
|
mat << 1, 2, 6, 9,
|
||||||
3, 1, 7, 2;
|
3, 1, 7, 2;
|
||||||
|
|
||||||
int maxIndex;
|
MatrixXf::Index maxIndex;
|
||||||
float maxNorm = mat.colwise().sum().maxCoeff(&maxIndex);
|
float maxNorm = mat.colwise().sum().maxCoeff(&maxIndex);
|
||||||
|
|
||||||
std::cout << "Maximum sum at position " << maxIndex << std::endl;
|
std::cout << "Maximum sum at position " << maxIndex << std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user