octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #56323] Default (c)transpose for classdef and


From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #56323] Default (c)transpose for classdef and old style classes
Date: Wed, 15 May 2019 08:46:50 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?56323>

                 Summary: Default (c)transpose for classdef and old style
classes
                 Project: GNU Octave
            Submitted by: siko1056
            Submitted on: Wed 15 May 2019 02:46:47 PM CEST
                Category: Interpreter
                Severity: 2 - Minor
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: Patch Submitted
             Assigned to: siko1056
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: Any

    _______________________________________________________

Details:

When creating arrays of old style objects, as shown by the Blork class 

https://hg.savannah.gnu.org/hgweb/octave/file/15d3f8857326/test/classes/%40Blork


Matlab R2019a is able to (conjugate) transpose them without overloading
(c)transpose, what essentially is a modification of the array shape.


x1 = Blork ();
x2 = [x1 x1];
x2';
error: ctranspose method not defined for Blork class
x2.';
error: transpose method not defined for Blork class


The same applies for classdef classes, using the plist_t2 class as example 
https://hg.savannah.gnu.org/hgweb/octave/file/15d3f8857326/test/classdef


bla(1) = plist_t2;
bla(2) = plist_t2;
bla'
error: ctranspose method not defined for plist_t2 class
bla.'
error: transpose method not defined for plist_t2 class


The fix for the old style classes is rather simple and avoids slowdown by not
using m-files for standard behavior.  Thus I would like to include it into
5.2.0.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 15 May 2019 02:46:47 PM CEST  Name: class_ctranspose.patch  Size:
4KiB   By: siko1056

<http://savannah.gnu.org/bugs/download.php?file_id=46912>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56323>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]