bugGNU Octave - Bugs: bug #52312, Confusing error message for...

 
 

bug #52312: Confusing error message for "\" (left division)

Submitted by:  Doug Strain <saintrain>
Submitted on:  Mon 30 Oct 2017 07:24:35 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Missed Error or Warning
Status: InvalidAssigned to: None
Originator Name: saintrainOpen/Closed: Closed
Release: 4.2.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Thu 02 Nov 2017 11:59:40 PM UTC, comment #6:

No worries, I like stories with happy endings. I've closed the report as nothing needs to be done.

Rik <rik5>
Project Administrator
Thu 02 Nov 2017 07:56:57 PM UTC, comment #5:

Boy! Did I screw up. I apparently conflated two correct error messages.

I'm really pleased and impressed how quickly my (moronic) concerns were addressed.

I just dropped $20 in the "Screw-Up Jar" (https://www.gnu.org/software/octave/donate.html) so, no hard feelings?

Humbly
Doug Strain

P.s. How do I mark this thread 'Solved'. Or better yet, obliterate it entirely?

Doug Strain <saintrain>
Tue 31 Oct 2017 08:17:40 PM UTC, comment #4:

I would still like to understand how it is that the error message was wrong.

Could you please post a complete example that generates the incorrect error?

This is with 4.2.1, correct?

You say K and F are 2-D matrices and U is a vector.

Did you mean that U(i) was a vector?

What is i (freedofs in your original example)? A 5-element vector?

It would probably help to just provide a complete example that we can run to duplicate the issue.

John W. Eaton <jwe>
Project Administrator
Tue 31 Oct 2017 05:35:42 PM UTC, comment #3:

As near as I can figure, this is equivalent code. U,K,F are all 2-D matrices. The idx is a scalar. It works for me in 4.2.1 as shown below.

The error message is correct about it being related to the '=' operator.

Rik <rik5>
Project Administrator
Tue 31 Oct 2017 04:34:02 PM UTC, comment #2:

Sorry.

K and F are 2-D matrices; U (inadvertently) a vector. The K\F worked just fine; the reported problem wasn't with the "\".

The problem was that I tried to assign a 2D result to a 1D vector.
U(i) = K(i,i) \ F(i,:)
should have read
U(i,:) = K(i,i) \ F(i,:)

But that was reported as an error with the "\", not with the "=".

Not a biggee, just confusing.

Doug Strain <saintrain>
Tue 31 Oct 2017 04:30:47 AM UTC, comment #1:

Could you present a simpler example? There is no mention of what U, K, F, or freedofs are.

Rik <rik5>
Project Administrator
Mon 30 Oct 2017 07:24:35 PM UTC, original submission:

Hi!

For the code
I got the message

But the "operator" in error wasn't the "\", it was the "=".

Doug Strain <saintrain>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by saintrain (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 02 Nov 2017 11:59:40 PM UTCrik5StatusWorks For Me=>Invalid
      Open/ClosedOpen=>Closed
    Tue 31 Oct 2017 05:35:42 PM UTCrik5StatusNeed Info=>Works For Me
    Tue 31 Oct 2017 04:30:47 AM UTCrik5StatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1