For example, I have the following code:
def quad(p, x):
"""Solves for the coefficients of the quadratic approximation of a
polynomial ``p`` at points ``x``.
:param :cls:`numpy.polynomial.Polynomial` p:
The polynomial to be approximated by a quadratic function.
:param list x:
The three points along which the quadratic function is to be fitted.
"""
Pay attention to the part where I say . How to make this link directly in the documentation for the class ?:cls:numpy.polynomial.Polynomialnumpy.polynomial.Polynomial
source
share