ManagedArrayFunctions.Truncate Method

Definition

Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

Truncate(Int32, ReadOnlySpanSlice<T>, SpanSlice<T>) Rounds each element of a span towards zero.
Truncate(Int32, ReadOnlySpan<Double>, Int32, Span<Double>, Int32) Rounds each element of a span towards zero.
Truncate<TStorage>(Int32, TStorage, TStorage) Rounds each element of an array towards zero.

Truncate(Int32, ReadOnlySpan<Double>, Int32, Span<Double>, Int32)

Rounds each element of a span towards zero.
C#
public override void Truncate(
	int length,
	ReadOnlySpan<double> operand,
	int stride,
	Span<double> result,
	int resultStride
)

Parameters

length  Int32
The number of elements in the span.
operand  ReadOnlySpan<Double>
The span that holds the operands.
stride  Int32
The distance between elements in operand.
result  Span<Double>
The span that holds the results.
resultStride  Int32
The distance between elements in result.

See Also