Loading [MathJax]/extensions/tex2jax.js
Plugins
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ug::DemoPlugin Namespace Reference

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.
 
typedef CPUAlgebra::vector_type vector_type
 Vector type as defined in lib_algebra/cpu_algebra/vector.h.
 

Functions

number DemoMatCompSumFast (matrix_type &m)
 
number DemoMatCompSumSlow (matrix_type &m)
 Calculates the sum of all coefficients of the given matrix and returns it.
 
void DemoPluginSaysHi ()
 Prints a welcome message.
 
number DemoVecCompSum (vector_type &v)
 Calculates the sum of all coefficients of the given vector and returns it.
 

Typedef Documentation

◆ matrix_type

◆ vector_type

Function Documentation

◆ DemoMatCompSumFast()

number ug::DemoPlugin::DemoMatCompSumFast ( matrix_type m)

This implementation has O(n) if the underlying matrix has a sparse structure.

References ug::bridge::GetDomainSuffix().

◆ DemoMatCompSumSlow()

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).

References ug::bridge::GetDomainSuffix().

◆ DemoPluginSaysHi()

void ug::DemoPlugin::DemoPluginSaysHi ( )

Prints a welcome message.

References ug::bridge::GetDomainSuffix().

◆ DemoVecCompSum()

number ug::DemoPlugin::DemoVecCompSum ( vector_type v)

Calculates the sum of all coefficients of the given vector and returns it.