# tensorplay.functional.ldexp Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.ldexp.html ```python tensorplay.functional.ldexp(input, other, *, out=None) → Tensor ``` Multiplies input by 2 ** other. $$\text{{out}}_i = \text{{input}}_i * 2^\text{{other}}_i$$ Typically this function is used to construct floating point numbers by multiplying mantissas in input with integral powers of two created from the exponents in other. Parameters: - input ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – the input tensor. - other ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – a tensor of exponents, typically integers. Keyword Arguments: out ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor), optional) – the output tensor. Example: ``` >>> tensorplay.ldexp(tensorplay.tensor([1.]), tensorplay.tensor([1])) tensor([2.]) >>> tensorplay.ldexp(tensorplay.tensor([1.0]), tensorplay.tensor([1, 2, 3, 4])) tensor([ 2., 4., 8., 16.]) ```