阅读背景:

Numpy:计算2d阵列每行对角线的最快方法

来源:互联网 

Given a 2d Numpy array, I would like to be able to compute the diagonal for each row in the fastest way possible, I'm right now using a list comprehension but I'm wondering if it can be vectorised somehow?Given a 2d Numpy array, I would like to be able




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: