bugGNU Octave - Bugs: bug #42149, documentation of integer variable...


bug #42149: documentation of integer variable types

Submitter:  Michael Godfrey <godfrey>
Submitted:  Sun 20 Apr 2014 02:44:11 PM UTC
Category:  Documentation Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Need Info Assigned to:  None
Originator Name:  Godfrey Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Fri 08 Mar 2024 04:19:22 PM UTC, comment #1: 

Octave has moved some commentary about program differences to https://wiki.octave.org/Differences_between_Octave_and_Matlab

That would probably be the place to mention any specific differences in ability to perform integer math between the programs.  I did transfer the 'how to tell if you're running Octave' function from Appendix D to that page. But it's not clear what the specific integer differences are that should be articulated. Easy enough for anyone to add that wiki section, or summarize things if it's detailed elsewhere.

section 4.4.1 of the manual is "Integer Arithmetic", and since at least Octave 4.0.0 appears to have remained relatively unchanged.  It does mention that octave can perform basic mathematical operations with ints and provides some caveats about overflow and rounding. This is a good place to mention anything specific to Octave's integer handling, but probably shouldn't be cluttered with Matlab/Octave differences.

I'll leave this marked as Need Info for now, as its unclear at this point what the (current version) specific differences are that should be highlighted on the wiki, and what integer handling issues should get more coverage in section 4.4.1, but lacking anything soon we can probably close this until there's a more specific request.

Nicholas Jankowski <nrjank>
Group Member
Sun 20 Apr 2014 02:44:11 PM UTC, original submission:  

I noticed that the Octave implementation of the integer
data types is much more complete and useful than the
Matlab (R2009b) implementation. (As far as I could tell
you cannot in Matlab carry out any substantial computation
in any integer modes. I just implemented computation of
the inverse of the Hilbert matrix in int64. Works fine
in Octave, cannot be done in Matlab.)

The Matlab differences are nowhere that I could find
mentioned in the Manual,
Ch 4 Numeric Data Types might be a good place to point
out the differences.

Is his dealt with somewhere that I have missed?

Somewhat off topic, it would also be helpful to have a
Chapter titled "Summary of Octave Matlab differencs"...

This could be a candidate for one of the Summer projects?

Michael Godfrey <godfrey>
Group Member


(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 nrjank (Updated the item)
  • -email is unavailable- added by godfrey (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-08-11 nrjank Severity3 - Normal 1 - Wish
        StatusNone Need Info
    2014-04-22 rik5 Carbon-CopyRemoved 72865 -
    2014-04-22 rik5 Summarydocumentation of integer variable ypes documentation of integer variable types

    Back to the top

    Powered by Savane 3.13-f762.
    Corresponding source code