Complex

Stay organized with collections Save and categorize content based on your preferences.
public final class Complex

Converts two real numbers to a complex number.

Given a tensor `real` representing the real part of a complex number, and a tensor `imag` representing the imaginary part of a complex number, this operation returns complex numbers elementwise of the form \\(a + bj\\), where a represents the `real` part and b represents the `imag` part.

The input tensors `real` and `imag` must have the same shape.

For example:

# tensor 'real' is [2.25, 3.25]
 # tensor `imag` is [4.75, 5.75]
 tf.complex(real, imag) ==> [[2.25 + 4.75j], [3.25 + 5.75j]]
 

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

Output<U>
asOutput()
Returns the symbolic handle of the tensor.
static <U extends TType, T extends TNumber> Complex<U>
create(Scope scope, Operand<T> real, Operand<T> imag, Class<U> Tout)
Factory method to create a class wrapping a new Complex operation.
Output<U>
out()

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "Complex"

Public Methods

public Output<U> asOutput ()

Returns the symbolic handle of the tensor.

Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

public static Complex<U> create (Scope scope, Operand<T> real, Operand<T> imag, Class<U> Tout)

Factory method to create a class wrapping a new Complex operation.

Parameters
scope current scope
Returns
  • a new instance of Complex

public Output<U> out ()