W3cubDocs

/TensorFlow C++

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)
Public attributes
out
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Public static functions
Tout(DataType x)
Structs
tensorflow::ops::Complex::Attrs

Optional attribute setters for Complex.

Public attributes

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
)

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/complex.html