|
Ublas : |
From: Gunter Winkler (guwi17_at_[hidden])
Date: 2007-03-02 04:23:57
On Friday 02 March 2007 06:22, Sourabh wrote:
> Suppose, I want to use a matrix which has two properties:
> It is lower triangular matrix and also sparse.
> How should I specify it in ublas ?
You can use any sparse matrix type. If you only assign values below the
diagonal then you gain a lower triangular matrix. The triangular_matrix class
is a dense matrix which stores about n^2/2 elements.
mfg
Gunter