|
numerics 0.1.0
|
LAPACK-style band storage. More...
#include <banded.hpp>
Public Member Functions | |
| BandedMatrix (idx n, idx kl, idx ku) | |
| BandedMatrix (idx n, idx kl, idx ku, real val) | |
| ~BandedMatrix () | |
| BandedMatrix (const BandedMatrix &) | |
| BandedMatrix (BandedMatrix &&) noexcept | |
| BandedMatrix & | operator= (const BandedMatrix &) |
| BandedMatrix & | operator= (BandedMatrix &&) noexcept |
| idx | size () const |
| idx | rows () const |
| idx | cols () const |
| idx | kl () const |
| idx | ku () const |
| idx | bandwidth () const |
| idx | ldab () const |
| real & | operator() (idx i, idx j) |
| real | operator() (idx i, idx j) const |
| real & | band (idx band_row, idx col) |
| real | band (idx band_row, idx col) const |
| real * | data () |
| const real * | data () const |
| bool | in_band (idx i, idx j) const |
| void | to_gpu () |
| void | to_cpu () |
| real * | gpu_data () |
| const real * | gpu_data () const |
| bool | on_gpu () const |
LAPACK-style band storage.
Stores \(A_{ij}\) at \(\text{band}(k_l+k_u+i-j,j)\) when \(\max(0,j-k_u)\le i\le \min(n-1,j+k_l)\).
Definition at line 16 of file banded.hpp.
Definition at line 20 of file banded.cpp.
Definition at line 30 of file banded.cpp.
| num::BandedMatrix::~BandedMatrix | ( | ) |
Definition at line 35 of file banded.cpp.
References num::cuda::free().
| num::BandedMatrix::BandedMatrix | ( | const BandedMatrix & | other | ) |
Definition at line 42 of file banded.cpp.
|
noexcept |
Definition at line 51 of file banded.cpp.
Definition at line 106 of file banded.cpp.
Definition at line 110 of file banded.cpp.
|
inline |
Definition at line 37 of file banded.hpp.
|
inline |
Definition at line 31 of file banded.hpp.
|
inline |
Definition at line 47 of file banded.hpp.
Referenced by num::banded_gemv(), num::banded_lu(), num::banded_lu_solve(), num::banded_lu_solve_multi(), and num::banded_norm1().
|
inline |
Definition at line 48 of file banded.hpp.
|
inline |
Definition at line 54 of file banded.hpp.
|
inline |
Definition at line 55 of file banded.hpp.
Definition at line 114 of file banded.cpp.
|
inline |
Definition at line 33 of file banded.hpp.
Referenced by num::banded_gemv(), num::banded_lu(), num::banded_lu_solve(), num::banded_lu_solve_multi(), and num::banded_norm1().
|
inline |
Definition at line 35 of file banded.hpp.
Referenced by num::banded_gemv(), num::banded_lu(), num::banded_lu_solve(), num::banded_lu_solve_multi(), and num::banded_norm1().
|
inline |
Definition at line 39 of file banded.hpp.
Referenced by num::banded_gemv(), num::banded_lu(), num::banded_lu_solve(), num::banded_lu_solve_multi(), and num::banded_norm1().
|
inline |
Definition at line 56 of file banded.hpp.
Definition at line 98 of file banded.cpp.
Definition at line 102 of file banded.cpp.
|
noexcept |
Definition at line 80 of file banded.cpp.
References num::cuda::free().
| BandedMatrix & num::BandedMatrix::operator= | ( | const BandedMatrix & | other | ) |
Definition at line 62 of file banded.cpp.
References num::cuda::free().
|
inline |
Definition at line 30 of file banded.hpp.
|
inline |
Definition at line 29 of file banded.hpp.
Referenced by num::banded_gemv(), num::banded_lu(), num::banded_lu_solve(), num::banded_lu_solve_multi(), num::banded_norm1(), num::banded_rcond(), and num::banded_solve().
| void num::BandedMatrix::to_cpu | ( | ) |
Definition at line 126 of file banded.cpp.
References num::cuda::to_host().
| void num::BandedMatrix::to_gpu | ( | ) |
Definition at line 118 of file banded.cpp.
References num::cuda::alloc(), and num::cuda::to_device().