Class NDHermite
- Namespace
- NumSharp
- Assembly
- NumSharp.dll
NumPy's numpy.polynomial.hermite.Hermite: a (physicists') Hermite series: c[0]·H₀(x) + c[1]·H₁(x) + …, with a domain (default [-1, 1]) mapped onto a
window (default [-1, 1]). Arithmetic (+ - * / %, __floordiv__(object),
__divmod__(object), __pow__(object)), evaluation (__call__(object)), calculus
(integ(int, object, object), deriv(int)), roots, fitting (fit(object, object, object, object, object, bool, object, object, string)), conversion between bases
(convert(object, Type, object), cast(NDPolyBase, object, object)) and printing, all as NumPy 2.4.2 has them.
public sealed class NDHermite : NDPolyBase, IDisposable, IFormattable
- Inheritance
-
NDHermite
- Implements
- Inherited Members
Remarks
See NDPolyBase for the ownership rule (dispose every series, operator results included) and
the C# spelling of NumPy's protocol. NumPy's class object Hermite is Class (also every
series' __class__): the class attributes domain, window, maxpower
and basis_name keep NumPy's names there. The class methods (identity(object, object, string),
basis(object, object, object, string), fromroots(object, object, object, string), fit(object, object, object, object, object, bool, object, object, string), cast(NDPolyBase, object, object)) are static members.
https://numpy.org/doc/stable/reference/generated/numpy.polynomial.hermite.Hermite.html
Constructors
NDHermite(object, object, object, string)
NumPy's Hermite(coef, domain=None, window=None, symbol='x'): the series with coefficients
coef (low degree first), converted and copied as polyutils.as_series does.
public NDHermite(object coef, object domain = null, object window = null, string symbol = "x")
Parameters
coefobjectThe coefficients: a 1-D array_like (a C# array, an NDArray, a Python list / tuple, a scalar); integers become float64 (a bool array has no common type), a float16 / float32 / complex array keeps its dtype.
domainobjectThe domain (two numbers), or null for the class default (shared, not copied).
windowobjectThe window (two numbers), or null for the class default.
symbolstringThe variable's name for printing: a Python identifier.
Exceptions
- ValueError
Coefficient array is empty,Coefficient array is not 1-d,Coefficient arrays have no common type(a bool array),Domain has wrong number of elements.,Window has wrong number of elements.,Symbol string must be a valid Python identifier.- TypeError
Symbol must be a non-empty string(a null symbol).- NotSupportedException
Coefficients NumPy keeps as an OBJECT array (None, a Python int past uint64, a list holding a non-number).
Properties
Class
NumPy's class object Hermite: its class attributes under NumPy's names — NDHermite.Class.domain is
NumPy's Hermite.domain, likewise window, maxpower and basis_name — and its
name / module. The same object as __class__ of every Hermite
series. Footgun: its attributes are process-wide state, read by every series of the class without its own
(see NDPolyClass).
public static NDPolyClass Class { get; }
Property Value
Methods
Deconstruct(out NDHermite, out (NDArray residuals, NDArray rank, NDArray singular_values, NDArray rcond))
NumPy's series, [resid, rank, sv, rcond] = Hermite.fit(..., full=True): the fitted series and lstsq's
statistics (the residual sums of squares, the rank, the singular values, the rcond used).
public void Deconstruct(out NDHermite series, out (NDArray residuals, NDArray rank, NDArray singular_values, NDArray rcond) status)
Parameters
seriesNDHermiteThis series.
status(NDArray, NDArray, NDArray, NDArray)The statistics, in NumPy's order. The caller owns them (no scope tracks them; the garbage collector releases them).
Exceptions
- ValueError
The series is not the result of a
fit(..., full: true)(NumPy's series does not unpack either).
__divmod__(object)
NumPy's divmod(p, other) (divmod): the quotient and the remainder.
public (NDHermite quo, NDHermite rem) __divmod__(object other)
Parameters
otherobjectThe divisor.
Returns
Exceptions
- TypeError
See NumSharp.NDPolyBase.PyBinary(NumSharp.PyBinOp, in NumSharp.PyOperand, in NumSharp.PyOperand).
- ZeroDivisionError
A zero divisor.
__floordiv__(object)
NumPy's p // other (floordiv, then CPython's fallbacks): the quotient of
divmod(p, other).
public override NDHermite __floordiv__(object other)
Parameters
otherobjectThe divisor: a series of this class, a number, an array or a sequence of coefficients.
Returns
- NDHermite
The quotient series.
Exceptions
- TypeError
See NumSharp.NDPolyBase.PyBinary(NumSharp.PyBinOp, in NumSharp.PyOperand, in NumSharp.PyOperand).
- ZeroDivisionError
A zero divisor.
__pow__(object)
NumPy's p ** n (pow): self._pow(self.coef, n, maxpower=self.maxpower) — no
try/except, so every error of the power argument propagates — in a new series.
public override NDHermite __pow__(object power)
Parameters
powerobjectThe power: a non-negative integer (Python's
int(pow)andpower != powdecide: 2.0 and True work, 2.5 and '2' do not).
Returns
- NDHermite
The new series.
Exceptions
- ValueError
Power must be a non-negative integer.,Power is too large(above maxpower), int()'s ValueErrors.- TypeError
int() refuses the power:
int() argument must be a string, a bytes-like object or a real number, not 'complex'(a series: its class name),only 0-dimensional arrays can be converted to Python scalars.- OverflowError
An infinite power.
__rdivmod__(object)
NumPy's divmod(other, p) (rdivmod).
public (NDHermite quo, NDHermite rem) __rdivmod__(object other)
Parameters
otherobjectThe dividend.
Returns
Exceptions
- TypeError
See NumSharp.NDPolyBase.PyBinary(NumSharp.PyBinOp, in NumSharp.PyOperand, in NumSharp.PyOperand).
- ZeroDivisionError
This series is zero.
__rfloordiv__(object)
NumPy's other // p (rfloordiv): the quotient of divmod(other, p).
public override NDHermite __rfloordiv__(object other)
Parameters
otherobjectThe dividend.
Returns
- NDHermite
The quotient series.
Exceptions
- TypeError
See NumSharp.NDPolyBase.PyBinary(NumSharp.PyBinOp, in NumSharp.PyOperand, in NumSharp.PyOperand).
- ZeroDivisionError
This series is zero.
basis(object, object, object, string)
NumPy's Hermite.basis(deg, domain=None, window=None, symbol='x'): the basis polynomial of degree
deg (coefficients [0, …, 0, 1]).
public static NDHermite basis(object deg, object domain = null, object window = null, string symbol = "x")
Parameters
degobjectThe degree: a non-negative integer (Python's
int()and!=decide).domainobjectThe domain, or null for the class default.
windowobjectThe window, or null for the class default.
symbolstringThe symbol.
Returns
- NDHermite
The basis series.
Exceptions
- ValueError
deg must be non-negative integer.- TypeError
int()refusesdeg.
cast(NDPolyBase, object, object)
NumPy's Hermite.cast(series, domain=None, window=None): series converted to this class
(series.convert(domain, Hermite, window)).
public static NDHermite cast(NDPolyBase series, object domain = null, object window = null)
Parameters
seriesNDPolyBaseThe series to convert (any of the six classes).
domainobjectThe domain, or null for the class default.
windowobjectThe window, or null for the class default.
Returns
- NDHermite
The converted series.
Exceptions
- AttributeError
seriesis null.
copy()
NumPy's copy(): self.class(self.coef, self.domain, self.window, self.symbol) — a new series
with copies of the coefficients, the domain and the window (a class default is copied too: the copy owns its
own).
public override NDHermite copy()
Returns
- NDHermite
The copy.
Exceptions
- ValueError
An assigned domain or window of the wrong length (the constructor's check).
cutdeg(object)
NumPy's cutdeg(deg): self.truncate(deg + 1) — the series cut to degree deg,
with Python's + on whatever deg is (a float 1.0 works, 1.5 fails truncate's integer
check, a str fails the +).
public override NDHermite cutdeg(object deg)
Parameters
degobjectThe degree: a non-negative integer (anything whose
+ 1truncate accepts).
Returns
- NDHermite
The new series.
Exceptions
- ValueError
size must be a positive integer.- TypeError
Python's
+refusesdeg(can only concatenate str (not "int") to str,unsupported operand type(s) for +: 'NoneType' and 'int'), orint()refuses the sum (an array of one or more dims).
deriv(int)
NumPy's deriv(m=1): {p}der(self.coef, m, scl) in a new series, with the map's scale as the chain
rule's factor (the derivative is taken in the window variable).
public override NDHermite deriv(int m = 1)
Parameters
mintThe order (≥ 0).
Returns
- NDHermite
The new series (the same domain and window).
Exceptions
- ValueError
The order of derivation must be non-negative.
fit(object, object, object, object, object, bool, object, object, string)
NumPy's Hermite.fit(x, y, deg, domain=None, rcond=None, full=False, w=None, window=None, symbol='x'): the
least-squares fit of this basis to the points, on a domain covering x by default (mapped onto the window, which
keeps the problem well conditioned).
public static NDHermite fit(object x, object y, object deg, object domain = null, object rcond = null, bool full = false, object w = null, object window = null, string symbol = "x")
Parameters
xobjectThe sample points (1-D).
yobjectThe values (1-D, or 2-D with one data set per column).
degobjectThe degree, or a 1-D list of the degrees to fit.
domainobjectnull: the smallest interval holding x (widened by 1 when x is constant); an empty list: the class default; otherwise the domain.
rcondobjectThe relative cutoff of small singular values, or null for
len(x)·eps.fullboolAlso keep lstsq's statistics:
var (s, (resid, rank, sv, rcond)) = NDHermite.fit(…, full: true).wobjectWeights (1-D), or null.
windowobjectThe window, or null for the class default.
symbolstringThe symbol.
Returns
- NDHermite
The fitted series (deconstructible into the series and the statistics when
full).
Exceptions
- ValueError
expected deg >= 0and the fit's other checks; the constructor's errors.- TypeError
The fit's argument errors (
expected 1D vector for x, …).- MissingBackendException
No LAPACK backend: lstsq needs
NumSharp.Interop.OpenBLAS.
fromroots(object, object, object, string)
NumPy's Hermite.fromroots(roots, domain=[], window=None, symbol='x'): the series
(x - r[0])·(x - r[1])·…, built in the window variable (fromroots(off + scl·roots) / scl**deg).
public static NDHermite fromroots(object roots, object domain, object window = null, string symbol = "x")
Parameters
rootsobjectThe roots (1-D).
domainobjectOmitted or an empty list: the class default (NumPy's
[]); null: the roots' own interval (NumPy's None,getdomain(roots)); otherwise the domain.windowobjectThe window, or null for the class default.
symbolstringThe symbol.
Returns
- NDHermite
The series.
Exceptions
- ValueError
Empty or non-1-d roots; a domain / window the constructor refuses.
- IndexError
An empty domain array (mapparms' indexing).
identity(object, object, string)
NumPy's Hermite.identity(domain=None, window=None, symbol='x'): the series whose value at every x is x (in
this basis, mapped through the domain and window).
public static NDHermite identity(object domain = null, object window = null, string symbol = "x")
Parameters
domainobjectThe domain, or null for the class default.
windowobjectThe window, or null for the class default.
symbolstringThe symbol.
Returns
- NDHermite
The identity series.
Exceptions
- ValueError
A domain / window the constructor refuses; an invalid symbol.
- IndexError
A domain or window shorter than two.
integ(int, object, object)
NumPy's integ(m=1, k=[], lbnd=None): the definite integral in a new series. NumPy integrates in the
WINDOW variable, so the lower bound is mapped there (lbnd = off + scl*lbnd, a NumPy scalar; 0 for None)
and every order is scaled by 1./scl — then {p}int(self.coef, m, k, lbnd, 1./scl).
public override NDHermite integ(int m = 1, object k = null, object lbnd = null)
Parameters
mintThe number of integrations (≥ 0).
kobjectThe integration constants (null for NumPy's
[]): a scalar or a sequence, at mostmof them, missing ones 0.lbndobjectThe lower bound in the DOMAIN variable: null for NumPy's None (the window's 0), or a scalar.
Returns
- NDHermite
The new series (the same domain and window).
Exceptions
- ValueError
The order of integration must be non-negative,Too many integration constants,lbnd must be a scalar.(an array bound).- TypeError
A sequence or str bound:
can't multiply sequence by non-int of type 'numpy.float64'(the scale's NumPy type); another object NumPy's object loop refuses.
trim(object)
NumPy's trim(tol=0): pu.trimcoef(self.coef, tol) in a new series — the trailing coefficients whose
magnitude is at most tol removed (all of them leaves one zero).
public override NDHermite trim(object tol)
Parameters
tolobjectThe tolerance: omitted for NumPy's default 0, or a Python / NumPy number (see
np.polynomial.polyutils.trimcoef). An explicit null is NumPy'stol=None, which trimcoef'stol < 0refuses.
Returns
- NDHermite
The new series.
Exceptions
- ValueError
tol must be non-negative.- TypeError
A tolerance that does not compare with 0 (complex, str, None).
truncate(object)
NumPy's truncate(size): isize = int(size); isize != size or isize < 1 raises; then the
first isize coefficients (all of them when there are fewer) in a new series.
public override NDHermite truncate(object size)
Parameters
sizeobjectThe length: a positive integer (Python's
int()and!=decide: 2.0 works, 2.5 and '2' do not).
Returns
- NDHermite
The new series.
Exceptions
- ValueError
size must be a positive integer; or int()'s own ValueError (a NaN, an unparsable str — a parsable one fails the!=).- TypeError
int() refuses
size(None, complex, a list, an array of one or more dims).- OverflowError
An infinity.
Operators
operator +(NDArray, NDHermite)
NumPy's other + p: the other operand declines, then the series' radd.
public static NDHermite operator +(NDArray a, NDHermite b)
Parameters
Returns
- NDHermite
The sum.
operator +(NDHermite, NDArray)
NumPy's p + other (see NumSharp.NDPolyBase.PyBinary(NumSharp.PyBinOp, in NumSharp.PyOperand, in NumSharp.PyOperand)).
public static NDHermite operator +(NDHermite a, NDArray b)
Parameters
aNDHermiteThe series.
bNDArrayA series of the same class, a number, an array or a sequence of coefficients.
Returns
- NDHermite
The sum.
operator +(NDHermite, Array)
NumPy's p + seq for a C# array (p + new[] { 1.0, 2.0 }, NumPy's p + [1, 2]): an
overload of its own because C# would otherwise convert the array to an NDArray at the call
site and bind operator +(NDPolyBase, NDArray), leaving that temporary to the garbage
collector. The array is read as NumPy reads an ndarray operand.
public static NDHermite operator +(NDHermite a, Array b)
Parameters
Returns
- NDHermite
The sum.
operator +(NDHermite, object)
NumPy's p + other (see NumSharp.NDPolyBase.PyBinary(NumSharp.PyBinOp, in NumSharp.PyOperand, in NumSharp.PyOperand)).
public static NDHermite operator +(NDHermite a, object b)
Parameters
aNDHermiteThe series.
bobjectA series of the same class, a number, an array or a sequence of coefficients.
Returns
- NDHermite
The sum.
operator +(NDHermite, object[])
NumPy's p + other (see NumSharp.NDPolyBase.PyBinary(NumSharp.PyBinOp, in NumSharp.PyOperand, in NumSharp.PyOperand)).
public static NDHermite operator +(NDHermite a, object[] b)
Parameters
aNDHermiteThe series.
bobject[]A series of the same class, a number, an array or a sequence of coefficients.
Returns
- NDHermite
The sum.
operator +(NDHermite, string)
NumPy's p + "text", a TypeError as in NumPy: an overload of its own so the C# string reaches the
protocol as Python's str, not through NumSharp's string-to-char-array conversion (whose temporary would be
left to the garbage collector). Footgun: p + null is ambiguous between this overload and the
object[] one; NumPy's p + None is p + (object)null.
public static NDHermite operator +(NDHermite a, string b)
Parameters
Returns
- NDHermite
Never: NumPy's TypeError.
operator +(Array, NDHermite)
NumPy's other + p: the other operand declines, then the series' radd.
public static NDHermite operator +(Array a, NDHermite b)
Parameters
Returns
- NDHermite
The sum.
operator +(IList, NDHermite)
NumPy's other + p: the other operand declines, then the series' radd.
public static NDHermite operator +(IList a, NDHermite b)
Parameters
Returns
- NDHermite
The sum.
operator +(object[], NDHermite)
NumPy's other + p: the other operand declines, then the series' radd.
public static NDHermite operator +(object[] a, NDHermite b)
Parameters
Returns
- NDHermite
The sum.
operator +(ITuple, NDHermite)
NumPy's other + p: the other operand declines, then the series' radd.
public static NDHermite operator +(ITuple a, NDHermite b)
Parameters
Returns
- NDHermite
The sum.
operator +(string, NDHermite)
NumPy's other + p: the other operand declines, then the series' radd.
public static NDHermite operator +(string a, NDHermite b)
Parameters
Returns
- NDHermite
The sum.
operator /(NDArray, NDHermite)
NumPy's other / p: always CPython's TypeError (rtruediv declines every operand).
public static NDHermite operator /(NDArray a, NDHermite b)
Parameters
Returns
- NDHermite
Never returns.
operator /(NDHermite, NDArray)
NumPy's p / other: only a number divides (p // number).
public static NDHermite operator /(NDHermite a, NDArray b)
Parameters
Returns
- NDHermite
The quotient.
operator /(NDHermite, Array)
NumPy's p / seq for a C# array (p / new[] { 1.0, 2.0 }, NumPy's p / [1, 2]): an
overload of its own because C# would otherwise convert the array to an NDArray at the call
site and bind operator /(NDPolyBase, NDArray), leaving that temporary to the garbage
collector. The array is read as NumPy reads an ndarray operand.
public static NDHermite operator /(NDHermite a, Array b)
Parameters
Returns
- NDHermite
The quotient.
operator /(NDHermite, object)
NumPy's p / other: only a number divides (p // number).
public static NDHermite operator /(NDHermite a, object b)
Parameters
Returns
- NDHermite
The quotient.
operator /(NDHermite, object[])
NumPy's p / other: only a number divides (p // number).
public static NDHermite operator /(NDHermite a, object[] b)
Parameters
Returns
- NDHermite
The quotient.
operator /(NDHermite, string)
NumPy's p / "text", a TypeError as in NumPy: an overload of its own so the C# string reaches the
protocol as Python's str, not through NumSharp's string-to-char-array conversion (whose temporary would be
left to the garbage collector). Footgun: p / null is ambiguous between this overload and the
object[] one; NumPy's p / None is p / (object)null.
public static NDHermite operator /(NDHermite a, string b)
Parameters
Returns
- NDHermite
Never: NumPy's TypeError.
operator /(Array, NDHermite)
NumPy's other / p: always CPython's TypeError (rtruediv declines every operand).
public static NDHermite operator /(Array a, NDHermite b)
Parameters
Returns
- NDHermite
Never returns.
operator /(IList, NDHermite)
NumPy's other / p: always CPython's TypeError (rtruediv declines every operand).
public static NDHermite operator /(IList a, NDHermite b)
Parameters
Returns
- NDHermite
Never returns.
operator /(object[], NDHermite)
NumPy's other / p: always CPython's TypeError (rtruediv declines every operand).
public static NDHermite operator /(object[] a, NDHermite b)
Parameters
Returns
- NDHermite
Never returns.
operator /(ITuple, NDHermite)
NumPy's other / p: always CPython's TypeError (rtruediv declines every operand).
public static NDHermite operator /(ITuple a, NDHermite b)
Parameters
Returns
- NDHermite
Never returns.
operator /(string, NDHermite)
NumPy's other / p: always CPython's TypeError (rtruediv declines every operand).
public static NDHermite operator /(string a, NDHermite b)
Parameters
Returns
- NDHermite
Never returns.
operator %(NDArray, NDHermite)
NumPy's other % p: the series' rmod (a str's % formats first).
public static NDHermite operator %(NDArray a, NDHermite b)
Parameters
Returns
- NDHermite
The remainder.
operator %(NDHermite, NDArray)
NumPy's p % other: the remainder of divmod(p, other).
public static NDHermite operator %(NDHermite a, NDArray b)
Parameters
Returns
- NDHermite
The remainder.
operator %(NDHermite, Array)
NumPy's p % seq for a C# array (p % new[] { 1.0, 2.0 }, NumPy's p % [1, 2]): an
overload of its own because C# would otherwise convert the array to an NDArray at the call
site and bind operator %(NDPolyBase, NDArray), leaving that temporary to the garbage
collector. The array is read as NumPy reads an ndarray operand.
public static NDHermite operator %(NDHermite a, Array b)
Parameters
Returns
- NDHermite
The remainder.
operator %(NDHermite, object)
NumPy's p % other: the remainder of divmod(p, other).
public static NDHermite operator %(NDHermite a, object b)
Parameters
Returns
- NDHermite
The remainder.
operator %(NDHermite, object[])
NumPy's p % other: the remainder of divmod(p, other).
public static NDHermite operator %(NDHermite a, object[] b)
Parameters
Returns
- NDHermite
The remainder.
operator %(NDHermite, string)
NumPy's p % "text", a TypeError as in NumPy: an overload of its own so the C# string reaches the
protocol as Python's str, not through NumSharp's string-to-char-array conversion (whose temporary would be
left to the garbage collector). Footgun: p % null is ambiguous between this overload and the
object[] one; NumPy's p % None is p % (object)null.
public static NDHermite operator %(NDHermite a, string b)
Parameters
Returns
- NDHermite
Never: NumPy's TypeError.
operator %(Array, NDHermite)
NumPy's other % p: the series' rmod (a str's % formats first).
public static NDHermite operator %(Array a, NDHermite b)
Parameters
Returns
- NDHermite
The remainder.
operator %(IList, NDHermite)
NumPy's other % p: the series' rmod (a str's % formats first).
public static NDHermite operator %(IList a, NDHermite b)
Parameters
Returns
- NDHermite
The remainder.
operator %(object[], NDHermite)
NumPy's other % p: the series' rmod (a str's % formats first).
public static NDHermite operator %(object[] a, NDHermite b)
Parameters
Returns
- NDHermite
The remainder.
operator %(ITuple, NDHermite)
NumPy's other % p: the series' rmod (a str's % formats first).
public static NDHermite operator %(ITuple a, NDHermite b)
Parameters
Returns
- NDHermite
The remainder.
operator %(string, NDHermite)
NumPy's other % p: the series' rmod (a str's % formats first).
public static NDHermite operator %(string a, NDHermite b)
Parameters
Returns
- NDHermite
The remainder.
operator *(NDArray, NDHermite)
NumPy's other * p: the series' rmul.
public static NDHermite operator *(NDArray a, NDHermite b)
Parameters
Returns
- NDHermite
The product.
operator *(NDHermite, NDArray)
NumPy's p * other (see NumSharp.NDPolyBase.PyBinary(NumSharp.PyBinOp, in NumSharp.PyOperand, in NumSharp.PyOperand)).
public static NDHermite operator *(NDHermite a, NDArray b)
Parameters
aNDHermiteThe series.
bNDArrayA series of the same class, a number, an array or a sequence of coefficients.
Returns
- NDHermite
The product.
operator *(NDHermite, Array)
NumPy's p * seq for a C# array (p * new[] { 1.0, 2.0 }, NumPy's p * [1, 2]): an
overload of its own because C# would otherwise convert the array to an NDArray at the call
site and bind operator *(NDPolyBase, NDArray), leaving that temporary to the garbage
collector. The array is read as NumPy reads an ndarray operand.
public static NDHermite operator *(NDHermite a, Array b)
Parameters
Returns
- NDHermite
The product.
operator *(NDHermite, object)
NumPy's p * other (see NumSharp.NDPolyBase.PyBinary(NumSharp.PyBinOp, in NumSharp.PyOperand, in NumSharp.PyOperand)).
public static NDHermite operator *(NDHermite a, object b)
Parameters
aNDHermiteThe series.
bobjectA series of the same class, a number, an array or a sequence of coefficients.
Returns
- NDHermite
The product.
operator *(NDHermite, object[])
NumPy's p * other (see NumSharp.NDPolyBase.PyBinary(NumSharp.PyBinOp, in NumSharp.PyOperand, in NumSharp.PyOperand)).
public static NDHermite operator *(NDHermite a, object[] b)
Parameters
aNDHermiteThe series.
bobject[]A series of the same class, a number, an array or a sequence of coefficients.
Returns
- NDHermite
The product.
operator *(NDHermite, string)
NumPy's p * "text", a TypeError as in NumPy: an overload of its own so the C# string reaches the
protocol as Python's str, not through NumSharp's string-to-char-array conversion (whose temporary would be
left to the garbage collector). Footgun: p * null is ambiguous between this overload and the
object[] one; NumPy's p * None is p * (object)null.
public static NDHermite operator *(NDHermite a, string b)
Parameters
Returns
- NDHermite
Never: NumPy's TypeError.
operator *(Array, NDHermite)
NumPy's other * p: the series' rmul.
public static NDHermite operator *(Array a, NDHermite b)
Parameters
Returns
- NDHermite
The product.
operator *(IList, NDHermite)
NumPy's other * p: the series' rmul.
public static NDHermite operator *(IList a, NDHermite b)
Parameters
Returns
- NDHermite
The product.
operator *(object[], NDHermite)
NumPy's other * p: the series' rmul.
public static NDHermite operator *(object[] a, NDHermite b)
Parameters
Returns
- NDHermite
The product.
operator *(ITuple, NDHermite)
NumPy's other * p: the series' rmul.
public static NDHermite operator *(ITuple a, NDHermite b)
Parameters
Returns
- NDHermite
The product.
operator *(string, NDHermite)
NumPy's other * p: the series' rmul.
public static NDHermite operator *(string a, NDHermite b)
Parameters
Returns
- NDHermite
The product.
operator -(NDArray, NDHermite)
NumPy's other - p: the series' rsub.
public static NDHermite operator -(NDArray a, NDHermite b)
Parameters
Returns
- NDHermite
The difference.
operator -(NDHermite, NDArray)
NumPy's p - other (see NumSharp.NDPolyBase.PyBinary(NumSharp.PyBinOp, in NumSharp.PyOperand, in NumSharp.PyOperand)).
public static NDHermite operator -(NDHermite a, NDArray b)
Parameters
aNDHermiteThe series.
bNDArrayA series of the same class, a number, an array or a sequence of coefficients.
Returns
- NDHermite
The difference.
operator -(NDHermite, Array)
NumPy's p - seq for a C# array (p - new[] { 1.0, 2.0 }, NumPy's p - [1, 2]): an
overload of its own because C# would otherwise convert the array to an NDArray at the call
site and bind operator -(NDPolyBase, NDArray), leaving that temporary to the garbage
collector. The array is read as NumPy reads an ndarray operand.
public static NDHermite operator -(NDHermite a, Array b)
Parameters
Returns
- NDHermite
The difference.
operator -(NDHermite, object)
NumPy's p - other (see NumSharp.NDPolyBase.PyBinary(NumSharp.PyBinOp, in NumSharp.PyOperand, in NumSharp.PyOperand)).
public static NDHermite operator -(NDHermite a, object b)
Parameters
aNDHermiteThe series.
bobjectA series of the same class, a number, an array or a sequence of coefficients.
Returns
- NDHermite
The difference.
operator -(NDHermite, object[])
NumPy's p - other (see NumSharp.NDPolyBase.PyBinary(NumSharp.PyBinOp, in NumSharp.PyOperand, in NumSharp.PyOperand)).
public static NDHermite operator -(NDHermite a, object[] b)
Parameters
aNDHermiteThe series.
bobject[]A series of the same class, a number, an array or a sequence of coefficients.
Returns
- NDHermite
The difference.
operator -(NDHermite, string)
NumPy's p - "text", a TypeError as in NumPy: an overload of its own so the C# string reaches the
protocol as Python's str, not through NumSharp's string-to-char-array conversion (whose temporary would be
left to the garbage collector). Footgun: p - null is ambiguous between this overload and the
object[] one; NumPy's p - None is p - (object)null.
public static NDHermite operator -(NDHermite a, string b)
Parameters
Returns
- NDHermite
Never: NumPy's TypeError.
operator -(Array, NDHermite)
NumPy's other - p: the series' rsub.
public static NDHermite operator -(Array a, NDHermite b)
Parameters
Returns
- NDHermite
The difference.
operator -(IList, NDHermite)
NumPy's other - p: the series' rsub.
public static NDHermite operator -(IList a, NDHermite b)
Parameters
Returns
- NDHermite
The difference.
operator -(object[], NDHermite)
NumPy's other - p: the series' rsub.
public static NDHermite operator -(object[] a, NDHermite b)
Parameters
Returns
- NDHermite
The difference.
operator -(ITuple, NDHermite)
NumPy's other - p: the series' rsub.
public static NDHermite operator -(ITuple a, NDHermite b)
Parameters
Returns
- NDHermite
The difference.
operator -(string, NDHermite)
NumPy's other - p: the series' rsub.
public static NDHermite operator -(string a, NDHermite b)
Parameters
Returns
- NDHermite
The difference.
operator -(NDHermite)
NumPy's -p.
public static NDHermite operator -(NDHermite a)
Parameters
aNDHermiteThe series.
Returns
- NDHermite
The negated series.
operator +(NDHermite)
NumPy's +p: the series itself (pos returns self).
public static NDHermite operator +(NDHermite a)
Parameters
aNDHermiteThe series.
Returns
- NDHermite
a.