Class Matrix
- Namespace
- xFunc.Maths.Expressions.Matrices
- Assembly
- xFunc.Maths.dll
Represents a matrix expression.
public class Matrix : IExpression
- Inheritance
-
Matrix
- Implements
- Inherited Members
- Extension Methods
Constructors
Matrix(ImmutableArray<Vector>)
Initializes a new instance of the Matrix class.
public Matrix(ImmutableArray<Vector> vectors)
Parameters
vectorsImmutableArray<Vector>The vectors.
Exceptions
- ArgumentNullException
vectorsis null.
Matrix(Vector[])
Initializes a new instance of the Matrix class.
public Matrix(Vector[] vectors)
Parameters
vectorsVector[]The vectors.
Exceptions
- ArgumentNullException
vectorsis null.
Properties
this[int]
Gets or sets the Vector at the specified index.
public Vector this[int index] { get; }
Parameters
indexintThe index.
Property Value
Vectors
Gets the vectors.
public ImmutableArray<Vector> Vectors { get; }
Property Value
Methods
Analyze<TResult>(IAnalyzer<TResult>)
Analyzes the current expression.
public TResult Analyze<TResult>(IAnalyzer<TResult> analyzer)
Parameters
analyzerIAnalyzer<TResult>The analyzer.
Returns
- TResult
The analysis result.
Type Parameters
TResultThe type of the result.
Analyze<TResult, TContext>(IAnalyzer<TResult, TContext>, TContext)
Analyzes the current expression.
public TResult Analyze<TResult, TContext>(IAnalyzer<TResult, TContext> analyzer, TContext context)
Parameters
analyzerIAnalyzer<TResult, TContext>The analyzer.
contextTContextThe context.
Returns
- TResult
The analysis result.
Type Parameters
TResultThe type of the result.
TContextThe type of additional parameter for analyzer.
Clone(ImmutableArray<Vector>?)
Clones this instance of the IExpression.
public IExpression Clone(ImmutableArray<Vector>? vectors = null)
Parameters
vectorsImmutableArray<Vector>?The list of arguments.
Returns
- IExpression
Returns the new instance of IExpression that is a clone of this instance.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Execute()
Executes this expression. Don't use this method if your expression has variables or user-functions.
public object Execute()
Returns
- object
A result of the execution.
Execute(ExpressionParameters?)
Executes this expression.
public object Execute(ExpressionParameters? parameters)
Parameters
parametersExpressionParametersAn object that contains all parameters and functions for expressions.
Returns
- object
A result of the execution.
- See Also
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
ToString(IFormatter)
Returns a string that represents this instance.
public string ToString(IFormatter formatter)
Parameters
formatterIFormatterThe formatter.