Class StringComputationNotSupportedException
- Namespace
- NumSharp
- Assembly
- NumSharp.dll
A computation on text that np.evaluate does not run: an NDExpr node that takes an S, U or
StringDType operand where NumPy's answer is not a number or a bool (a text result such as a concatenation or
a Where with text branches, a reduction of text other than the truth tests, an arithmetic or math node), or a
text argument to an NDExpr.Call delegate. np.evaluate is a NumSharp extension without a NumPy function
to follow; it computes text in the comparisons, the truth readers (the logical nodes, Where's condition,
Any / All / CountNonzero), IsNaN, Cast to a number and the numpy.strings factories
(StrLen, the predicates, the searches), whose numeric results feed the rest of the tree, and the message names
the refused node and how to compute it (the string functions first, their result passed into the expression).
public sealed class StringComputationNotSupportedException : NotSupportedException, ISerializable, INumSharpException
- Inheritance
-
StringComputationNotSupportedException
- Implements
- Inherited Members
Remarks
Every NumPy call over text has its answer. No np.* function throws this type: where NumPy computes
on text (the np.strings functions, sorting, searching, the set routines, the
statistics and reductions over StringDType, the conversions between text and numbers, …) NumSharp computes
the same result, and where NumPy refuses a string operand (np.subtract(u, u), np.sum(u),
np.dot(u, u)) NumSharp raises NumPy's own exception and text. The string oracle
(test/oracle/gen_strings_oracle.py) holds every such case to NumPy byte for byte, with no deferral.
It is raised when the expression's program is built, before any text is read. It derives from
NotSupportedException, so existing catch (NotSupportedException) code sees it.
Constructors
StringComputationNotSupportedException(string)
Creates the exception with a message that names the refused node and the remedy.
public StringComputationNotSupportedException(string message)
Parameters
messagestringThe message.