Skip to contents

Alias for t_scale() with Tensor Toolbox naming.

Usage

scale(x, ...)

# S3 method for class 'Tensor'
scale(x, s, dims, ...)

Arguments

x

A Tensor object.

...

For tensors, pass s = and dims =. For non-tensors, arguments are forwarded to base::scale().

s

Scaling tensor, matrix, or vector.

dims

Modes of x that s scales along.

Value

A scaled Tensor.