Questions tagged [eigen3]

Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.

Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms. Homepage: http://eigen.tuxfamily.org

Please use eigen3 tag specifically for questions related to version 3 of the library.

1014 questions
-1
votes
3 answers

Why can't I make install python opencv2?

I am trying to install opencv2 on my Mac Air (with Lion) via these instructions. http://www.guidefreitas.com/installing-opencv-2-4-2-on-mac-osx-mountain-lion-with-python-support I have successfully made opencv2 with make j8 However, running sudo…
dangerChihuahua007
  • 20,299
  • 35
  • 117
  • 206
-2
votes
1 answer

Why do you get a segmentation fault when trying to access a ndarray defined in c++ in fortran with c_f_pointer like this?

I have a fortran module, which is part of a c++ program. This module has a global variable, which is a 3d array, and which I would like to have pointed to a 3d Tensor I am defining in c++: test.cpp: #include #include…
Yes
  • 339
  • 3
  • 19
-2
votes
1 answer

How to deal with this eigen error of static assertion failed?

I'm using vscode to write my cpp code. It use the Eigen package. And I met a strange error: error: static assertion failed: YOU_CALLED_A_FIXED_SIZE_METHOD_ON_A_DYNAMIC_SIZE_MATRIX_OR_VECTOR 214 | EIGEN_STATIC_ASSERT_FIXED_SIZE(Derived) | …
Learning Lin
  • 121
  • 1
  • 7
-2
votes
1 answer

Eigen - does matrix.transpose create a copy of the matrix?

I would like to do the following matrix product using Eigen: Eigen::VectorXd vector = Eigen::VectorXd::Random(1000000); // a given long vector Eigen::MatrixXd product = vector * vector.transpose(); I'm not sure Eigen will create a copy of vector…
DiveIntoML
  • 2,347
  • 2
  • 20
  • 36
-2
votes
1 answer

Eigen SparseMatrix with OpenMP - crash when inserting values

For a very simple test example when trying to fill Eigen::SparseMatrix within OpenMP construct, application crashes. SparseMatrix A_mat( nCol, nRow ); //A_mat.reserve( VectorXi::Constant( nCol, nRow ) ); // When commented crashes auto…
Karpov
  • 1
  • 1
  • 3
-2
votes
1 answer

Eigen segfaults with AVX on Ivy Bridge when using `std::vector` of fixed-size matrices

I'm wondering if this is a known issue; if not, has anyone experienced this, and has anyone managed to find a fix? I'm building a numerical computation code using Eigen 3.3.4 using GCC 6.4 on Fedora 25 on a Core i7-3700. My proc/cpuinfo says I…
Aditya Kashi
  • 266
  • 2
  • 13
-3
votes
1 answer

How to parallelize inversion of a sparse matrix?

I'm using eigen3 package in c++ to invert some large sparse matrices (e.g. 12000*12000) which I need for later operations; however, it's really time-consuming and I can't extend it to larger matrices. Is it possible to do this in parallel for…
So R Kh
  • 3
  • 3
-4
votes
1 answer

Syntax error in C++ program, cannot figure out

I am trying a program in with eigen library in C++ but making some mistake in syntax part. Here is my code. Can someone comment where I went wrong? #include #include //EIGEN library using namespace Eigen; using namespace…
user3705273
  • 325
  • 6
  • 14
-5
votes
1 answer

Select a part of a vector with C++ and Eigen

I would like to select a part of a vector in C++ with the library Eigen? I mean if I have this vector : VectorXd v(6); v << 1, 2, 3, 8, 1, 2; Is there a function which returns this vector: a << 2, 8, 2; ? Because I know how to select just a part…
1 2 3
67
68