Skip to content
fn

cube_inplace_op

→TensorImplPtr
int cube_inplace_op(const int & a)

In-place cube: writes x3x^3 back into a.

Math

ai←ai3a_i \leftarrow a_i^3

See Also

cube_op — out-of-place counterpart.

Parameters

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

Returns

TensorImplPtr

The same pointer as a.