Skip to content

MaskedArray.dot leaks masked values #5185

@abalkin

Description

@abalkin
>>> numpy.__version__
'1.9.0'
>>> x = numpy.ma.masked_array([1., 3e10, 3], mask=[0, 1, 0])
>>> x.dot(x)
9e+20

Note that this is a regression from oldnumeric:

>>> import numpy.oldnumeric.ma
>>> numpy.__version__
'1.8.1'
>>> x = numpy.oldnumeric.ma.masked_array([1., 3e10, 3], mask=[0, 1, 0])
>>> x.dot(x)
array(10.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions