bugGNU Octave - Bugs: bug #54248, error report on non-square...

 
 

bug #54248: error report on non-square matrices to the power is wrong

Submitter:  None
Submitted:  Thu 05 Jul 2018 06:17:16 AM UTC
   
 
Category:  Documentation Severity:  2 - Minor
Priority:  3 - Low Item Group:  Documentation
Status:  Fixed Assigned to:  siko1056
Originator Name:  Sadi Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.4.0
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 05 Jul 2018 09:35:12 AM UTC, comment #2: 

The following change is hopefully much clearer for all permitted power cases:

https://hg.savannah.gnu.org/hgweb/octave/rev/986ba7f21a85


>> 2^rand(2,3)
error: for x^y, only square matrix arguments are permitted and one argument must be scalar.  Use .^ for elementwise power.


Kai Torben Ohlhus <siko1056>
Group Member
Thu 05 Jul 2018 07:56:00 AM UTC, comment #1: 

Confirmed, a small example to reproduce the error message in [1] which might be missleading, even if the matrix was labelled `x`:


A = rand (4,2);
A^2
error: for x^A, A must be a square matrix.  Use .^ for elementwise power.


[1] https://hg.savannah.gnu.org/hgweb/octave/file/5f9fa229cc8a/libinterp/corefcn/xpow.cc#l67

Kai Torben Ohlhus <siko1056>
Group Member
Thu 05 Jul 2018 06:17:16 AM UTC, original submission:  

# "error: for x^A, A must be a square matrix.  Use .^ for  elementwise power."

# This shoulde be: x must be a square matrix

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 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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-07-05 siko1056 StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2018-07-05 siko1056 CategoryNone Documentation
        Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        Item GroupOther Documentation
        StatusNone In Progress
        Assigned toNone siko1056

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code