bugGNU Octave - Bugs: bug #60878, [octave forge] (symbolic) adjoint...

 
 

bug #60878: [octave forge] (symbolic) adjoint function for numerical input

Submitter:  None
Submitted:  Sun 04 Jul 2021 01:49:22 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Duplicate Assigned to:  None
Originator Name:  Ivan Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 05 Jul 2021 02:09:37 PM UTC, comment #3: 

Thank you for the reporting back 🙂  This issue will be resolved upstream then.

Closing as duplicate.

Kai Torben Ohlhus <siko1056>
Group Member
Mon 05 Jul 2021 11:34:09 AM UTC, comment #2: 

Ok, I've created the issue at https://github.com/cbm755/octsympy/issues/1049

norealname <ivan_orlean>
Mon 05 Jul 2021 02:57:49 AM UTC, comment #1: 

Thank you for your report.  The `adjoint`-function belongs to the Matlab symbolic toolbox https://www.mathworks.com/help/symbolic/adjoint.html Thus I suggest to leave the implementation of that function with the Octave symbolic package.

The function `@sym/adjoint` of the symbolic package (v2.9.0) with SymPy (v1.5.1) does not work as transparent as in Matlab for numerical arrays.  However, with explicit type casting you can achieve the same result as the Matlab example:


>> A = magic(3);
>> X = double (adjoint (sym (A)))
X =

  -53   52  -23
   22   -8  -38
    7  -68   37


If you want to file a bug report about the missing numerical matrix input support as in Matlab, please open a new issue at the maintainers upstream repository (https://github.com/cbm755/octsympy/issues) and please give a reference to this item.

Kai Torben Ohlhus <siko1056>
Group Member
Sun 04 Jul 2021 01:49:22 PM UTC, original submission:  

Implement Matlab compatible adjoint function.

From MATLAB:
Classical adjoint (adjugate) of square matrix

Description:
X = adjoint(A) returns the Classical Adjoint (Adjugate) Matrix X of A, such that A*X = det(A)*eye(n) = X*A, where n is the number of rows in A.

I saw that there is similar function Octave Forge Symbolic package but I'm not sure if it works with numeric data.
Here it is https://octave.sourceforge.io/symbolic/function/@sym/adjoint.html

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ivan_orlean (Posted a comment)
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-07-05 siko1056 StatusWorks For Me Duplicate
        Open/ClosedOpen Closed
    2021-07-05 siko1056 CategoryOctave Function Octave Package
        StatusNone Works For Me
        Summaryimplement adjoint function [octave forge] (symbolic) adjoint function for numerical input

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code