octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53698] Documentation of sum


From: Michael Leitner
Subject: [Octave-bug-tracker] [bug #53698] Documentation of sum
Date: Thu, 19 Apr 2018 08:33:02 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

URL:
  <http://savannah.gnu.org/bugs/?53698>

                 Summary: Documentation of sum
                 Project: GNU Octave
            Submitted by: mleitner
            Submitted on: Thu 19 Apr 2018 12:33:01 PM UTC
                Category: Documentation
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Documentation
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

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:





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53698>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]