Complex data type support for dlarray

조회 수: 2 (최근 30일)
Yuanlong Zhang
Yuanlong Zhang 2020년 6월 21일
댓글: Walter Roberson 2022년 1월 22일
Hi guys,
I am wondering if it is possible to get complex variable type supported in dlarray. Currently I try to use the auto-differentiation method of matlab r2020a to optimize an optical system, but I find it would not allow me use variables as complex type for dlarray. I would like to request adding the complex type support for dlarray since it is quite common in optical optimization fields (see this paper https://arxiv.org/abs/1904.08601). This feature is already fullfilled by Tensorflow so I would guess it would also be possible for matlab to get it? Much thanks if you guys can expand dlarrary support list in the future.
Yuanlong
  댓글 수: 3
Yuanlong Zhang
Yuanlong Zhang 2020년 6월 26일
Hi Tobler,
I think most of the operations I need (and many physicists needs) would be basic operators, e.g. plus minus, multiply, dot product, and exponential. Currently I have made some functions to help calculate these operations with separable real and imaginary parts, e.g. two dlarrays (real and imaginary parts of a complex variable) are passed to one of these operators for calculation, and then the returned variables are also separated into real and imaginary parts. This method can work but would made the code much more redundant. So I would imagine if MATLB has such built-in capacity for these types of calculation it would make the life much easier.
For me I didn't find other necessary methods that do not support complex numbers.
Thanks!
Christine Tobler
Christine Tobler 2020년 6월 26일
Thank you for the detailed response, this was very helpful!

댓글을 달려면 로그인하십시오.

답변 (1개)

Raunak Gupta
Raunak Gupta 2020년 6월 24일
Hi,
The feature of using complex data type in dlarray is not supported as of now. I have brought this issue to notice of the concerned people and it might be considered in any future release.
  댓글 수: 3
Leila Ahmadi
Leila Ahmadi 2022년 1월 22일
Hi,
Does MATLAB new releases support complex data operations?
Walter Roberson
Walter Roberson 2022년 1월 22일
https://www.mathworks.com/help/deeplearning/ref/dlarray.html#mw_5a844837-dcd2-4dcc-9e4a-c3229e1f9e01 says that complex numbers are supported.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Custom Training Loops에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by