bugGNU Octave - Bugs: bug #38684, embedded.cc demo of apendix A.3...

 
 

bug #38684: embedded.cc demo of apendix A.3 from manual gives an error

Submitted by:  A.R. Burgers <arb>
Submitted on:  Mon 08 Apr 2013 06:52:44 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Documentation
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.6.4Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 09 Apr 2013 11:18:01 PM UTC, comment #3:

I backported the working example from 3.7.2+ to the stable branch (http://hg.savannah.gnu.org/hgweb/octave/rev/27a6bb1a2f74). The fix will show up in 3.6.5 if there is another stable release or in 3.8.0 if the version number is incremented.

Rik <rik5>
Project Administrator
Tue 09 Apr 2013 06:51:36 AM UTC, comment #2:

The embedded.cc in 3.6.4 manual seems to be outdated.
It is corrected in 3.7.2+ (development source) manual.

//embedded.cc in 3.7.2+ (development source) manual

The above works correctly under 3.6.4.

Tatsuro MATSUOKA <tmacchant>
Mon 08 Apr 2013 10:04:58 PM UTC, comment #1:

The problem is that the underlying function that is called, gcd, no longer accepts a matrix as input.

The correct resolution for this is to rewrite embedded.cc to use a different function so we can still demonstrate the construction of a matrix and the use of feval.

Rik <rik5>
Project Administrator
Mon 08 Apr 2013 06:52:44 PM UTC, original submission:

The embedded.cc demo build fine, but reports an error on execution.

$ mkoctfile --link-stand-alone embedded.cc -o embedded

user@P7028 ~/tmp
$ ./embedded
GCD of [10, 15] is error: Invalid call to gcd. Correct usage is:

-- Loadable Function: G = gcd (A1, A2, ...)
-- Loadable Function: [G, V1, ...] = gcd (A1, A2, ...)

A.R. Burgers <arb>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #27812:  embedded.cc added by arb (898B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tmacchant (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by arb (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 09 Apr 2013 11:18:01 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Mon 08 Apr 2013 10:04:58 PM UTCrik5Item GroupIncorrect Result=>Documentation
      StatusNone=>Confirmed
    Mon 08 Apr 2013 06:52:44 PM UTCarbAttached File-=>Added embedded.cc, #27812

    Back to the top


    Powered by Savane 3.1-cleanup1