suanPan
|
#include <triplet_form.hpp>
Public Types | |
using | data_type = data_t |
using | index_type = index_t |
Public Member Functions | |
triplet_form ()=default | |
triplet_form (const triplet_form &) | |
triplet_form (triplet_form &&) noexcept | |
triplet_form & | operator= (const triplet_form &) |
triplet_form & | operator= (triplet_form &&) noexcept |
~triplet_form ()=default | |
triplet_form (const index_t in_rows, const index_t in_cols, const index_t in_elem=index_t(0)) | |
template<sp_d in_dt> | |
triplet_form (const SpMat< in_dt > &) | |
template<sp_d in_dt, sp_i in_it> | |
triplet_form (triplet_form< in_dt, in_it > &, SparseBase=SparseBase::ZERO, bool=false) | |
const index_t * | row_mem () const |
const index_t * | col_mem () const |
const data_t * | val_mem () const |
index_t * | row_mem () |
index_t * | col_mem () |
data_t * | val_mem () |
index_t | row (const index_t I) const |
index_t | col (const index_t I) const |
data_t | val (const index_t I) const |
bool | is_csr_sorted () const |
bool | is_csc_sorted () const |
bool | is_empty () const |
data_t | max () const |
void | zeros () |
void | init (const index_t in_elem) |
void | init (const index_t in_rows, const index_t in_cols, const index_t in_elem) |
data_t | operator() (const index_t row, const index_t col) const |
data_t & | at (index_t, index_t) |
void | print () const |
void | csr_sort () |
void | csc_sort () |
void | csr_condense () |
void | csc_condense () |
void | full_csr_condense () |
void | full_csc_condense () |
void | assemble (const Mat< data_t > &, const Col< uword > &) |
template<sp_d in_dt, sp_i in_it> | |
void | assemble (const triplet_form< in_dt, in_it > &, index_t, index_t, data_t) |
template<sp_d in_dt, sp_i in_it> | |
void | assemble (const triplet_form< in_dt, in_it > &in_mat, const std::vector< index_t > &row_shift, const std::vector< index_t > &col_shift, const std::vector< data_t > &scalar) |
Mat< data_t > | operator* (const Col< data_t > &in_mat) const |
Mat< data_t > | operator* (const Mat< data_t > &in_mat) const |
template<sp_d T2> | |
triplet_form | operator* (T2) const |
template<sp_d T2> | |
triplet_form | operator/ (T2) const |
template<sp_d T2> | |
triplet_form & | operator*= (T2) |
template<sp_d T2> | |
triplet_form & | operator/= (T2) |
triplet_form | operator+ (const triplet_form &in_mat) const |
triplet_form | operator- (const triplet_form &in_mat) const |
triplet_form & | operator+= (const triplet_form &) |
triplet_form & | operator-= (const triplet_form &) |
Col< data_t > | diag () const |
triplet_form | diagonal () const |
triplet_form | strictly_upper () const |
triplet_form | strictly_lower () const |
triplet_form | upper () const |
triplet_form | lower () const |
template<sp_d T2> | |
triplet_form< data_t, index_t > | operator* (const T2 scalar) const |
template<sp_d T2> | |
triplet_form< data_t, index_t > | operator/ (const T2 scalar) const |
template<sp_d T2> | |
triplet_form< data_t, index_t > & | operator*= (const T2 scalar) |
template<sp_d T2> | |
triplet_form< data_t, index_t > & | operator/= (const T2 scalar) |
Public Attributes | |
const index_t | n_rows = 0 |
const index_t | n_cols = 0 |
const index_t | n_elem = 0 |
const index_t | n_alloc = 0 |
Friends | |
template<sp_d in_dt, sp_i in_it> | |
class | csc_form |
template<sp_d in_dt, sp_i in_it> | |
class | csr_form |
template<sp_d in_dt, sp_i in_it> | |
class | triplet_form |
using triplet_form< data_t, index_t >::data_type = data_t |
using triplet_form< data_t, index_t >::index_type = index_t |
|
default |
triplet_form< data_t, index_t >::triplet_form | ( | const triplet_form< data_t, index_t > & | in_mat | ) |
|
noexcept |
|
default |
|
inline |
|
explicit |
|
explicit |
void triplet_form< data_t, index_t >::assemble | ( | const Mat< data_t > & | in_mat, |
const Col< uword > & | in_dof | ||
) |
void triplet_form< data_t, index_t >::assemble | ( | const triplet_form< in_dt, in_it > & | in_mat, |
index_t | row_shift, | ||
index_t | col_shift, | ||
data_t | scalar | ||
) |
|
inline |
data_t & triplet_form< data_t, index_t >::at | ( | index_t | row, |
index_t | col | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
void triplet_form< data_t, index_t >::csc_sort |
|
inline |
void triplet_form< data_t, index_t >::csr_sort |
Col< data_t > triplet_form< data_t, index_t >::diag |
triplet_form< data_t, index_t > triplet_form< data_t, index_t >::diagonal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
triplet_form< data_t, index_t > triplet_form< data_t, index_t >::lower |
|
inline |
|
inline |
|
inline |
|
inline |
triplet_form< data_t, index_t > triplet_form< data_t, index_t >::operator* | ( | const T2 | scalar | ) | const |
triplet_form triplet_form< data_t, index_t >::operator* | ( | T2 | ) | const |
triplet_form< data_t, index_t > & triplet_form< data_t, index_t >::operator*= | ( | const T2 | scalar | ) |
triplet_form & triplet_form< data_t, index_t >::operator*= | ( | T2 | ) |
|
inline |
triplet_form< data_t, index_t > & triplet_form< data_t, index_t >::operator+= | ( | const triplet_form< data_t, index_t > & | in_mat | ) |
|
inline |
triplet_form< data_t, index_t > & triplet_form< data_t, index_t >::operator-= | ( | const triplet_form< data_t, index_t > & | in_mat | ) |
triplet_form< data_t, index_t > triplet_form< data_t, index_t >::operator/ | ( | const T2 | scalar | ) | const |
triplet_form triplet_form< data_t, index_t >::operator/ | ( | T2 | ) | const |
triplet_form< data_t, index_t > & triplet_form< data_t, index_t >::operator/= | ( | const T2 | scalar | ) |
triplet_form & triplet_form< data_t, index_t >::operator/= | ( | T2 | ) |
triplet_form< data_t, index_t > & triplet_form< data_t, index_t >::operator= | ( | const triplet_form< data_t, index_t > & | in_mat | ) |
|
noexcept |
void triplet_form< data_t, index_t >::print |
|
inline |
|
inline |
|
inline |
triplet_form< data_t, index_t > triplet_form< data_t, index_t >::strictly_lower |
triplet_form< data_t, index_t > triplet_form< data_t, index_t >::strictly_upper |
triplet_form< data_t, index_t > triplet_form< data_t, index_t >::upper |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
const index_t triplet_form< data_t, index_t >::n_alloc = 0 |
const index_t triplet_form< data_t, index_t >::n_cols = 0 |
const index_t triplet_form< data_t, index_t >::n_elem = 0 |
const index_t triplet_form< data_t, index_t >::n_rows = 0 |