


Category:containers,selectors 
Component type:type 


Description

The diagonal matrix shape is similar to the banded matrix in that
there is a bandwidth that describes the area of the matrix in which
nonzero matrix elements can reside. The difference between the banded
matrix shape lies in how the MTL iterators traverse the matrix, which
is explained in DiagonalMatrix. The MTL storage types that
can be used are banded, packed,
banded_view, and array. To get the traditional
tridiagonal matrix format, one just has to specify the bandwith to be
(1,1) and use the array < dense < > > storage format.


Example



Definition

matrix.h


Template Parameters

Parameter  Description  Default 
MemLoc  Specify whether the memory used is "owned" by the matrix or if it was provided to the matrix from some external source (with a pointer to some data)  internal 


Model of



Members

Member

Where defined

Description

enum
{ uplo, id = DIAG, ext=MemLoc, M=0, N=0 }





New members



Notes



See also

