Skip to content

MaskedArray.dot not considering mask? #3219

Closed
@tkf

Description

@tkf

masked.dot(other) is equivalent to numpy.dot(masked, other), rather than numpy.ma.dot(masked, other).

In [1]:
import numpy
a = numpy.ma.array([0, 1], mask=True)
b = numpy.ma.array([0, 1])

In [2]:
a.dot(b)
Out [2]:
1

In [3]:
numpy.ma.dot(a, b)
Out [3]:
masked_array(data = --,
             mask = True,
       fill_value = 999999)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions