This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Is there something like "blockview"?

Tags: None
(comma "," separated)
User avatar
emilf
Registered Member
Posts
29
Karma
0
OS

Is there something like "blockview"?

Tue Nov 07, 2017 11:50 am
Hi all,

Is there a way to tell Eigen that a specific matrix only has a block that is non-zero?
Like, for example, the triangular view - but "block"-view.

So one might do:
Code: Select all
// Ex1:
Q * A.blockview<form_x, from_y, to_x, to_y>() * R

// Ex2:
Q * A.blockview<size_x, size_y>(from_x, form_y) * R

I'm looking to generate optimized code that does not use all the zeros in a matrix.
Thanks for the assistance!

Best
Emil
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
Nope, you must use A.block(...) and pick respective blocks of Q and R. by hand.
User avatar
emilf
Registered Member
Posts
29
Karma
0
OS
I see.
Is this a planned feature, or is there somewhere I can request it as an official feature?
When using Eigen in embedded systems this often comes up, and is very good when to automatically generate algorithms at compile time. :)


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]