项目作者: guenchi

项目描述 :
NumPy for Chez Scheme
高级语言: Scheme
项目地址: git://github.com/guenchi/NumPy.git
创建时间: 2018-12-26T13:01:07Z
项目社区:https://github.com/guenchi/NumPy

开源协议:MIT License

下载


NumPy for Chez Scheme

image

and it’s faster than the Native NumPy of Python

  1. (define get-sin
  2. (lambda (lst)
  3. (plist->list
  4. (np-tolist
  5. (np-sin
  6. (py-div
  7. (py-mul pi
  8. (np-array
  9. (list->plist lst)
  10. ('dtype (str "float"))))
  11. (int 180)))))))
  12. (display (get-sin '(1 2 3 4 5 6 7 8)))
  13. =>
  14. (0.01745240643728351 0.03489949670250097 0.05233595624294383 0.0697564737441253
  15. 0.08715574274765817 0.10452846326765346 0.12186934340514748 0.13917310096006544)

Depencies:

https://guenchi.github.io/Darkart

https://github.com/python/cpython

https://github.com/numpy/numpy

The Darkart ecosystem:

https://guenchi.github.io/NumPy

https://guenchi.github.io/SciPy

https://guenchi.github.io/SymPy

https://guenchi.github.io/Matplotlib

https://guenchi.github.io/Pandas