google / latexify_py

A library to generate LaTeX expression from Python code.
Apache License 2.0
7.23k stars 385 forks source link

Expand support for Numpy NDArray functions #149

Open Casper-Guo opened 1 year ago

Casper-Guo commented 1 year ago

143 implemented Numpy NDArray support, opening the door to supporting a wide range of Numpy functions. Here is a list of frequently used functions and how they might be represented.

Some functions have unambiguous mathematical notations:

Some other functions have standard representations in some cases (for example, when all the keyword arguments are set to the default). Refer to Numpy documentation, especially the calculations section, for many such functions. Note that some of these functions are implemented both in numpy and np.ndarray.

ZibingZhang commented 1 year ago

This feels like a bunch of function expansions.

odashi commented 1 year ago

some of them can be implemented by the existing tools. For $a^T$, it shouldn't be implemented as pow(a, T) because it is not actually the power operator.