随笔分类 - 数学 / 线性代数 / 矩阵
摘要:1 Template 1.1 轻量化 灵活度较高,适合直接调用矩阵内值的情形。 typedef vector<vector<int>> Matrix; void resize (Matrix& a, int n, int m) { a.resize(n, vector<int>(m)); } Mat
阅读全文
摘要:新高一矩阵选讲「陶治霖」 https://www.becoder.com.cn/contest/5348 一般的转移矩阵可以放在初始矩阵的前面或者后面,下面为了叙述方便分别成为:前置转移矩阵、后置转移矩阵。 「CF1970E3」Trails (Hard) 考虑 DP。 定义
阅读全文