This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
cimport numpy as np | |
cimport cython | |
@cython.boundscheck(False) | |
@cython.wraparound(False) | |
cpdef cython_lstsqr(x_ary, y_ary): | |
""" Computes the least-squares solution to a linear matrix equation. """ | |
cdef double x_avg, y_avg, var_x, cov_xy,\ | |
slope, y_interc |