Linear Combination<T>.Subtract Method
Definition
Namespace: Numerics.NET.Curves.Generic
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.1
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.1
Overload List
Subtract( | Subtracts another LinearCombination<T> from this instance. |
Subtract( | Subtracts two linear combinations. |
Subtract(LinearCombination<T>)
Subtracts another LinearCombination<T> from this instance.
public LinearCombination<T> Subtract(
LinearCombination<T> combination
)
Parameters
- combination LinearCombination<T>
- The LinearCombination<T> to subtract from this instance.
Return Value
LinearCombination<T>A reference to this instance.
Remarks
In order to add two linear combinations, they must have the same FunctionBasis<T>. If this is not the case, an ArgumentException is thrown.
Exceptions
Argument | combination is null. |
Subtract(LinearCombination<T>, LinearCombination<T>)
Subtracts two linear combinations.
public static LinearCombination<T> Subtract(
LinearCombination<T> combination1,
LinearCombination<T> combination2
)
Parameters
- combination1 LinearCombination<T>
- The first PolynomialBase.
- combination2 LinearCombination<T>
- The second PolynomialBase.
Return Value
LinearCombination<T>A PolynomialBase that equals the second linear combination subtracted from the first.
Exceptions
Argument | combination1 is null.
-or- combination2 is null. |