Package pygeodesy :: Module fmath :: Class Fdot
[frames] | no frames]

Class Fdot

object --+    
         |    
      Fsum --+
             |
            Fdot

Precision dot product.

Instance Methods
 
__init__(self, a, *b)
New Fdot precision dot product sum(a[i] * b[i] for i=0..len(a)).

Inherited from Fsum: __add__, __iadd__, __imul__, __isub__, __len__, __mul__, __str__, __sub__, copy, fadd, fadd_, fcopy, fmul, fsub, fsub_, fsum, fsum2_, fsum_

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables

Inherited from Fsum: _fsum2_

Properties

Inherited from object: __class__

Method Details

__init__(self, a, *b)
(Constructor)

 

New Fdot precision dot product sum(a[i] * b[i] for i=0..len(a)).

Parameters:
  • a - List, sequence, tuple, etc. (scalars).
  • b - All positional arguments (scalars).
Raises:
  • OverflowError - Partial 2sum overflow.
  • ValueError - Unequal len(a) and len(b).
Overrides: object.__init__

See Also: Function fdot and method Fsum.fadd.