Replies: 14 comments 1 reply
-
3b1b的线性规划系列视频无疑是善良的数学人无私的馈赠。大家相信,这个美妙的视频,可以给拼搏于 AC 这道题的逐梦之路上的你,提供一个有力的援助。 |
Beta Was this translation helpful? Give feedback.
-
矩阵的优化那里好像有一点问题 |
Beta Was this translation helpful? Give feedback.
-
嗯……其实可以加上多项式快速幂+多项式取模+拉格朗日插值加速矩阵乘法 |
Beta Was this translation helpful? Give feedback.
-
@MrFoodinChina 好耶,欢迎来添加~ |
Beta Was this translation helpful? Give feedback.
-
代码缩进为什么是2个空格? |
Beta Was this translation helpful? Give feedback.
-
@szdytom 跑的是 clang-format 的 Google Style |
Beta Was this translation helpful? Give feedback.
-
缩进太长的话代码可能会比较宽,在网页上读起来不方便 |
Beta Was this translation helpful? Give feedback.
-
小tips:矩阵之间的乘法最好不写乘法符号,带了符号的矩阵乘法往往有别的意思 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
推荐一个小技巧, struct Matrix{
int n, m, data[9][9];
int* operator[](int x){
return data[x];
}
}; 这样写可以直接用数组的写法(如 |
Beta Was this translation helpful? Give feedback.
-
那个一个稍微复杂一些的例子的矩阵最后一行第一列应为0? |
Beta Was this translation helpful? Give feedback.
-
矩阵乘法的优化一栏中,实测 两次的时间一模一样 |
Beta Was this translation helpful? Give feedback.
-
https://oi-wiki.org/math/matrix/
Beta Was this translation helpful? Give feedback.
All reactions