【发布时间】:2014-02-15 15:28:38
【问题描述】:
例如,我有以下代码:
# Solve for coefficients of quadratic approximation
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.
"""
注意我说:cls: 的部分。如何将该链接直接链接到 numpy.polynomial.Polynomialnumpy.polynomial.Polynomial 类的文档?
【问题讨论】:
标签: python numpy python-sphinx docstring