明显的rpy2用法引发不支持的操作数类型异常

2024-10-01 22:25:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我对rypy2有一些意想不到的行为:

 ma / robjects.r.rowSums(ma) 

其中ma是矩阵

引发异常

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for /: 'Matrix' and 'FloatVector'

有什么帮助吗?你知道吗


Tags: inmoststdinline矩阵callfilelast

热门问题