上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: 可以这样来理解“矩阵快速幂”的思路,它其实源自于任何“幂运算”都满足这样两条关键性质: 结合律:\((A^x)\times(A^y)=A^{x+y}\)。 平方技巧:\((A^x)^2=A^{2x}\)。 把要算的指数 \(t\) 用二进制展开: \[t = b_0\cdot2^0 + b_1\cd 阅读全文
posted @ 2025-05-14 16:32 ijpq 阅读(29) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/build-array-from-permutation/description/?envType=daily-question&envId=2025-05-06 KEY QUESTION Follow-up: Can you solve 阅读全文
posted @ 2025-05-06 23:04 ijpq 阅读(11) 评论(0) 推荐(0)
摘要: Today, I remembered a sentence written by Uncle Lin Nan: "No one will accompany you for a lifetime, so you must adapt to loneliness. No one will help 阅读全文
posted @ 2025-04-30 00:15 ijpq 阅读(20) 评论(0) 推荐(0)
摘要: I understand your frustration, and it's a common feeling when tackling complex problems like this. Finding these insights often comes down to a combin 阅读全文
posted @ 2024-10-14 18:27 ijpq 阅读(41) 评论(0) 推荐(0)
摘要: Principles for Writing Correct Recursive Functions in DFS Algorithms When implementing a Depth-First Search (DFS) algorithm using recursion, it's cruc 阅读全文
posted @ 2024-10-14 13:57 ijpq 阅读(62) 评论(0) 推荐(0)
摘要: as per this issue: https://github.com/pytorch/pytorch/issues/113743 阅读全文
posted @ 2024-07-22 11:47 ijpq 阅读(12) 评论(0) 推荐(0)
摘要: refer to this page to learn about the entire docs about contributing https://github.com/pytorch/pytorch/wiki/The-Ultimate-Guide-to-PyTorch-Contributio 阅读全文
posted @ 2024-07-11 21:59 ijpq 阅读(40) 评论(0) 推荐(0)
摘要: ::: index asm keyword, assembly language in C, inline assembly language, mixing assembly language and C ::: How to Use Inline Assembly Language in C C 阅读全文
posted @ 2024-07-06 14:24 ijpq 阅读(43) 评论(0) 推荐(0)
摘要: HOW TO OPTIMIZE GEMM 介绍一些常规的优化思路,参考:https://github.com/flame/how-to-optimize-gemm/wiki baseline /* Create macros so that the matrices are stored in co 阅读全文
posted @ 2024-04-02 16:22 ijpq 阅读(125) 评论(0) 推荐(0)
摘要: 问题背景: https://airflow-megengine.iap.hh-d.brainpp.cn/log?dag_id=megbrain-release&task_id=prebuild-cu111&execution_date=2022-10-08T06%3A06%3A51%2B00%3A0 阅读全文
posted @ 2024-03-27 13:12 ijpq 阅读(324) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 15 下一页