# tensorflow::ops::Complex

#include <math_ops.h>

Converts two real numbers to a complex number.

## Summary

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]]

Arguments:

Returns:

### Constructors and Destructors

Complex(const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag)
Complex(const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag, const Complex::Attrs & attrs)

operation
out

### Public functions

node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

Tout(DataType x)

### Structs

tensorflow::ops::Complex::Attrs

Optional attribute setters for Complex.

## Public attributes

### operation

Operation operation

### out

::tensorflow::Output out

## Public functions

### Complex

Complex(
const ::tensorflow::Scope & scope,
::tensorflow::Input real,
::tensorflow::Input imag
)

### Complex

Complex(
const ::tensorflow::Scope & scope,
::tensorflow::Input real,
::tensorflow::Input imag,
const Complex::Attrs & attrs
)

### node

::tensorflow::Node * node() const

### operator::tensorflow::Input

operator::tensorflow::Input() const

### operator::tensorflow::Output

operator::tensorflow::Output() const

## Public static functions

### Tout

Attrs Tout(
DataType x
)
[{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"Missing the information I need" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"Too complicated / too many steps" },{ "type": "thumb-down", "id": "outOfDate", "label":"Out of date" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"Samples / code issue" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }]
[{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }]