MCPcopy Create free account
hub / github.com/numpy/numpy / _repr_latex_scalar

Method _repr_latex_scalar

numpy/polynomial/_polybase.py:435–438  ·  view source on GitHub ↗
(x, parens=False)

Source from the content-addressed store, hash-verified

433
434 @staticmethod
435 def _repr_latex_scalar(x, parens=False):
436 # TODO: we're stuck with disabling math formatting until we handle
437 # exponents in this function
438 return r'\text{{{}}}'.format(pu.format_float(x, parens=parens))
439
440 def _repr_latex_(self):
441 # get the scaled argument string to the basis functions

Callers 1

_repr_latex_Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected