Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Octave 中是否有一个内置函数来计算矩阵的元素倒数,或者是否有必要实现一个运行类似代码的函数mRecip = ones(size(m)) ./ m?
mRecip = ones(size(m)) ./ m
快速搜索“recip”或“reciprocal”的文档并没有产生任何有用的信息。
以下似乎也同样有效:
mRecip = 1./m