bugGNU Octave - Bugs: bug #53698, Documentation of sum

 
 

bug #53698: Documentation of sum

Submitter:  Michael Leitner <mleitner>
Submitted:  Thu 19 Apr 2018 12:33:01 PM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 19 Apr 2018 03:42:37 PM UTC, comment #1: 

I clarified the documentation of sum (I hope) in this cset (http://hg.savannah.gnu.org/hgweb/octave/rev/44c0aca121cc).  Marking as fixed and closing report.

Rik <rik5>
Group administrator
Thu 19 Apr 2018 12:33:01 PM UTC, original submission:  

The documentation of sum is a bit unclear what the default summation method for single precision inputs is. This is a proposal for improvement:


--- data.cc        2018-04-19 02:00:04 -0400
+++ data_.cc        2018-04-19 14:27:01 +0200
@@ -2859,8 +2859,9 @@

 The optional @qcode{"type"} input determines the class of the variable
 used for calculations.  If the argument @qcode{"native"} is given, then
-the operation is performed in the same type as the original argument, rather
-than the default double type.
+the operation is performed in the same type as the original argument. Per
+default, the summation is performed in @qcode{"double"} type, unless the
+inputs are single precision, in which case @qcode{"native"} summation is used.

 For example:


Michael Leitner <mleitner>

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by mleitner (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-19 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code