V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 3 天前 · 1065 次点击

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

    5 条回复    2025-08-14 12:45:30 +08:00
    harlen
        1
    harlen  
       3 天前
    项目都是迭代的,兼容老的写法,没有任何优雅是直接就是优雅的
    nno
        2
    nno  
       3 天前
    也许是原作者不熟悉 numpy 的广播机制
    pointerman
        3
    pointerman  
       3 天前
    所以这跟你有啥关系,领导让你改这个类了?
    xuegy
        4
    xuegy  
    OP
       2 天前 via iPhone
    @pointerman C++重写,pybind11 保证与原类完全兼容。
    Alias4ck
        5
    Alias4ck  
       2 天前
    重写 numpy 吧😄
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2718 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 09:43 · PVG 17:43 · LAX 02:43 · JFK 05:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.