![]() |
1
2
$IRB-RNARDALL IRB(主):001:0>A=narray.float(3,2,2).indgen =>narray.float(3、2、2): [[[0.0,1.0,2.0], [3.0、4.0、5.0]], [6.0,7.0,8.0], [9.0,10.0,11.0]]] IRB(主):002:0>B=Narray[1..3] =>narray.int(3)条: 〔1, 2, 3〕 IRB(主):003:0>A*B =>narray.float(3、2、2): [[[0.0,2.0,6.0], [3.0、8.0、15.0]], [6.0,14.0,24.0], [9.0、20.0、33.0]]] IRB(主):004:0>(A*B).sum(0) =>narray.float(2,2)浮点数: [8.0,26.0], [44.0,62.0]] IRB(主):005:0>a.mul_-add(b,0) =>narray.float(2,2)浮点数: [8.0,26.0], [44.0,62.0]] |
![]() |
cluster1 · 采取独立的新行动的好处是什么? 6 月前 |
![]() |
Robert · 使用JSON或哈希时,将NULL替换为NIL 7 月前 |
![]() |
lucycoco · 如何解决pod安装问题并成功运行pod安装? 11 月前 |
![]() |
Vessel · Ruby-包含任意数量元素的所有排列 11 月前 |