MCPcopy
hub / github.com/numpy/numpy / dot

Method dot

numpy/ma/core.py:5163–5196  ·  view source on GitHub ↗

a.dot(b, out=None) Masked dot product of two arrays. Note that `out` and `strict` are located in different positions than in `ma.dot`. In order to maintain compatibility with the functional version, it is recommended that the optional arguments be treated as

(self, b, out=None, strict=False)

Source from the content-addressed store, hash-verified

5161 trace.__doc__ = ndarray.trace.__doc__
5162
5163 def dot(self, b, out=None, strict=False):
5164 """
5165 a.dot(b, out=None)
5166
5167 Masked dot product of two arrays. Note that `out` and `strict` are
5168 located in different positions than in `ma.dot`. In order to
5169 maintain compatibility with the functional version, it is
5170 recommended that the optional arguments be treated as keyword only.
5171 At some point that may be mandatory.
5172
5173 Parameters
5174 ----------
5175 b : masked_array_like
5176 Inputs array.
5177 out : masked_array, optional
5178 Output argument. This must have the exact kind that would be
5179 returned if it was not used. In particular, it must have the
5180 right type, must be C-contiguous, and its dtype must be the
5181 dtype that would be returned for `ma.dot(a,b)`. This is a
5182 performance feature. Therefore, if these conditions are not
5183 met, an exception is raised, instead of attempting to be
5184 flexible.
5185 strict : bool, optional
5186 Whether masked data are propagated (True) or set to 0 (False)
5187 for the computation. Default is False. Propagating the mask
5188 means that if a masked value appears in a row or column, the
5189 whole row or column is considered masked.
5190
5191 See Also
5192 --------
5193 numpy.ma.dot : equivalent function
5194
5195 """
5196 return dot(self, b, out=out, strict=strict)
5197
5198 def sum(self, axis=None, dtype=None, out=None, keepdims=np._NoValue):
5199 """

Callers 15

_sanity_checkFunction · 0.80
test_half_funcsMethod · 0.80
test_mem_dotMethod · 0.80
test_ticket_1539Method · 0.80
test_dot_big_strideMethod · 0.80
check_einsum_sumsMethod · 0.80
test_overlapFunction · 0.80
test_dotMethod · 0.80

Calls 1

dotFunction · 0.70

Tested by 15

test_half_funcsMethod · 0.64
test_mem_dotMethod · 0.64
test_ticket_1539Method · 0.64
test_dot_big_strideMethod · 0.64
check_einsum_sumsMethod · 0.64
test_overlapFunction · 0.64
test_dotMethod · 0.64
test_dot_errstateMethod · 0.64