MMatrix Class

Symbolic representation of a matrix.

Definition

Namespace: SMath.Math.Symbolic
Assembly: SMath.Math.Symbolic (in SMath.Math.Symbolic.dll) Version: 1.73.9126.0
C#
public sealed class MMatrix : MItem
Inheritance
Object    MItem    MMatrix

Constructors

MMatrix(MItem) Constructor of the MMatrix class to copy data from the given MItem instance.
MMatrix(MItem, Boolean, Boolean) Constructor of the MMatrix which uses given items as a matrix content.
MMatrix(Boolean, Boolean, Int32, Int32) Constructor of the MMatrix which allocates matrix items according to given arguments.

Properties

ArgsCount Number of children of the expression component. Can get values:
  • "0" - for the Operand;
  • "1" - for the Bracket;
  • "1" or "2" - for the Operator;
  • More then "1" or equal - for the Function.

(Inherited from MItem)
Cols Number of columns in the matrix.
Inverse Flag indicating the inverse element.
(Inherited from MItem)
ItemInt32 Element by its ordinal number.
(Inherited from MItem)
ItemInt32, Int32 A matrix element specified by row and column.
Items Dependent elements of the current mathematical element.
(Inherited from MItem)
Negative Sign of a mathematical element.
(Inherited from MItem)
Rows Number of rows in the matrix.
Text Text value of the expression component.
(Inherited from MItem)
Type Type of the expression component.
(Inherited from MItem)
Value Arithmetic value of the object.
(Inherited from MItem)

Methods

Alg Algebraic matrix complement.
CheckForVar

Determines whether the specified mathematical expression contains any user defined variable.

First checks item and then recursively checks all elements of its Items collection.

ContainsSymbolicEntries Determines if current mathematical expression contains undefined variables.
(Inherited from MItem)
ContainsUnits Checking a symbolic mathematical expression for the presence of units of measurement in it.
(Inherited from MItem)
ContainsVariable Determines whether an expression contains any variable.
(Inherited from MItem)
ContainsVariable(ListMItem) Checking a symbolic mathematical expression for the presence of variables in it.
(Inherited from MItem)
Determinant Determinant of the matrix.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from MItem)
GetDenominatorList Get all the elements of a negative power (the items in the denominator).
(Inherited from MItem)
GetHashCodeServes as the default hash function.
(Inherited from MItem)
GetInverse Inversion of a general matrix.
GetItemWithOptions Obtaining a mathematical element without taking into account its sign and/or inverse.
(Inherited from MItem)
GetLength Gets the specified dimension of the matrix: num == 0 denotes rows, any other value of num denotes columns.
GetNumeratorList Get all elements of positive power (elements located in the numerator).
(Inherited from MItem)
GetRevertedEnumerator Enumerates the items of the mathematical expression in depth-first order: starts from this MItem and then recurses into the elements of Items collection starting from its first item.
(Inherited from MItem)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetVariablesList Getting a list of variables represented in the mathematical expression.
(Inherited from MItem)
IsDouble Method that determines whether the mathematical element is a number or not.
(Inherited from MItem)
MathEqual Checks the values of MItem expressions for equality.
(Inherited from MItem)
Minor Matrix minor.
Rank Matrix rank.
ToDouble Converting the element to a number.
(Inherited from MItem)
ToEntry Converts current symbolic equation to Entry object.
(Inherited from MItem)
ToRevertedList

Retrieves the list of primitives in reverse order. It is guaranteed that recursion is not used.

  Tip

This method may be a bit slower than ToTermsList and the resulting list has reverted order of items but it does not use recursion which prevents from StackOverflowException. This method is strongly recommended for complex expressions.


(Inherited from MItem)
ToString Converts this MItem to its string representation.
(Inherited from MItem)
ToTerms Converts current symbolic equation to the array of Terms.
(Inherited from MItem)
ToTermsList Converts the expression component to a list of terms in straight order.
(Inherited from MItem)
Trace Matrix trace.
Transpose Matrix transposition.
VMinor Non-computed matrix minor (determinant).
VMultiplication

Computes the cross product of two vectors in three-dimensional Euclidean space.

Throws GeneralException unless both this MMatrix and value are three-dimensional vectors.

Operators

Addition(MItem, MMatrix) Adds MMatrix object to MItem object.
Addition(MMatrix, MItem) Adds MItem object to MMatrix object.
Addition(MMatrix, MMatrix) Adds two MMatrix objects.
ExclusiveOr(MMatrix, MItem) Raises MMatrix object to the power of MItem object.
Multiply(MItem, MMatrix) Multiplies MMatrix object by MItem object.
Multiply(MMatrix, MItem) Multiplies MItem object by MMatrix object.
Multiply(MMatrix, MMatrix) Multiplies two MMatrix objects.

See Also