# FunctionBasis.FillValues Method

## Definition

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

 FillValues(Double, DenseVector) Fills a dense vector with the values of the member functions of a FunctionBasis at a specified value. FillValues(Vector, DenseMatrix) Fills the rows of a DenseMatrix with the values of the member functions of a FunctionBasis evaluated for each element in a Vector.

## FunctionBasis.FillValues(Double, DenseVector<Double>)

Fills a dense vector with the values of the member functions of a FunctionBasis at a specified value.
C#
``````public abstract void FillValues(
double x,
DenseVector<double> values
)``````

#### Parameters

x  Double
The value at which to evaluate the member functions.
values  DenseVector<Double>
A dense vector with length equal to the number of functions in this FunctionBasis.

### Exceptions

 ArgumentNullException values is null. DimensionMismatchException The length of values is less than the number of member functions in this FunctionBasis.

## FunctionBasis.FillValues(Vector<Double>, DenseMatrix<Double>)

Fills the rows of a DenseMatrix<T> with the values of the member functions of a FunctionBasis evaluated for each element in a Vector.
C#
``````public void FillValues(
Vector<double> xValues,
DenseMatrix<double> values
)``````

#### Parameters

xValues  Vector<Double>
A vector containing the values at which to evaluate the member functions.
values  DenseMatrix<Double>
A DenseMatrix<T> with number of columns greater than or equal to the number of functions in this FunctionBasis, and number of rows greater than or equal to the number of elements in xValues.

### Exceptions

 ArgumentNullException xValues is null. -or-values is null. DimensionMismatchException The number of columns of values is not equal to the number of member functions in this FunctionBasis-or- the number of rows of values does not equal the number of elements in values.