6. Algebraic proxy#
6.1. Matrix proxy#
With the fully discrete weak formulation
wf, we can bring it into its algebraic proxy by calling its method
mp, standing for matrix proxy,
>>> mp = wf.mp()
which is an instance of
- class MatrixProxy(wf)#
Convert self to an abstract linear system.
The linear system instance.
Convert self to an abstract nonlinear system.
The nonlinear system instance.
- pr(figsize=(12, 8))#
Print the representation, a figure, of this weak formulation.
- figsizetuple, optional
The figure size. It has no effect when the figure is over-sized. A tight configuration will be applied when it is the case. The default value is
pr method can illustrate it properly,
>>> mp.pr() <Figure size ...
6.2. Algebraic representation#
ls gives an instance of
- class MatrixProxyLinearSystem(mp, ls, mp_bc)#
nls leads to an instance of
- class MatrixProxyNoneLinearSystem(mp, mp_ls, nls)#
In this case,
mp is a linear system. Thus, we should call
ls method of it,
>>> ls = mp.ls() >>> ls.pr() <Figure size ...
Eventually, a fully discrete abstract linear system is obtained. We can send it a particular implementation which will objectivize it, for example by making matrices 2-dimensional arrays and making the vectors 1-dimensional arrays. These implementations will be introduced in the following section.
↩️ Back to Documentations.