matlab代码转换为python代码

上传者: vivian_wanjin | 上传时间: 2021-03-16 18:19:46 | 文件大小: 24.07MB | 文件类型: ZIP
SMOP 是小型Matlab和八度到Python编译器。 SMOP将matlab翻译成python。尽管matlab和数字python之间有明显的相似之处,但在现实生活中有足够的差异使手工翻译不可行。 SMOP生成人类可读的蟒蛇,这似乎也比八度快。速度有多快?表1显示了“移动家具”的计时结果。似乎对于该程序,转换为python导致加速大约两倍,并且 使用cython 将SMOP运行时库编译runtime.py为C 实现了额外的两倍加速。这个伪基准测量标量性能,而我的解释是标量计算对八度组不太感兴趣。 使用方法: $ cd smop / smop $ python main.py solver.m $ python solver.py

文件下载

资源详情

[{"title":"( 90 个子文件 24.07MB ) matlab代码转换为python代码","children":[{"title":"smop","children":[{"title":"MANIFEST.in <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":"README.rst <span style='color:#111;'> 12.79KB </span>","children":null,"spread":false},{"title":"LICENSE.MIT <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"NEWS.rst <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"INSTALL <span style='color:#111;'> 863B </span>","children":null,"spread":false},{"title":"smop","children":[{"title":"libsmop.py <span style='color:#111;'> 19.09KB </span>","children":null,"spread":false},{"title":"node.py <span style='color:#111;'> 11.29KB </span>","children":null,"spread":false},{"title":"test_core.py <span style='color:#111;'> 3.64KB </span>","children":null,"spread":false},{"title":"test_matlabarray.py <span style='color:#111;'> 4.83KB </span>","children":null,"spread":false},{"title":"options.py <span style='color:#111;'> 4.82KB </span>","children":null,"spread":false},{"title":"benchmark5","children":[{"title":"benchmark2.m <span style='color:#111;'> 4.55KB </span>","children":null,"spread":false},{"title":"Currency1.txt <span style='color:#111;'> 571.68KB </span>","children":null,"spread":false},{"title":"database.mdb <span style='color:#111;'> 1.71MB </span>","children":null,"spread":false},{"title":"benchmark5.m <span style='color:#111;'> 5.11KB </span>","children":null,"spread":false},{"title":"Currency2.txt <span style='color:#111;'> 679.27KB </span>","children":null,"spread":false}],"spread":true},{"title":"sparsearray.py <span style='color:#111;'> 3.62KB </span>","children":null,"spread":false},{"title":"backend.py <span style='color:#111;'> 11.74KB </span>","children":null,"spread":false},{"title":"resolve.py <span style='color:#111;'> 9.19KB </span>","children":null,"spread":false},{"title":"callgraph.py <span style='color:#111;'> 929B </span>","children":null,"spread":false},{"title":"solver.m <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"main.py <span style='color:#111;'> 2.54KB </span>","children":null,"spread":false},{"title":"r8_random.m <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"graphviz.py <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 186B </span>","children":null,"spread":false},{"title":"test_parse.py <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"recipes.py <span style='color:#111;'> 5.90KB </span>","children":null,"spread":false},{"title":"lexer.py <span style='color:#111;'> 11.70KB </span>","children":null,"spread":false},{"title":"parser.out <span style='color:#111;'> 1.06MB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"test_solver.py <span style='color:#111;'> 659B </span>","children":null,"spread":false},{"title":"test_lexer.py <span style='color:#111;'> 6.71KB </span>","children":null,"spread":false},{"title":"test_sparsearray.py <span style='color:#111;'> 6.97KB </span>","children":null,"spread":false},{"title":"fastsolver.m <span style='color:#111;'> 57.76KB </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"backend.cpython-36.pyc <span style='color:#111;'> 9.84KB </span>","children":null,"spread":false},{"title":"recipes.cpython-36.pyc <span style='color:#111;'> 5.31KB </span>","children":null,"spread":false},{"title":"parse.cpython-36.pyc <span style='color:#111;'> 19.42KB </span>","children":null,"spread":false},{"title":"options.cpython-36.pyc <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false},{"title":"version.cpython-36.pyc <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"node.cpython-36.pyc <span style='color:#111;'> 14.86KB </span>","children":null,"spread":false},{"title":"lexer.cpython-36.pyc <span style='color:#111;'> 9.09KB </span>","children":null,"spread":false},{"title":"parsetab.cpython-36.pyc <span style='color:#111;'> 70.75KB </span>","children":null,"spread":false},{"title":"__init__.cpython-36.pyc <span style='color:#111;'> 232B </span>","children":null,"spread":false},{"title":"resolve.cpython-36.pyc <span style='color:#111;'> 6.53KB </span>","children":null,"spread":false}],"spread":false},{"title":"test_primes.py <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":"parse.py <span style='color:#111;'> 21.89KB </span>","children":null,"spread":false},{"title":"test_runtime.py <span style='color:#111;'> 3.68KB </span>","children":null,"spread":false},{"title":"version.py <span style='color:#111;'> 20B </span>","children":null,"spread":false},{"title":"solver.py <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"parsetab.py <span style='color:#111;'> 91.41KB </span>","children":null,"spread":false}],"spread":false},{"title":"SMOP.rst <span style='color:#111;'> 18.26KB </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 820B </span>","children":null,"spread":false},{"title":".git","children":[{"title":"logs","children":[{"title":"HEAD <span style='color:#111;'> 185B </span>","children":null,"spread":false},{"title":"refs","children":[{"title":"heads","children":[{"title":"master <span style='color:#111;'> 185B </span>","children":null,"spread":false}],"spread":true},{"title":"remotes","children":[{"title":"origin","children":[{"title":"HEAD <span style='color:#111;'> 185B </span>","children":null,"spread":false},{"title":"master <span style='color:#111;'> 181B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"packed-refs <span style='color:#111;'> 729B </span>","children":null,"spread":false},{"title":"info","children":[{"title":"exclude <span style='color:#111;'> 240B </span>","children":null,"spread":false}],"spread":true},{"title":"lfs","children":[{"title":"tmp","children":[{"title":"objects","children":null,"spread":false}],"spread":true},{"title":"objects","children":[{"title":"logs","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"index <span style='color:#111;'> 3.43KB </span>","children":null,"spread":false},{"title":"objects","children":[{"title":"pack","children":[{"title":"pack-c7cfe17f781665c1a226ab7caacdcb530d69f72e.idx <span style='color:#111;'> 208.83KB </span>","children":null,"spread":false},{"title":"pack-c7cfe17f781665c1a226ab7caacdcb530d69f72e.pack <span style='color:#111;'> 22.74MB </span>","children":null,"spread":false}],"spread":false},{"title":"b8","children":[{"title":"623203b69b838866236ccda23c86b25e44778f <span style='color:#111;'> 970B </span>","children":null,"spread":false}],"spread":false},{"title":"info","children":null,"spread":false},{"title":"29","children":[{"title":"8ebd3d9fc04e35604230089a2ae8071da46e04 <span style='color:#111;'> 970B </span>","children":null,"spread":false}],"spread":false},{"title":"bb","children":[{"title":"666e907054db9d4307e4343716411d717a8ec3 <span style='color:#111;'> 852B </span>","children":null,"spread":false}],"spread":false},{"title":"b1","children":[{"title":"57d024013843d36bfdece0c565d42060bcfb44 <span style='color:#111;'> 188B </span>","children":null,"spread":false}],"spread":false},{"title":"85","children":[{"title":"901dd588c198a2bbd9a149c05dcb6430806b4c <span style='color:#111;'> 852B </span>","children":null,"spread":false}],"spread":false},{"title":"07","children":[{"title":"5c629e1672620447d29f2f7df2eed4281862cd <span style='color:#111;'> 370B </span>","children":null,"spread":false}],"spread":false},{"title":"c0","children":[{"title":"94d632e6475b48e7d40a67688a047dac8cb799 <span style='color:#111;'> 187B </span>","children":null,"spread":false}],"spread":false},{"title":"ad","children":[{"title":"514f0ab18f601f4bdbe28f986cf4cf2660d6ff <span style='color:#111;'> 369B </span>","children":null,"spread":false}],"spread":false},{"title":"8d","children":[{"title":"8b2374de2b77594625b10954192d9a4982efa0 <span style='color:#111;'> 105B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"HEAD <span style='color:#111;'> 23B </span>","children":null,"spread":false},{"title":"config <span style='color:#111;'> 324B </span>","children":null,"spread":false},{"title":"FETCH_HEAD <span style='color:#111;'> 629B </span>","children":null,"spread":false},{"title":"refs","children":[{"title":"heads","children":[{"title":"master <span style='color:#111;'> 41B </span>","children":null,"spread":false}],"spread":false},{"title":"tags","children":null,"spread":false},{"title":"remotes","children":[{"title":"origin","children":[{"title":"HEAD <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"master <span style='color:#111;'> 41B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"hooks","children":[{"title":"pre-applypatch.sample <span style='color:#111;'> 424B </span>","children":null,"spread":false},{"title":"pre-push.sample <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"commit-msg.sample <span style='color:#111;'> 896B </span>","children":null,"spread":false},{"title":"pre-commit.sample <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"applypatch-msg.sample <span style='color:#111;'> 478B </span>","children":null,"spread":false},{"title":"prepare-commit-msg.sample <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"update.sample <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false},{"title":"fsmonitor-watchman.sample <span style='color:#111;'> 3.25KB </span>","children":null,"spread":false},{"title":"post-update.sample <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"pre-rebase.sample <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"pre-receive.sample <span style='color:#111;'> 544B </span>","children":null,"spread":false}],"spread":false},{"title":"description <span style='color:#111;'> 73B </span>","children":null,"spread":false}],"spread":false},{"title":"HACKING.rst <span style='color:#111;'> 4.26KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 93B </span>","children":null,"spread":false},{"title":"README <span style='color:#111;'> 9.18KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • Sunboy_wechat :
    没教程,还是不行。
    2019-07-24
  • 1632401541 :
    很鸡肋,不行
    2019-05-09

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明