推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
xuegy
V2EX  ›  Python

屎山配着详尽文档,真想提桶跑路了。

  •  
  •   xuegy · Aug 13, 2025 · 3500 views
    This topic created in 413 days ago, the information mentioned may be changed or developed.

    我想了很久也没想明白为什么要手撸一个支持传入 numpy 进行运算的矩阵类而不是直接用 numpy ?

    5 replies  •  2025-08-14 12:45:30 +08:00
    harlen
        1
    harlen  
       Aug 13, 2025
    项目都是迭代的,兼容老的写法,没有任何优雅是直接就是优雅的
    nno
        2
    nno  
       Aug 13, 2025
    也许是原作者不熟悉 numpy 的广播机制
    pointerman
        3
    pointerman  
       Aug 13, 2025
    所以这跟你有啥关系,领导让你改这个类了?
    xuegy
        4
    xuegy  
    OP
       Aug 13, 2025 via iPhone
    @pointerman C++重写,pybind11 保证与原类完全兼容。
    noahliaszn
        5
    noahliaszn  
       Aug 14, 2025
    重写 numpy 吧😄
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1136 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 23:34 · PVG 07:34 · LAX 16:34 · JFK 19:34
    ♥ Do have faith in what you're doing.