|
<T>LAPACK 0.1.2
C++ Template Linear Algebra PACKage
|
Legacy banded matrix. More...
#include <LegacyBandedMatrix.hpp>
Public Member Functions | |
| constexpr | LegacyBandedMatrix (idx_t m, idx_t n, idx_t kl, idx_t ku, T *ptr) |
| constexpr const T & | operator() (idx_t i, idx_t j) const noexcept |
| Access A(i,j) = ptr[ (ku+(i-j)) + j*(ku+kl+1) ]. | |
| constexpr T & | operator() (idx_t i, idx_t j) noexcept |
Public Attributes | |
| idx_t | kl |
| idx_t | ku |
| Sizes. | |
| idx_t | m |
| idx_t | n |
| T * | ptr |
| Pointer to array in memory. | |
Legacy banded matrix.
Mind that the access A(i,j) is valid if, and only if, max(0,j-ku) <= i <= min(m,j+kl) This class does not perform such a check, otherwise it would lack in performance.
| T | Floating-point type |
| idx_t | Index type |
|
inlineconstexprnoexcept |
Access A(i,j) = ptr[ (ku+(i-j)) + j*(ku+kl+1) ].
Mind that this access is valid if, and only if, max(0,j-ku) <= i <= min(m,j+kl) This operator does not perform such a check, otherwise it would lack in performance.