I have the following question:
In one of my examples I need to compute the Singular Value Decomposition (SVD) of a negative scalar, specifically -0.7276.
In double precision, Matlab returns:
>> [U S V]=svd(-0.7276)
In MP, I obtain:
The definition of SVD states that the matrix S should have nonnegative diagonal entries. In the above example, the first two elements seem to be multiplied by -1 compared to Matlab output. While the product doesn't change, the unexpected negative sign of the singular value causes problems in subsequent code.
Is this a bug or is there an option to make it return the same output as Matlab's svd?
The 18.104.22.16867 release of the toolbox was used.
Customer support service by UserEcho