ug4
|
#include <local_algebra.h>
Public Types | |
typedef LocalMatrix | this_type |
own type More... | |
typedef number | value_type |
Entry type used by algebra. More... | |
Public Member Functions | |
void | access_all () |
access all functions More... | |
void | access_by_map (const FunctionIndexMapping &funcMap) |
access only part of the functions using mapping (restrict functions) More... | |
void | access_by_map (const FunctionIndexMapping &rowFuncMap, const FunctionIndexMapping &colFuncMap) |
access only part of the functions using mapping (restrict functions) More... | |
const LocalIndices & | get_col_indices () const |
get current local indices More... | |
const LocalIndices & | get_row_indices () const |
get current local indices More... | |
LocalMatrix () | |
Constructor. More... | |
LocalMatrix (const LocalIndices &rowInd, const LocalIndices &colInd) | |
Constructor. More... | |
size_t | num_all_col_dof (size_t fct) const |
returns the number of dofs for a function More... | |
size_t | num_all_col_fct () const |
returns the number of all functions More... | |
size_t | num_all_row_dof (size_t fct) const |
returns the number of dofs for a function More... | |
size_t | num_all_row_fct () const |
returns the number of all functions More... | |
size_t | num_col_dof (size_t fct) const |
returns the number of dofs for the currently accessible (restricted) function More... | |
size_t | num_col_fct () const |
returns the number of currently accessible (restricted) functions More... | |
size_t | num_row_dof (size_t fct) const |
returns the number of dofs for the currently accessible (restricted) function More... | |
size_t | num_row_fct () const |
returns the number of currently accessible (restricted) functions More... | |
number & | operator() (size_t rowFct, size_t rowDoF, size_t colFct, size_t colDoF) |
access to (restricted) coupling (rowFct, rowDoF) x (colFct, colDoF) More... | |
number | operator() (size_t rowFct, size_t rowDoF, size_t colFct, size_t colDoF) const |
const access to (restricted) coupling (rowFct, rowDoF) x (colFct, colDoF) More... | |
this_type & | operator* (number val) |
multiply all entries More... | |
this_type & | operator*= (number val) |
multiply matrix More... | |
this_type & | operator+= (const this_type &rhs) |
add matrix More... | |
this_type & | operator-= (const this_type &rhs) |
subtract matrix More... | |
this_type & | operator= (number val) |
set all entries More... | |
void | resize (const LocalIndices &ind) |
resize for same ind in row and column More... | |
void | resize (const LocalIndices &rowInd, const LocalIndices &colInd) |
resize for current local indices More... | |
this_type & | scale_append (number s, const this_type &rhs) |
add scaled matrix More... | |
number & | value (size_t rowFct, size_t rowDoF, size_t colFct, size_t colDoF) |
access to coupling (rowFct, rowDoF) x (colFct, colDoF) More... | |
number | value (size_t rowFct, size_t rowDoF, size_t colFct, size_t colDoF) const |
const access to coupling (rowFct, rowDoF) x (colFct, colDoF) More... | |
Protected Types | |
typedef DenseMatrix< VariableArray2< LocalCplMatrix * > > | FctCplAccMatrix |
typedef DenseMatrix< VariableArray2< LocalCplMatrix > > | FctCplMatrix |
typedef DenseMatrix< VariableArray2< value_type > > | LocalCplMatrix |
Protected Member Functions | |
void | check_all_dof (size_t rowFct, size_t rowDoF, size_t colFct, size_t colDoF) const |
checks correct (dof1,dof2) index in debug mode More... | |
void | check_all_fct (size_t rowFct, size_t colFct) const |
checks correct (fct1,fct2) index in debug mode More... | |
void | check_dof (size_t rowFct, size_t rowDoF, size_t colFct, size_t colDoF) const |
checks correct (dof1,dof2) index in debug mode More... | |
void | check_fct (size_t rowFct, size_t colFct) const |
checks correct (fct1,fct2) index in debug mode More... | |
Protected Attributes | |
FctCplMatrix | m_CplMat |
FctCplAccMatrix | m_CplMatAcc |
const FunctionIndexMapping * | m_pColFuncMap |
Column Access Mapping. More... | |
const LocalIndices * | m_pColIndex |
const FunctionIndexMapping * | m_pRowFuncMap |
Row Access Mapping. More... | |
const LocalIndices * | m_pRowIndex |
|
protected |
|
protected |
|
protected |
own type
typedef number ug::LocalMatrix::value_type |
Entry type used by algebra.
|
inline |
Constructor.
|
inline |
Constructor.
References resize().
|
inline |
access all functions
References m_CplMat, m_CplMatAcc, m_pColFuncMap, m_pColIndex, m_pRowFuncMap, m_pRowIndex, ug::LocalIndices::num_fct(), and ug::VariableArray2< T, T_ordering >::resize().
Referenced by resize().
|
inline |
access only part of the functions using mapping (restrict functions)
Referenced by ug::DataImport< TData, dim >::add_jacobian(), ug::IElemAssembleFuncs< TLeaf, TDomain >::do_add_jac_A_elem(), and ug::IElemAssembleFuncs< TLeaf, TDomain >::do_add_jac_M_elem().
|
inline |
access only part of the functions using mapping (restrict functions)
References m_CplMat, m_CplMatAcc, m_pColFuncMap, m_pRowFuncMap, and ug::FunctionIndexMapping::num_fct().
|
inlineprotected |
checks correct (dof1,dof2) index in debug mode
References check_all_fct(), num_all_col_dof(), num_all_row_dof(), and UG_LOCALALGEBRA_ASSERT.
Referenced by value().
|
inlineprotected |
checks correct (fct1,fct2) index in debug mode
References num_all_col_fct(), num_all_row_fct(), and UG_LOCALALGEBRA_ASSERT.
Referenced by check_all_dof().
|
inlineprotected |
checks correct (dof1,dof2) index in debug mode
References check_fct(), num_col_dof(), num_row_dof(), and UG_LOCALALGEBRA_ASSERT.
Referenced by operator()().
|
inlineprotected |
checks correct (fct1,fct2) index in debug mode
References num_col_fct(), num_row_fct(), and UG_LOCALALGEBRA_ASSERT.
Referenced by check_dof().
|
inline |
get current local indices
References m_pColIndex.
Referenced by ug::LocalToGlobalMapperNLGS< TAlgebra >::add_local_mat_to_global(), and ug::AddLocalMatrixToGlobal().
|
inline |
get current local indices
References m_pRowIndex.
Referenced by ug::LocalToGlobalMapperNLGS< TAlgebra >::add_local_mat_to_global(), and ug::AddLocalMatrixToGlobal().
|
inline |
returns the number of dofs for a function
References m_CplMat, and ug::VariableArray2< T, T_ordering >::num_cols().
Referenced by ug::LocalToGlobalMapperNLGS< TAlgebra >::add_local_mat_to_global(), ug::AddLocalMatrixToGlobal(), and check_all_dof().
|
inline |
returns the number of all functions
References m_CplMat, and ug::VariableArray2< T, T_ordering >::num_cols().
Referenced by ug::LocalToGlobalMapperNLGS< TAlgebra >::add_local_mat_to_global(), ug::AddLocalMatrixToGlobal(), and check_all_fct().
|
inline |
returns the number of dofs for a function
References m_CplMat, and ug::VariableArray2< T, T_ordering >::num_rows().
Referenced by ug::LocalToGlobalMapperNLGS< TAlgebra >::add_local_mat_to_global(), ug::AddLocalMatrixToGlobal(), and check_all_dof().
|
inline |
returns the number of all functions
References m_CplMat, and ug::VariableArray2< T, T_ordering >::num_rows().
Referenced by ug::LocalToGlobalMapperNLGS< TAlgebra >::add_local_mat_to_global(), ug::AddLocalMatrixToGlobal(), and check_all_fct().
|
inline |
returns the number of dofs for the currently accessible (restricted) function
References m_CplMat, m_pColFuncMap, m_pRowFuncMap, and ug::VariableArray2< T, T_ordering >::num_cols().
Referenced by check_dof(), and ug::operator<<().
|
inline |
returns the number of currently accessible (restricted) functions
References m_CplMatAcc, m_pColFuncMap, ug::VariableArray2< T, T_ordering >::num_cols(), and ug::FunctionIndexMapping::num_fct().
Referenced by check_fct(), and ug::operator<<().
|
inline |
returns the number of dofs for the currently accessible (restricted) function
References m_CplMat, m_pRowFuncMap, and ug::VariableArray2< T, T_ordering >::num_rows().
Referenced by check_dof(), and ug::operator<<().
|
inline |
returns the number of currently accessible (restricted) functions
References m_CplMatAcc, m_pRowFuncMap, ug::FunctionIndexMapping::num_fct(), and ug::VariableArray2< T, T_ordering >::num_rows().
Referenced by check_fct(), and ug::operator<<().
|
inline |
access to (restricted) coupling (rowFct, rowDoF) x (colFct, colDoF)
References check_dof(), and m_CplMatAcc.
|
inline |
const access to (restricted) coupling (rowFct, rowDoF) x (colFct, colDoF)
References check_dof(), and m_CplMatAcc.
multiply all entries
References operator*=().
multiply matrix
References m_CplMat, ug::VariableArray2< T, T_ordering >::num_cols(), and ug::VariableArray2< T, T_ordering >::num_rows().
Referenced by operator*().
add matrix
References m_CplMat, m_pColIndex, m_pRowIndex, ug::VariableArray2< T, T_ordering >::num_cols(), ug::VariableArray2< T, T_ordering >::num_rows(), and UG_LOCALALGEBRA_ASSERT.
subtract matrix
References m_CplMat, m_pColIndex, m_pRowIndex, ug::VariableArray2< T, T_ordering >::num_cols(), ug::VariableArray2< T, T_ordering >::num_rows(), and UG_LOCALALGEBRA_ASSERT.
set all entries
References m_CplMat, ug::VariableArray2< T, T_ordering >::num_cols(), and ug::VariableArray2< T, T_ordering >::num_rows().
|
inline |
resize for same ind in row and column
References resize().
Referenced by ug::LSGFGlobAssembler< TDomain, TAlgebra, TExtrapolation >::AssembleJacobian(), ug::StdGlobAssembler< TDomain, TAlgebra >::AssembleJacobian(), ug::LSGFGlobAssembler< TDomain, TAlgebra, TExtrapolation >::AssembleLinear(), ug::StdGlobAssembler< TDomain, TAlgebra >::AssembleLinear(), ug::LSGFGlobAssembler< TDomain, TAlgebra, TExtrapolation >::AssembleMassMatrix(), ug::StdGlobAssembler< TDomain, TAlgebra >::AssembleMassMatrix(), ug::LSGFGlobAssembler< TDomain, TAlgebra, TExtrapolation >::AssembleStiffnessMatrix(), ug::StdGlobAssembler< TDomain, TAlgebra >::AssembleStiffnessMatrix(), ug::ActiveSet< TDomain, TAlgebra >::lagrange_mat_inv_elem(), LocalMatrix(), and resize().
|
inline |
resize for current local indices
References access_all(), m_CplMat, m_CplMatAcc, m_pColIndex, m_pRowIndex, ug::VariableArray2< T, T_ordering >::num_cols(), ug::LocalIndices::num_dof(), ug::LocalIndices::num_fct(), ug::VariableArray2< T, T_ordering >::num_rows(), and ug::VariableArray2< T, T_ordering >::resize().
add scaled matrix
References m_CplMat, m_pColIndex, m_pRowIndex, ug::MatScaleAppend(), ug::VariableArray2< T, T_ordering >::num_cols(), ug::VariableArray2< T, T_ordering >::num_rows(), s, and UG_LOCALALGEBRA_ASSERT.
Referenced by ug::LSGFGlobAssembler< TDomain, TAlgebra, TExtrapolation >::AssembleLinear(), and ug::StdGlobAssembler< TDomain, TAlgebra >::AssembleLinear().
|
inline |
access to coupling (rowFct, rowDoF) x (colFct, colDoF)
References check_all_dof(), and m_CplMat.
Referenced by ug::LocalToGlobalMapperNLGS< TAlgebra >::add_local_mat_to_global(), and ug::AddLocalMatrixToGlobal().
|
inline |
const access to coupling (rowFct, rowDoF) x (colFct, colDoF)
References check_all_dof(), and m_CplMat.
|
protected |
|
protected |
Referenced by access_all(), access_by_map(), num_col_fct(), num_row_fct(), operator()(), and resize().
|
protected |
Column Access Mapping.
Referenced by access_all(), access_by_map(), num_col_dof(), and num_col_fct().
|
protected |
Referenced by access_all(), get_col_indices(), operator+=(), operator-=(), resize(), and scale_append().
|
protected |
Row Access Mapping.
Referenced by access_all(), access_by_map(), num_col_dof(), num_row_dof(), and num_row_fct().
|
protected |
Referenced by access_all(), get_row_indices(), operator+=(), operator-=(), resize(), and scale_append().