Re: [eigen] Multiple dimensions Matrix |

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] Multiple dimensions Matrix*From*: Christoph Hertzberg <chtz@xxxxxxxxxxxxxxxxxxxxxxxx>*Date*: Tue, 18 Aug 2015 14:43:11 +0200

On 18.08.2015 at 00:35, Nuno Marques wrote:

Hi there guys, What is the best way of creating a multiple size matrix, something like: Matrix[dynamic,fixed,fixed] The code I pretend to convert is float[EST_BUF_SIZE][3][2] , where EST_BUF_SIZE is variable. I've been trying to find something on Eigen that can be used but then I just see 2D Matrix definitions, no 3D.

typedef Eigen::Matrix<float, 3, 2> Matrix32; std::vector<Matrix32> buffer; might be sufficient, as well ...

Off-topic: Also, is there a way of doing memset() for a Matrix<> or is automatically done?

matrix.setConstant(value); matrix.setZero(); matrix.setOnes(); Christoph -- ---------------------------------------------- Dipl.-Inf., Dipl.-Math. Christoph Hertzberg Cartesium 0.049 Universität Bremen Enrique-Schmidt-Straße 5 28359 Bremen Tel: +49 (421) 218-64252 ----------------------------------------------

**Follow-Ups**:**RE: [eigen] Multiple dimensions Matrix***From:*Nuno Marques

**References**:**[eigen] Compiling errors in Nuttx environment***From:*Nuno Marques

**RE: [eigen] Compiling errors in Nuttx environment***From:*Nuno Marques

**Re: [eigen] Compiling errors in Nuttx environment***From:*Christoph Hertzberg

**RE: [eigen] Compiling errors in Nuttx environment***From:*Nuno Marques

**Re: [eigen] Compiling errors in Nuttx environment***From:*Christoph Hertzberg

**RE: [eigen] Compiling errors in Nuttx environment***From:*Nuno Marques

**RE: [eigen] Compiling errors in Nuttx environment***From:*Nuno Marques

**Re: [eigen] Compiling errors in Nuttx environment***From:*Christoph Hertzberg

**RE: [eigen] Compiling errors in Nuttx environment***From:*Nuno Marques

**[eigen] Multiple dimensions Matrix***From:*Nuno Marques

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Multiple dimensions Matrix** - Next by Date:
**[eigen] Assertion error on eigen_assert(checkIndexRange(indices))** - Previous by thread:
**RE: [eigen] Reliability, stability, scalability, test-proof and performance of Tensors** - Next by thread:
**RE: [eigen] Multiple dimensions Matrix**

Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |