ClikaRT::ops::rot90
function
rot90()
Tensor rot90(
Tensor x,
int64_t k = 1,
ClikaRT::Span<const std::int64_t> dims = {0, 1}
)
Rotate the plane spanned by dims by k x 90 degrees (k is taken mod 4; odd rotations swap the two dims' extents). Default plane {0, 1}. Copies.
Throws
ClikaRT::Error: (INVALID_ARGUMENT) whendimsdoes not name two distinct in-range dims (code_name()carries the reason).
Returns: a new tensor with the plane rotated.
Declared in ClikaRT/compute/ops.h, line 3347