Numpy NdArray记忆化 [英] Numpy NdArray Memoization
本文介绍了Numpy NdArray记忆化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在处理一些相当计算密集的计算,用于处理numpy矩阵和ndarray,并且从一些挖掘中,大约有十二种方法不来实现记忆,通常充满冲突,以及ndarrays是可变对象的问题.
I'm working on some fairly computational intensive calculations that deal with numpy matrices and ndarrays, and from some digging around, there are about a dozen ways not to implement memoization, generally full of collisions, and issues with ndarrays being mutable objects.
有人遇到过可以处理numpy对象的相当通用的备注装饰器吗?
Has anyone come across a fairly general memoisation decorator that can handle numpy objects?
推荐答案
该软件包如何:
http://packages.python.org/joblib/memory.html
这篇关于Numpy NdArray记忆化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文