Tensor.Ceiling<T> Method

Computes the smallest integer that is not greater than the elements of a tensor.

DefinitionPermalink

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.5
C#
public static Tensor<T> Ceiling<T>(
	Tensor<T> value,
	Tensor<T>? result = null,
	Tensor<bool>? mask = null,
	TensorElementOrder order = TensorElementOrder.Automatic
)

ParametersPermalink

value  Tensor<T>
A tensor.
result  Tensor<T>  (Optional)
Optional. The tensor that is to hold the result. May be null.
mask  Tensor<Boolean>  (Optional)
Optional. A boolean tensor that specifies for which elements should be included in the operation. If null (the default), the operation is applied everywhere.
order  TensorElementOrder  (Optional)
Optional. If result is null, the desired ordering in memory of the result.

Type ParametersPermalink

T
The type of the elements of the tensor.

Return ValuePermalink

Tensor<T>
A tensor of the same shape as value whose elements are equal to the rounded up value of the corresponding elements of value

ExceptionsPermalink

ArgumentNullException

value is null.

See AlsoPermalink