LinearCombination.Add Method

Definition

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Add(LinearCombination) Adds another LinearCombination to this instance.
Add(Double, LinearCombination) Adds a multiple of another LinearCombination to this instance.
Add(LinearCombination, LinearCombination) Adds two linear combinations.

Add(LinearCombination)

Adds another LinearCombination to this instance.
C#
public LinearCombination Add(
	LinearCombination combination
)

Parameters

combination  LinearCombination
The LinearCombination to add to this instance.

Return Value

LinearCombination
A 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

ArgumentNullExceptioncombination is null.

Add(Double, LinearCombination)

Adds a multiple of another LinearCombination to this instance.
C#
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

LinearCombination
A 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

ArgumentNullExceptioncombination is null.
ArgumentException This instance and combination do not have the same Basis.

Add(LinearCombination, LinearCombination)

Adds two linear combinations.
C#
public static LinearCombination Add(
	LinearCombination combination1,
	LinearCombination combination2
)

Parameters

combination1  LinearCombination
The first PolynomialBase.
combination2  LinearCombination
The second PolynomialBase.

Return Value

LinearCombination
A PolynomialBase that is the sum of the two operands.

Exceptions

ArgumentNullExceptioncombination1 is null.

-or-

combination2 is null.

See Also