INNER CODE UNIT · Python

ind

XMU-Kuangnan-Fang-Team/GENetLib · GENetLib/BsplineFunc.py:102

                        ind = np.arange(i + 1)
                        if len(ind) == 1:
                            convmat[:, :, i] = np.outer(
                                Coeff[ind, :], Coeff[i - ind, :]
                            )
                            convmat[:, :, prodorder - i - 1] = np.outer(
                                Coeff[ndegree - ind, :],
                                Coeff[ndegree - i + ind, :],
                            )
                        else:
                            convmat[:, :, i] = np.dot(
                                Coeff[ind, :].T, Coeff[i - ind, :]
                            )
                            convmat[:, :, prodorder - i - 1] = np.dot(
                                Coeff[ndegree - ind - 1, :].T,
                                Coeff[ndegree - i + ind, :],
                            )
                    ind = np.arange(ndegree + 1)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…