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

Method _str_term_unicode

numpy/polynomial/_polybase.py:395–406  ·  view source on GitHub ↗

String representation of single polynomial term using unicode characters for superscripts and subscripts.

(cls, i, arg_str)

Source from the content-addressed store, hash-verified

393
394 @classmethod
395 def _str_term_unicode(cls, i, arg_str):
396 """
397 String representation of single polynomial term using unicode
398 characters for superscripts and subscripts.
399 """
400 if cls.basis_name is None:
401 raise NotImplementedError(
402 "Subclasses must define either a basis_name, or override "
403 "_str_term_unicode(cls, i, arg_str)"
404 )
405 return (f"·{cls.basis_name}{i.translate(cls._subscript_mapping)}"
406 f"({arg_str})")
407
408 @classmethod
409 def _str_term_ascii(cls, i, arg_str):

Callers

nothing calls this directly

Calls 1

translateMethod · 0.80

Tested by

no test coverage detected