ug4
|
Go to the source code of this file.
Classes | |
class | SparseMatrix< T > |
Typedefs | |
typedef T | value_type |
Functions | |
const_row_iterator | begin_row (size_t row) const |
template<typename AB_type , typename A_type , typename B_type > | |
void | CreateAsMultiplyOf (AB_type &M, const A_type &A, const B_type &B) |
Calculates M = A*B. More... | |
template<typename T > | |
class SparseMatrix | CreateAsProductOf (ABC_type &M, const A_type &A, const B_type &B, const C_type &C) |
void | defragment () |
const_row_iterator | end_row (size_t row) const |
const_row_iterator | get_connection (size_t r, size_t c) const |
const_row_iterator | get_connection (size_t r, size_t c, bool &bFound) const |
template<typename matrix_type > | |
void | MatAdd (matrix_type &M, number &alpha1, const matrix_type &A, number &alpha2, const matrix_type &B) |
Calculates M = A + B. More... | |
size_t | num_cols () const |
size_t | num_connections (size_t row) const |
size_t | num_rows () const |
value_type & | operator() (size_t r, size_t c) |
bool | resize (size_t newRows, size_t newCols) |
SparseMatrix () | |
size_t | total_num_connections () const |
virtual | ~SparseMatrix () |
Variables | |
class SparseMatrix | A_type |
class SparseMatrix | ABC_type |
Calculates M = A*B*C. More... | |
class SparseMatrix | B_type |
typedef T value_type |
row_iterator begin_row | ( | size_t | row | ) | const |
Referenced by ug::SparseMatrix< TValueType >::apply_transposed_ignore_zero_rows(), ug::MapSparseMatrix< TValueType >::axpy(), ug::MapSparseMatrix< TValueType >::axpy_transposed(), ug::SparseMatrix< TValueType >::is_isolated(), ug::GPUSparseMatrix< TValueType >::is_isolated(), ug::MapSparseMatrix< TValueType >::is_isolated(), ug::GPUSparseMatrix< TValueType >::mat_mult_add_row(), ug::MapSparseMatrix< TValueType >::mat_mult_add_row(), ug::SparseMatrix< TValueType >::printrow(), ug::GPUSparseMatrix< TValueType >::printrow(), ug::MapSparseMatrix< TValueType >::printrow(), ug::SparseMatrix< TValueType >::scale(), ug::GPUSparseMatrix< TValueType >::scale(), ug::MapSparseMatrix< TValueType >::scale(), ug::SparseMatrix< TValueType >::set(), ug::GPUSparseMatrix< TValueType >::set(), and ug::MapSparseMatrix< TValueType >::set().
void CreateAsMultiplyOf | ( | AB_type & | M, |
const A_type & | A, | ||
const B_type & | B | ||
) |
Calculates M = A*B.
M | (out) Matrix M, M = A*B$ |
A | (in) Matrix A |
B | (in) Matrix B |
class SparseMatrix CreateAsProductOf | ( | ABC_type & | M, |
const A_type & | A, | ||
const B_type & | B, | ||
const C_type & | C | ||
) |
void CreateAsProductOf::defragment | ( | ) |
Referenced by ug::SparseMatrix< TValueType >::check_fragmentation().
row_iterator end_row | ( | size_t | row | ) | const |
Referenced by ug::SparseMatrix< TValueType >::apply_transposed_ignore_zero_rows(), ug::MapSparseMatrix< TValueType >::axpy(), ug::MapSparseMatrix< TValueType >::axpy_transposed(), ug::SparseMatrix< TValueType >::is_isolated(), ug::GPUSparseMatrix< TValueType >::is_isolated(), ug::MapSparseMatrix< TValueType >::is_isolated(), ug::GPUSparseMatrix< TValueType >::mat_mult_add_row(), ug::MapSparseMatrix< TValueType >::mat_mult_add_row(), ug::SparseMatrix< TValueType >::printrow(), ug::GPUSparseMatrix< TValueType >::printrow(), ug::MapSparseMatrix< TValueType >::printrow(), ug::SparseMatrix< TValueType >::scale(), ug::GPUSparseMatrix< TValueType >::scale(), ug::MapSparseMatrix< TValueType >::scale(), ug::SparseMatrix< TValueType >::set(), ug::GPUSparseMatrix< TValueType >::set(), and ug::MapSparseMatrix< TValueType >::set().
row_iterator get_connection | ( | size_t | r, |
size_t | c | ||
) | const |
row_iterator get_connection | ( | size_t | r, |
size_t | c, | ||
bool & | bFound | ||
) | const |
void MatAdd | ( | matrix_type & | M, |
number & | alpha1, | ||
const matrix_type & | A, | ||
number & | alpha2, | ||
const matrix_type & | B | ||
) |
Calculates M = A + B.
M | (out) Matrix M, M = A + B |
A | (in) Matrix A |
B | (in) Matrix B note: A and/or B may be equal to M. |
size_t CreateAsProductOf::num_cols | ( | ) | const |
Referenced by ug::Jacobi< TAlgebra >::apply(), ug::AssembledLinearOperator< TAlgebra >::apply(), ug::AssembledLinearOperator< TAlgebra >::apply_sub(), ug::GPUSparseMatrix< TValueType >::axpy(), ug::Table< std::string >::num_cols(), ScalarMatrixAdapter< AT, ST >::operator()(), ug::Table< T >::operator()(), ug::DenseMatrix< VariableArray2< LocalCplMatrix > >::operator*(), ug::DenseMatrix< TStorage >::operator*(), ug::DenseMatrix< VariableArray2< LocalCplMatrix > >::operator*=(), ug::DenseMatrix< TStorage >::operator+(), ug::DenseMatrix< TStorage >::operator-(), ug::DenseMatrix< TStorage >::operator-=(), ug::DenseMatrix< VariableArray2< LocalCplMatrix > >::operator-=(), ug::DenseMatrix< TStorage >::operator/=(), ug::DenseMatrix< TStorage >::operator=(), ug::DenseMatrix< TStorage >::operator==(), ug::GPUSparseMatrix< TValueType >::print(), ug::MapSparseMatrix< TValueType >::print(), ug::bridge::RegisterBridge_Util(), ug::SparseMatrix< TValueType >::set_as_transpose_of2(), ug::Table< T >::stream(), ug::DenseMatrix< TStorage >::subassign(), ug::DenseMatrix< TStorage >::T(), ug::Table< T >::to_csv(), and ug::Table< T >::to_latex().
|
inline |
size_t CreateAsProductOf::num_rows | ( | ) | const |
Referenced by ug::Jacobi< TAlgebra >::apply(), ug::AssembledLinearOperator< TAlgebra >::apply(), ug::SparseMatrix< TValueType >::apply_ignore_zero_rows(), ug::AssembledLinearOperator< TAlgebra >::apply_sub(), ug::SparseMatrix< TValueType >::apply_transposed_ignore_zero_rows(), ug::GPUSparseMatrix< TValueType >::axpy(), ug::SparseMatrix< TValueType >::axpy(), ug::MapSparseMatrix< TValueType >::axpy(), ug::SparseMatrix< TValueType >::axpy_transposed(), ug::MapSparseMatrix< TValueType >::axpy_transposed(), ug::BlockGaussSeidel< TAlgebra, backward, forward >::block_preprocess(), ug::SparseBlockGaussSeidel< TAlgebra, backward, forward >::block_preprocess(), ug::SparseBlockGaussSeidel2< TAlgebra, backward, forward >::block_preprocess(), ug::GPUSparseMatrix< TValueType >::copyToNewSize(), ug::SparseMatrix< TValueType >::get_nnz_max_cols(), ug::GPUSparseMatrix< TValueType >::get_nnz_max_cols(), ug::SparseMatrix< TValueType >::is_isolated(), ug::GPUSparseMatrix< TValueType >::is_isolated(), ug::MapSparseMatrix< TValueType >::is_isolated(), ug::Table< std::string >::num_cols(), ScalarMatrixAdapter< AT, ST >::operator()(), ug::Table< T >::operator()(), ug::DenseMatrix< VariableArray2< LocalCplMatrix > >::operator*(), ug::DenseMatrix< TStorage >::operator*(), ug::DenseMatrix< VariableArray2< LocalCplMatrix > >::operator*=(), ug::DenseMatrix< TStorage >::operator+(), ug::DenseMatrix< TStorage >::operator-(), ug::DenseMatrix< VariableArray2< LocalCplMatrix > >::operator-=(), ug::DenseMatrix< TStorage >::operator-=(), ug::DenseMatrix< TStorage >::operator/=(), ug::DenseMatrix< TStorage >::operator=(), ug::DenseMatrix< TStorage >::operator==(), ug::PILUTPreconditioner< TAlgebra >::preprocess(), ug::GPUSparseMatrix< TValueType >::print(), ug::MapSparseMatrix< TValueType >::print(), ug::bridge::RegisterBridge_Util(), ug::GPUSparseMatrix< TValueType >::resize_and_keep_values(), ug::SparseMatrix< TValueType >::scale(), ug::GPUSparseMatrix< TValueType >::scale(), ug::MapSparseMatrix< TValueType >::scale(), ug::SparseMatrix< TValueType >::set(), ug::GPUSparseMatrix< TValueType >::set(), ug::MapSparseMatrix< TValueType >::set(), ug::SparseMatrix< TValueType >::set_as_transpose_of2(), ug::Table< T >::stream(), ug::DenseMatrix< TStorage >::subassign(), ug::DenseMatrix< TStorage >::T(), ug::Table< T >::to_csv(), and ug::Table< T >::to_latex().
const value_type & operator() | ( | size_t | r, |
size_t | c | ||
) |
operator() (size_t r, size_t c) const access connection (r, c)
r | row |
c | column |
operator() (size_t r, size_t c) const access or create connection (r, c)
r | row |
c | column |
Referenced by ug::DenseMatrix< TStorage >::entry(), ug::GPUSparseMatrix< TValueType >::set_as_copy_of(), ug::MapSparseMatrix< TValueType >::set_as_copy_of(), ug::SparseMatrix< TValueType >::set_as_copy_of(), ug::GPUSparseMatrix< TValueType >::set_as_transpose_of(), ug::MapSparseMatrix< TValueType >::set_as_transpose_of(), and ug::TestHorizontalAlgebraLayouts().
bool CreateAsProductOf::resize | ( | size_t | newRows, |
size_t | newCols | ||
) |
Referenced by ug::GMRES< TVector >::apply_return_defect(), ug::BinaryStreamBuffer::clear(), ug::PageContainer< T, MAX_PAGE_SIZE, Allocator >::clear(), ug::DoFCount::DoFCount(), ug::RasterLayers::load_from_files(), ug::DenseVector< TStorage >::operator=(), ug::DenseMatrix< VariableArray2< LocalCplMatrix > >::operator=(), ug::Vector< TValueType >::operator=(), ug::ReservableArray2< T, T_ordering >::ReservableArray2(), ug::DataImport< TData, dim >::resize_defect_array(), ug::DependentUserData< TData, dim >::resize_deriv_array(), ug::MapSparseMatrix< TValueType >::set_as_copy_of(), ug::MapSparseMatrix< TValueType >::set_as_transpose_of(), ug::VariableArray1< T >::VariableArray1(), and ug::VariableArray2< T, T_ordering >::VariableArray2().
CreateAsProductOf::SparseMatrix | ( | ) |
size_t CreateAsProductOf::total_num_connections | ( | ) | const |
|
virtual |
class SparseMatrix A_type |
class SparseMatrix ABC_type |
Calculates M = A*B*C.
M | (out) Matrix M, M = A*B*C$ |
A | (in) Matrix A |
B | (in) Matrix B |
C | (in) Matrix C |
class SparseMatrix B_type |