Skip to content
fn

floor_inplace_op

→TensorImplPtr
int floor_inplace_op(const int & a)

In-place floor: writes ⌊x⌋\lfloor x \rfloor back into a.

Math

ai←⌊ai⌋a_i \leftarrow \lfloor a_i \rfloor

See Also

floor_op — out-of-place counterpart.

Parameters

aTensorImplPtr
Tensor to floor in place. Must be non-null.

Returns

TensorImplPtr

The same pointer as a.