demo for showing ldgfunc capabilities More...
Go to the source code of this file.
Functions | |
function | demo_ldgfunc () |
demo for showing ldgfunc capabilities More... | |
function F = | demoldgfunc>f_local (einds, loc,gridbase grid, params) |
function F = | demoldgfunc>f_global (glob, params) |
demo for showing ldgfunc capabilities
Definition in file demo_ldgfunc.m.
function demo_ldgfunc | ( | ) |
demo for showing ldgfunc capabilities
idea is mainly to keep dofs and size information separate in order to easily work with vectors and matrices of dofs for efficiency.
A slower alternative can be beneficial: by using the @ldg function class, a dof-vector can be stored in the object. And hence an evaluation be performed by the subsref method as for analytical functions. So ldg-objects can be used identically as any analytical function in integration, matrix assembly, etc. As classes/methods are slower than structs, this should only be used if necessary. So most ldg operations will accept separate dof vectors/matrices and size information.
Definition at line 17 of file demo_ldgfunc.m.
function F = demoldgfunc>f_global | ( | glob, | |
params | |||
) |
Definition at line 288 of file demo_ldgfunc.m.