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


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

Submitted by:  None
Submitted on:  Thu 05 Jul 2018 06:17:16 AM UTC  
Category:  Documentation Severity:  2 - Minor
Priority:  3 - Low Item Group:  Documentation
Status:  Fixed Assigned to:  Kai Torben Ohlhus <siko1056>
Originator Name:  Sadi Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  4.4.0
Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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

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


>> 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>
Project MemberIn charge of this item.
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);
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>
Project MemberIn charge of this item.
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



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

Attach Files:

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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project 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.5