patchGNU Octave - Patches: patch #8262, Make issymetric work on...

 
 

patch #8262: Make issymetric work on non-numeric matrices

Submitter:  Arun Giridhar <arungiridhar>
Submitted:  Wed 18 Dec 2013 12:19:37 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Wont Do Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 21 Apr 2015 03:58:26 PM UTC, comment #1: 

It may be overly restrictive, but it is also Matlab compatible.  I also wouldn't think to use issymmetric on a char matrix since it is more interesting for numeric matrices where it says something about the solution.  If you really want to there is always the workaround of casting the char to a numeric matrix before calling issymetric


TF = issymetric (double (char_matrix));


Rik <rik5>
Group administrator
Wed 18 Dec 2013 12:19:37 AM UTC, original submission:  

The function issymetric worked only on numeric matrices, which is too restrictive, because a non-numeric matrix can be called symmetric if it equals its own transpose, such as ["prose"; "razor"; "ozone"; "sonic"; "erect"]. I've changed the code to include character matrices (patch attached).

Arun Giridhar <arungiridhar>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #30033:  issymmetric.diff added by arungiridhar (2KiB - text/x-patch - mercurial patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by arungiridhar (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 logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-04-21 rik5 StatusNone Wont Do
        Open/ClosedOpen Closed
    2013-12-18 arungiridhar Attached File- Added issymmetric.diff, #30033

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code