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.
我想取微风矩阵的实部。我尝试这个作为复数,但它不编译:
val realMat = mat.real
mat.mapValues(_.real)应该做的伎俩
mat.mapValues(_.real)
一个简单的谷歌搜索(3 秒)可能会导致您这样做:
val (er, ei, _) = eig(a)
取自这里: https ://github.com/scalanlp/breeze/wiki/Linear-Algebra-Cheat-Sheet