LinearCombination<T> Constructor

Definition

Namespace: Numerics.NET.Curves.Generic
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.0

Overload List

LinearCombination<T>(FunctionBasis<T>)

Constructs a new LinearCombination<T> object.
C#
public LinearCombination(
	FunctionBasis<T> basis
)

Parameters

basis  FunctionBasis<T>
The FunctionBasis<T> whose member functions this LinearCombination<T> is a linear combination of.

Exceptions

ArgumentNullExceptionbasis is null.

LinearCombination<T>(FunctionBasis<T>, T[])

Constructs a new LinearCombination<T> object.
C#
public LinearCombination(
	FunctionBasis<T> basis,
	T[] coefficients
)

Parameters

basis  FunctionBasis<T>
The FunctionBasis<T> whose member functions this LinearCombination<T> is a linear combination of.
coefficients  T[]
A T array that contains the coefficients to the functions in basis.

Exceptions

ArgumentNullExceptionbasis is null.

-or-

coefficients is null.

DimensionMismatchException The length of coefficients is not equal to the size of basis .

LinearCombination<T>(FunctionBasis<T>, Vector<T>)

Constructs a new LinearCombination<T> object.
C#
public LinearCombination(
	FunctionBasis<T> basis,
	Vector<T> coefficients
)

Parameters

basis  FunctionBasis<T>
The FunctionBasis<T> whose member functions this LinearCombination<T> is a linear combination of.
coefficients  Vector<T>
A T array that contains the coefficients to the functions in basis.

Exceptions

ArgumentNullExceptionbasis is null.

-or-

coefficients is null.

DimensionMismatchException The length of coefficients is not equal to the size of basis .

See Also