MCPcopy Index your code
hub / github.com/numpy/numpy / mapparms

Method mapparms

numpy/polynomial/_polybase.py:816–843  ·  view source on GitHub ↗

Return the mapping parameters. The returned values define a linear map ``off + scl*x`` that is applied to the input arguments before the series is evaluated. The map depends on the ``domain`` and ``window``; if the current ``domain`` is equal to the ``window`` the re

(self)

Source from the content-addressed store, hash-verified

814 return self(kind.identity(domain, window=window, symbol=self.symbol))
815
816 def mapparms(self):
817 """Return the mapping parameters.
818
819 The returned values define a linear map ``off + scl*x`` that is
820 applied to the input arguments before the series is evaluated. The
821 map depends on the ``domain`` and ``window``; if the current
822 ``domain`` is equal to the ``window`` the resulting map is the
823 identity. If the coefficients of the series instance are to be
824 used by themselves outside this class, then the linear function
825 must be substituted for the ``x`` in the standard representation of
826 the base polynomials.
827
828 Returns
829 -------
830 off, scl : float or complex
831 The mapping function is defined by ``off + scl*x``.
832
833 Notes
834 -----
835 If the current domain is the interval ``[l1, r1]`` and the window
836 is ``[l2, r2]``, then the linear mapping function ``L`` is
837 defined by the equations::
838
839 L(l1) = l2
840 L(r1) = r2
841
842 """
843 return pu.mapparms(self.domain, self.window)
844
845 def integ(self, m=1, k=[], lbnd=None):
846 """Integrate.

Callers 8

_generate_stringMethod · 0.95
_repr_latex_Method · 0.95
integMethod · 0.95
derivMethod · 0.95
fromrootsMethod · 0.80
identityMethod · 0.80
test_mapparmsMethod · 0.80
test_mapparmsFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_mapparmsMethod · 0.64
test_mapparmsFunction · 0.64