MCPcopy Create free account
hub / github.com/SLiCAP/SLiCAP_python / matrixEqn

Method matrixEqn

SLiCAP/SLiCAPrst.py:476–501  ·  view source on GitHub ↗

Creates a displayed matrix equation without evaluating it. :param Iv: Left hand side of the equation: vector with independent variables :type Iv: sympy.Matrix :param M: Right hand side of the equation: matrix :type M: sympy.Matrix :param Dv: Righth

(self, Iv, M, Dv, label="")

Source from the content-addressed store, hash-verified

474 return Snippet(RST, self.format)
475
476 def matrixEqn(self, Iv, M, Dv, label=""):
477 """
478 Creates a displayed matrix equation without evaluating it.
479
480 :param Iv: Left hand side of the equation: vector with independent variables
481 :type Iv: sympy.Matrix
482
483 :param M: Right hand side of the equation: matrix
484 :type M: sympy.Matrix
485
486 :param Dv: Righthand side of the equation: vector with dependent variables
487 :type Dv: sympy.Matrix
488
489 :param label: Reference label for the table. Defaults to an empty string.
490 :type label: str
491
492 :return: SLiCAP Snippet object
493 :rtype: SLiCAP.SLiCAPprotos.Snippet
494 """
495 RST = '.. math::\n'
496 if label != '':
497 RST += ' :label: ' + label + '\n'
498 RST += '\n'
499 RST += ' ' + sp.latex(roundN(Iv)) + '='
500 RST += sp.latex(roundN(M)) + '\\cdot ' + sp.latex(roundN(Dv)) + '\n\n'
501 return Snippet(RST, self.format)
502
503 def stepArray(self, stepVars, stepArray, label="", caption=""):
504 """

Callers 5

matrix.pyFile · 0.45
laplace.pyFile · 0.45
sphinx_report.pyFile · 0.45
balanced.pyFile · 0.45
dcvar.pyFile · 0.45

Calls 2

roundNFunction · 0.90
SnippetClass · 0.90

Tested by

no test coverage detected