tf.math.conj
Stay organized with collections
Save and categorize content based on your preferences.
Returns the complex conjugate of a complex number.
tf.math.conj(
x, name=None
)
Given a tensor input
of complex numbers, this operation returns a tensor of
complex numbers that are the complex conjugate of each element in input
. The
complex numbers in input
must be of the form \(a + bj\), where a is the
real part and b is the imaginary part.
The complex conjugate returned by this operation is of the form \(a - bj\).
For example:
tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
tf.math.conj(input) ==> [-2.25 - 4.75j, 3.25 - 5.75j]
If x
is real, it is returned unchanged.
Args |
x
|
Tensor to conjugate. Must have numeric or variant type.
|
name
|
A name for the operation (optional).
|
Returns |
A Tensor that is the conjugate of x (with the same type).
|
Raises |
TypeError
|
If x is not a numeric tensor.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.math.conj\n\n|----------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| [TensorFlow 1 version](/versions/r1.15/api_docs/python/tf/math/conj) | [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.0.0/tensorflow/python/ops/math_ops.py#L3424-L3466) |\n\nReturns the complex conjugate of a complex number.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.conj`](/api_docs/python/tf/math/conj), [`tf.compat.v1.math.conj`](/api_docs/python/tf/math/conj)\n\n\u003cbr /\u003e\n\n tf.math.conj(\n x, name=None\n )\n\nGiven a tensor `input` of complex numbers, this operation returns a tensor of\ncomplex numbers that are the complex conjugate of each element in `input`. The\ncomplex numbers in `input` must be of the form \\\\(a + bj\\\\), where *a* is the\nreal part and *b* is the imaginary part.\n\nThe complex conjugate returned by this operation is of the form \\\\(a - bj\\\\).\n\n#### For example:\n\ntensor 'input' is \\[-2.25 + 4.75j, 3.25 + 5.75j\\]\n=================================================\n\ntf.math.conj(input) ==\\\u003e \\[-2.25 - 4.75j, 3.25 - 5.75j\\]\n\nIf `x` is real, it is returned unchanged.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------|-----------------------------------------------------------|\n| `x` | `Tensor` to conjugate. Must have numeric or variant type. |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Tensor` that is the conjugate of `x` (with the same type). ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|-------------|---------------------------------|\n| `TypeError` | If `x` is not a numeric tensor. |\n\n\u003cbr /\u003e"]]