开发者

Tridiagonal matrix class in Boost c++

开发者 https://www.devze.com 2023-01-14 18:48 出处:网络
Does boost provi开发者_运维技巧de any classes to implement a tridiagonal matrix?http://www.boost.org/doc/libs/1_44_0/libs/numeric/ublas/doc/banded.htmBesides this, you are probably looking for a matri

Does boost provi开发者_运维技巧de any classes to implement a tridiagonal matrix?


http://www.boost.org/doc/libs/1_44_0/libs/numeric/ublas/doc/banded.htm


Besides this, you are probably looking for a matrix where the 3 diagonal are contiguous. This is provided by a row-major banded matrix, since diagonals are mapped to rows and in row_major these are contiguous. The 3 diagonals are provided with one allocation and proper pointers can be easily obtained by &m(0,0), &m(1,0), &m(0,1)

0

精彩评论

暂无评论...
验证码 换一张
取 消