Linear Combination.Add Method
Definition
Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Add( | Adds another LinearCombination to this instance. |
Add( | Adds a multiple of another LinearCombination to this instance. |
Add( | Adds two linear combinations. |
Add(LinearCombination)
Adds another LinearCombination to this instance.
public LinearCombination Add(
LinearCombination combination
)
Parameters
- combination LinearCombination
- The LinearCombination to add to this instance.
Return Value
LinearCombinationA reference to this instance.
Remarks
In order to add two linear combinations, they must have the same FunctionBasis. If this is not the case, an ArgumentException is thrown.
Exceptions
Argument | combination is null. |
Add(Double, LinearCombination)
Adds a multiple of another LinearCombination to this instance.
public virtual LinearCombination Add(
double factor,
LinearCombination combination
)
Parameters
- factor Double
- Multiplier for the second LinearCombination.
- combination LinearCombination
- The LinearCombination to add to this instance.
Return Value
LinearCombinationA reference to this instance.
Remarks
In order to add two linear combinations, they must have the same FunctionBasis. If this is not the case, an ArgumentException is thrown.
Exceptions
Argument | combination is null. |
Argument | This instance and combination do not have the same Basis. |
Add(LinearCombination, LinearCombination)
Adds two linear combinations.
public static LinearCombination Add(
LinearCombination combination1,
LinearCombination combination2
)
Parameters
- combination1 LinearCombination
- The first PolynomialBase.
- combination2 LinearCombination
- The second PolynomialBase.
Return Value
LinearCombinationA PolynomialBase that is the sum of the two operands.
Exceptions
Argument | combination1 is null. -or- combination2 is null. |