Is there any method for multiplying matrices having O(n) complexity?

前端 未结 6 1318
礼貌的吻别
礼貌的吻别 2021-02-08 02:45

I want to multiply two matrices but the triple loop has O(n3) complexity. Is there any algorithm in dynamic programming to multiply two matrices with O(n) complexity?

6条回答
  •  借酒劲吻你
    2021-02-08 03:20

    If the matrices are known to be diagonal, you can multiply them in O(N) operations. But in general, you cannot.

提交回复
热议问题