Matrix<T>.FillMissingValuesInto Method

Definition

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

Overload List

FillMissingValuesInto(T, Matrix<T>) Replaces all missing values in a matrix with the specified value.
FillMissingValuesInto(Vector<T>, DimensionType, Matrix<T>) Replaces all missing values in each row or column with the corresponding value from a vector.
FillMissingValuesInto(DimensionType, Direction, Matrix<T>, Int32) Replaces all missing values in each row or column with the previous or next non-missing value.

FillMissingValuesInto(T, Matrix<T>)

Replaces all missing values in a matrix with the specified value.
C#
public Matrix<T> FillMissingValuesInto(
	T value,
	Matrix<T> result
)

Parameters

value  T
The replacement value.
result  Matrix<T>
The matrix that is to hold the result. May be null.

Return Value

Matrix<T>
The result.

FillMissingValuesInto(Vector<T>, DimensionType, Matrix<T>)

Replaces all missing values in each row or column with the corresponding value from a vector.
C#
public Matrix<T> FillMissingValuesInto(
	Vector<T> values,
	DimensionType dimension,
	Matrix<T> result
)

Parameters

values  Vector<T>
A vector that contains the replacement values.
dimension  DimensionType
The dimension to fill with a single value.
result  Matrix<T>
The matrix that is to hold the result. May be null.

Return Value

Matrix<T>
The result.

FillMissingValuesInto(DimensionType, Direction, Matrix<T>, Int32)

Replaces all missing values in each row or column with the previous or next non-missing value.
C#
public Matrix<T> FillMissingValuesInto(
	DimensionType dimension,
	Direction direction,
	Matrix<T> result,
	int limit = 1073741824
)

Parameters

dimension  DimensionType
The dimension along which values should be filled.
direction  Direction
Specifies whether missing values should be replaced by the previous (Forward) or next (Backward) non-missing values.
result  Matrix<T>
The matrix that is to hold the result. May be null.
limit  Int32  (Optional)
The maximum number of successive missing values that may be filled.

Return Value

Matrix<T>
The result.

See Also