Class UFuncBinaryResolutionError
- Namespace
- NumSharp
- Assembly
- NumSharp.dll
NumPy's _UFuncBinaryResolutionError: a binary ufunc whose two operand dtypes cannot be combined (ufunc
'add' cannot use operands with types dtype('S1') and dtype('<U1')).
public class UFuncBinaryResolutionError : UFuncNoLoopError, ISerializable, INumSharpException
- Inheritance
-
UFuncBinaryResolutionError
- Implements
- Inherited Members
Remarks
A subclass of UFuncNoLoopError, as NumPy's is, holding exactly two dtypes.
Constructors
UFuncBinaryResolutionError(string, Exception)
Creates the error from a message and the exception that caused it, .NET's standard constructor every NumSharp exception has: the message is kept verbatim, ufunc is null and dtypes is empty (NumPy's assertion of two dtypes does not apply).
public UFuncBinaryResolutionError(string message, Exception innerException)
Parameters
messagestringThe verbatim message.
innerExceptionExceptionThe exception that led to this one, or null for none.
Remarks
Python has no such constructor (NumPy's _UFuncBinaryResolutionError takes the ufunc and the two
dtypes); for code that holds a text only. An Exception-typed second argument binds here, not as
a lone dtype of the params form.
UFuncBinaryResolutionError(string, params object[])
NumPy's _UFuncBinaryResolutionError(ufunc, dtypes): the message names both operand dtypes.
public UFuncBinaryResolutionError(string ufunc, params object[] dtypes)
Parameters
Exceptions
- ArgumentNullException
ufuncis null.- TypeError
dtypesis null.- AssertionError
dtypesdoes not hold exactly two values (NumPy'sassert len(self.dtypes) == 2, an empty text).