Plugins
|
Classes | |
class | DemoClass |
A basic class used to demonstrate registration of classes for scripting. More... | |
Typedefs | |
typedef CPUAlgebra::matrix_type | matrix_type |
Sparse matrix type as defined in lib_algebra/cpu_algebra/sparsematrix.h. More... | |
typedef CPUAlgebra::vector_type | vector_type |
Vector type as defined in lib_algebra/cpu_algebra/vector.h. More... | |
Functions | |
number | DemoMatCompSumFast (matrix_type &m) |
number | DemoMatCompSumSlow (matrix_type &m) |
Calculates the sum of all coefficients of the given matrix and returns it. More... | |
void | DemoPluginSaysHi () |
Prints a welcome message. More... | |
number | DemoVecCompSum (vector_type &v) |
Calculates the sum of all coefficients of the given vector and returns it. More... | |
Sparse matrix type as defined in lib_algebra/cpu_algebra/sparsematrix.h.
Vector type as defined in lib_algebra/cpu_algebra/vector.h.
number ug::DemoPlugin::DemoMatCompSumFast | ( | matrix_type & | m | ) |
This implementation has O(n) if the underlying matrix has a sparse structure.
Referenced by ug::InitUGPlugin_DemoPlugin().
number ug::DemoPlugin::DemoMatCompSumSlow | ( | matrix_type & | m | ) |
Calculates the sum of all coefficients of the given matrix and returns it.
This implementation has O(n^2), even if the underlying matrix has a sparse structure. Have a look at DemoMatCompSumFast for a O(n) variant (for sparse matrices).
Referenced by ug::InitUGPlugin_DemoPlugin().
void ug::DemoPlugin::DemoPluginSaysHi | ( | ) |
Prints a welcome message.
Referenced by ug::InitUGPlugin_DemoPlugin().
number ug::DemoPlugin::DemoVecCompSum | ( | vector_type & | v | ) |
Calculates the sum of all coefficients of the given vector and returns it.
References ug::Vector< class >::size().
Referenced by ug::InitUGPlugin_DemoPlugin().