MCPcopy Create free account
hub / github.com/numpy/numpy / _zseries_mul

Function _zseries_mul

numpy/polynomial/chebyshev.py:183–207  ·  view source on GitHub ↗

Multiply two z-series. Multiply two z-series to produce a z-series. Parameters ---------- z1, z2 : 1-D ndarray The arrays must be 1-D but this is not checked. Returns ------- product : 1-D ndarray The product z-series. Notes ----- This is s

(z1, z2)

Source from the content-addressed store, hash-verified

181
182
183def _zseries_mul(z1, z2):
184 """Multiply two z-series.
185
186 Multiply two z-series to produce a z-series.
187
188 Parameters
189 ----------
190 z1, z2 : 1-D ndarray
191 The arrays must be 1-D but this is not checked.
192
193 Returns
194 -------
195 product : 1-D ndarray
196 The product z-series.
197
198 Notes
199 -----
200 This is simply convolution. If symmetric/anti-symmetric z-series are
201 denoted by S/A then the following rules apply:
202
203 S*S, A*A -> S
204 S*A, A*S -> A
205
206 """
207 return np.convolve(z1, z2)
208
209
210def _zseries_div(z1, z2):

Callers 2

_zseries_intFunction · 0.85
chebmulFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected