[feature request] triangularView < Eigen::Diagonal > ()

Submitted by Kolja Brix

Assigned to Nobody

Link to original bugzilla bug (#604)
Version: 3.3 (current stable)

Description

Dear Eigen developers,

to have a consistent API, wouldn't it be a good idea to provide

mat.triangularView < Eigen::Diagonal > ()

or

mat.diagonalView()

to access the diagonal of a dense/sparse matrix?

Depends on

#99 (closed)

Blocking

#1608

Edited by Antonio Sánchez