Array Functions<T>.Truncate Method
Definition
Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Truncate( | Rounds each element of a span towards zero. |
Truncate( | Rounds each element of a span towards zero. |
Truncate<TStorage>(Int32, TStorage, TStorage) | Rounds each element of an array towards zero. |
Truncate(Int32, ReadOnlySpanSlice<T>, SpanSlice<T>)
Rounds each element of a span towards zero.
public void Truncate(
int length,
ReadOnlySpanSlice<T> operand,
SpanSlice<T> result
)
Parameters
- length Int32
- The number of elements in the span.
- operand ReadOnlySpanSlice<T>
- The span that holds the operands.
- result SpanSlice<T>
- The span that holds the results.
Truncate<TStorage>(Int32, TStorage, TStorage)
Rounds each element of an array towards zero.
public void Truncate<TStorage>(
int length,
TStorage operand,
TStorage result
)
where TStorage : Object, IStorageSlice<T>
Parameters
- length Int32
- The number of elements in the array.
- operand TStorage
- The span that holds the operands.
- result TStorage
- The span that holds the results.
Type Parameters
- TStorage
Truncate(Int32, ReadOnlySpan<T>, Int32, Span<T>, Int32)
Rounds each element of a span towards zero.
public abstract void Truncate(
int length,
ReadOnlySpan<T> operand,
int stride,
Span<T> result,
int resultStride
)