Skip to content

Commit

Permalink
refactor: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiphereth-A committed Dec 7, 2023
1 parent 3f70df4 commit 72aac68
Show file tree
Hide file tree
Showing 122 changed files with 159 additions and 159 deletions.
6 changes: 3 additions & 3 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ notebook:
geo2d: 二维计算几何
geo3d: 三维计算几何
comb: 组合数学
math: 数学
matrix: 矩阵
lalg: 线性代数
conv: 卷积
poly: 多项式
math: 数论与其他数学
str: 字符串
rand: 随机数与随机化算法
game: 游戏
Expand Down Expand Up @@ -933,7 +933,7 @@ notebook:
- nth_term_lrec: 线性递推数列的第 N 项
code_ext: hpp
test_ext: cpp
matrix:
lalg:
- mat: 矩阵
code_ext: hpp
test_ext: cpp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_LEQS_SOLVER
#define TIFALIBS_MATRIX_LEQS_SOLVER
#ifndef TIFALIBS_LALG_LEQS_SOLVER
#define TIFALIBS_LALG_LEQS_SOLVER

#include "mat.hpp"
#include "mat_merge_lr.hpp"
Expand Down
4 changes: 2 additions & 2 deletions src/code/matrix/lfsr_bm.hpp → src/code/lalg/lfsr_bm.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_LFSR_BM
#define TIFALIBS_MATRIX_LFSR_BM
#ifndef TIFALIBS_LALG_LFSR_BM
#define TIFALIBS_LALG_LFSR_BM

#include "../util/util.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/code/matrix/mat.hpp → src/code/lalg/mat.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT
#define TIFALIBS_MATRIX_MAT
#ifndef TIFALIBS_LALG_MAT
#define TIFALIBS_LALG_MAT

#include "../util/util.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_CHARPOLY
#define TIFALIBS_MATRIX_MAT_CHARPOLY
#ifndef TIFALIBS_LALG_MAT_CHARPOLY
#define TIFALIBS_LALG_MAT_CHARPOLY

#include "mat.hpp"
#include "mat_uhb.hpp"
Expand Down
4 changes: 2 additions & 2 deletions src/code/matrix/mat_det.hpp → src/code/lalg/mat_det.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_DET
#define TIFALIBS_MATRIX_MAT_DET
#ifndef TIFALIBS_LALG_MAT_DET
#define TIFALIBS_LALG_MAT_DET

#include "../util/abs_constexpr.hpp"
#include "../util/util.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_DET_RD
#define TIFALIBS_MATRIX_MAT_DET_RD
#ifndef TIFALIBS_LALG_MAT_DET_RD
#define TIFALIBS_LALG_MAT_DET_RD

#include "lfsr_bm.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_GE_BASIC
#define TIFALIBS_MATRIX_MAT_GE_BASIC
#ifndef TIFALIBS_LALG_MAT_GE_BASIC
#define TIFALIBS_LALG_MAT_GE_BASIC

#include "mat_ge_swapr_.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_GE_EUCLID
#define TIFALIBS_MATRIX_MAT_GE_EUCLID
#ifndef TIFALIBS_LALG_MAT_GE_EUCLID
#define TIFALIBS_LALG_MAT_GE_EUCLID

#include "mat_ge_swapr_.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_GE_SWAPR_
#define TIFALIBS_MATRIX_MAT_GE_SWAPR_
#ifndef TIFALIBS_LALG_MAT_GE_SWAPR_
#define TIFALIBS_LALG_MAT_GE_SWAPR_

#include "../util/util.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_GE_XOR
#define TIFALIBS_MATRIX_MAT_GE_XOR
#ifndef TIFALIBS_LALG_MAT_GE_XOR
#define TIFALIBS_LALG_MAT_GE_XOR

#include "mat_ge_swapr_.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_HAFNIAN
#define TIFALIBS_MATRIX_MAT_HAFNIAN
#ifndef TIFALIBS_LALG_MAT_HAFNIAN
#define TIFALIBS_LALG_MAT_HAFNIAN

#include "../util/util.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/code/matrix/mat_inv.hpp → src/code/lalg/mat_inv.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_INV
#define TIFALIBS_MATRIX_MAT_INV
#ifndef TIFALIBS_LALG_MAT_INV
#define TIFALIBS_LALG_MAT_INV

#include "mat_merge_lr.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_MERGE_LR
#define TIFALIBS_MATRIX_MAT_MERGE_LR
#ifndef TIFALIBS_LALG_MAT_MERGE_LR
#define TIFALIBS_LALG_MAT_MERGE_LR

#include "mat.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_MERGE_UD
#define TIFALIBS_MATRIX_MAT_MERGE_UD
#ifndef TIFALIBS_LALG_MAT_MERGE_UD
#define TIFALIBS_LALG_MAT_MERGE_UD

#include "mat.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_MINPOLY_RD
#define TIFALIBS_MATRIX_MAT_MINPOLY_RD
#ifndef TIFALIBS_LALG_MAT_MINPOLY_RD
#define TIFALIBS_LALG_MAT_MINPOLY_RD

#include "lfsr_bm.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/code/matrix/mat_pow.hpp → src/code/lalg/mat_pow.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_POW
#define TIFALIBS_MATRIX_MAT_POW
#ifndef TIFALIBS_LALG_MAT_POW
#define TIFALIBS_LALG_MAT_POW

#include "../util/util.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/code/matrix/mat_rk.hpp → src/code/lalg/mat_rk.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_RK
#define TIFALIBS_MATRIX_MAT_RK
#ifndef TIFALIBS_LALG_MAT_RK
#define TIFALIBS_LALG_MAT_RK

#include "../util/abs_constexpr.hpp"
#include "../util/util.hpp"
Expand Down
4 changes: 2 additions & 2 deletions src/code/matrix/mat_tr.hpp → src/code/lalg/mat_tr.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_TR
#define TIFALIBS_MATRIX_MAT_TR
#ifndef TIFALIBS_LALG_MAT_TR
#define TIFALIBS_LALG_MAT_TR

#include "../util/util.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/code/matrix/mat_trans.hpp → src/code/lalg/mat_trans.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_TRANS
#define TIFALIBS_MATRIX_MAT_TRANS
#ifndef TIFALIBS_LALG_MAT_TRANS
#define TIFALIBS_LALG_MAT_TRANS

#include "../util/util.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/code/matrix/mat_uhb.hpp → src/code/lalg/mat_uhb.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_MAT_UHB
#define TIFALIBS_MATRIX_MAT_UHB
#ifndef TIFALIBS_LALG_MAT_UHB
#define TIFALIBS_LALG_MAT_UHB

#include "../util/util.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/code/matrix/spmat.hpp → src/code/lalg/spmat.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_SPMAT
#define TIFALIBS_MATRIX_SPMAT
#ifndef TIFALIBS_LALG_SPMAT
#define TIFALIBS_LALG_SPMAT

#include "../util/util.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_SPMAT_MERGE_LR
#define TIFALIBS_MATRIX_SPMAT_MERGE_LR
#ifndef TIFALIBS_LALG_SPMAT_MERGE_LR
#define TIFALIBS_LALG_SPMAT_MERGE_LR

#include "spmat.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIFALIBS_MATRIX_SPMAT_MERGE_UD
#define TIFALIBS_MATRIX_SPMAT_MERGE_UD
#ifndef TIFALIBS_LALG_SPMAT_MERGE_UD
#define TIFALIBS_LALG_SPMAT_MERGE_UD

#include "spmat.hpp"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/test_cpverifier/aizu/itp1_6_d.test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define PROBLEM "https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/all/ITP1_6_D"

#include "../../code/matrix/mat.hpp"
#include "../../code/lalg/mat.hpp"

int main() {
std::ios::sync_with_stdio(false);
Expand Down
2 changes: 1 addition & 1 deletion src/test_cpverifier/aizu/itp1_7_d.test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define PROBLEM "https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/all/ITP1_7_D"

#include "../../code/matrix/mat.hpp"
#include "../../code/lalg/mat.hpp"

int main() {
std::ios::sync_with_stdio(false);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define PROBLEM "https://judge.yosupo.jp/problem/characteristic_polynomial"

#include "../../code/math/mint_d31.hpp"
#include "../../code/matrix/mat_charpoly.hpp"
#include "../../code/lalg/mat_charpoly.hpp"
#include "../../code/util/ios_container.hpp"

using mint = tifa_libs::math::mint_d31<-1>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define PROBLEM "https://judge.yosupo.jp/problem/characteristic_polynomial"

#include "../../code/math/mint_d63.hpp"
#include "../../code/matrix/mat_charpoly.hpp"
#include "../../code/lalg/mat_charpoly.hpp"
#include "../../code/util/ios_container.hpp"

using mint = tifa_libs::math::mint_d63<-1>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define PROBLEM "https://judge.yosupo.jp/problem/characteristic_polynomial"

#include "../../code/math/mint_ds.hpp"
#include "../../code/matrix/mat_charpoly.hpp"
#include "../../code/lalg/mat_charpoly.hpp"
#include "../../code/util/ios_container.hpp"

using mint = tifa_libs::math::mint_ds<-1>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define PROBLEM "https://judge.yosupo.jp/problem/characteristic_polynomial"

#include "../../code/math/mint_s30.hpp"
#include "../../code/matrix/mat_charpoly.hpp"
#include "../../code/lalg/mat_charpoly.hpp"
#include "../../code/util/ios_container.hpp"

using mint = tifa_libs::math::mint_s30<998244353>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define PROBLEM "https://judge.yosupo.jp/problem/characteristic_polynomial"

#include "../../code/math/mint_s63.hpp"
#include "../../code/matrix/mat_charpoly.hpp"
#include "../../code/lalg/mat_charpoly.hpp"
#include "../../code/util/ios_container.hpp"

using mint = tifa_libs::math::mint_s63<998244353>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define PROBLEM "https://judge.yosupo.jp/problem/characteristic_polynomial"

#include "../../code/math/mint_ss.hpp"
#include "../../code/matrix/mat_charpoly.hpp"
#include "../../code/lalg/mat_charpoly.hpp"
#include "../../code/util/ios_container.hpp"

using mint = tifa_libs::math::mint_ss<998244353>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#define PROBLEM "https://judge.yosupo.jp/problem/hafnian_of_matrix"

#include "../../code/math/mint_d31.hpp"
#include "../../code/matrix/mat.hpp"
#include "../../code/matrix/mat_hafnian.hpp"
#include "../../code/lalg/mat.hpp"
#include "../../code/lalg/mat_hafnian.hpp"

using mint = tifa_libs::math::mint_d31<-1>;
using mat = tifa_libs::math::matrix<mint>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#define PROBLEM "https://judge.yosupo.jp/problem/hafnian_of_matrix"

#include "../../code/math/mint_d63.hpp"
#include "../../code/matrix/mat.hpp"
#include "../../code/matrix/mat_hafnian.hpp"
#include "../../code/lalg/mat.hpp"
#include "../../code/lalg/mat_hafnian.hpp"
#include "../../code/util/fastio.hpp"

using mint = tifa_libs::math::mint_d63<-1>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#define PROBLEM "https://judge.yosupo.jp/problem/hafnian_of_matrix"

#include "../../code/math/mint_ds.hpp"
#include "../../code/matrix/mat.hpp"
#include "../../code/matrix/mat_hafnian.hpp"
#include "../../code/lalg/mat.hpp"
#include "../../code/lalg/mat_hafnian.hpp"

using mint = tifa_libs::math::mint_ds<-1>;
using mat = tifa_libs::math::matrix<mint>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#define PROBLEM "https://judge.yosupo.jp/problem/hafnian_of_matrix"

#include "../../code/math/mint_s30.hpp"
#include "../../code/matrix/mat.hpp"
#include "../../code/matrix/mat_hafnian.hpp"
#include "../../code/lalg/mat.hpp"
#include "../../code/lalg/mat_hafnian.hpp"

using mint = tifa_libs::math::mint_s30<998244353>;
using mat = tifa_libs::math::matrix<mint>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#define PROBLEM "https://judge.yosupo.jp/problem/hafnian_of_matrix"

#include "../../code/math/mint_s63.hpp"
#include "../../code/matrix/mat.hpp"
#include "../../code/matrix/mat_hafnian.hpp"
#include "../../code/lalg/mat.hpp"
#include "../../code/lalg/mat_hafnian.hpp"

using mint = tifa_libs::math::mint_s63<998244353>;
using mat = tifa_libs::math::matrix<mint>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#define PROBLEM "https://judge.yosupo.jp/problem/hafnian_of_matrix"

#include "../../code/math/mint_ss.hpp"
#include "../../code/matrix/mat.hpp"
#include "../../code/matrix/mat_hafnian.hpp"
#include "../../code/lalg/mat.hpp"
#include "../../code/lalg/mat_hafnian.hpp"

using mint = tifa_libs::math::mint_ss<998244353>;
using mat = tifa_libs::math::matrix<mint>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#define PROBLEM "https://judge.yosupo.jp/problem/inverse_matrix"

#include "../../code/math/mint_d31.hpp"
#include "../../code/matrix/mat.hpp"
#include "../../code/matrix/mat_ge_basic.hpp"
#include "../../code/matrix/mat_inv.hpp"
#include "../../code/lalg/mat.hpp"
#include "../../code/lalg/mat_ge_basic.hpp"
#include "../../code/lalg/mat_inv.hpp"

using mint = tifa_libs::math::mint_d31<-1>;
using mat = tifa_libs::math::matrix<mint>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#define PROBLEM "https://judge.yosupo.jp/problem/inverse_matrix"

#include "../../code/math/mint_d63.hpp"
#include "../../code/matrix/mat.hpp"
#include "../../code/matrix/mat_ge_basic.hpp"
#include "../../code/matrix/mat_inv.hpp"
#include "../../code/lalg/mat.hpp"
#include "../../code/lalg/mat_ge_basic.hpp"
#include "../../code/lalg/mat_inv.hpp"

using mint = tifa_libs::math::mint_d63<-1>;
using mat = tifa_libs::math::matrix<mint>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#define PROBLEM "https://judge.yosupo.jp/problem/inverse_matrix"

#include "../../code/math/mint_ds.hpp"
#include "../../code/matrix/mat.hpp"
#include "../../code/matrix/mat_ge_basic.hpp"
#include "../../code/matrix/mat_inv.hpp"
#include "../../code/lalg/mat.hpp"
#include "../../code/lalg/mat_ge_basic.hpp"
#include "../../code/lalg/mat_inv.hpp"

using mint = tifa_libs::math::mint_ds<-1>;
using mat = tifa_libs::math::matrix<mint>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#define PROBLEM "https://judge.yosupo.jp/problem/inverse_matrix"

#include "../../code/math/mint_s30.hpp"
#include "../../code/matrix/mat.hpp"
#include "../../code/matrix/mat_ge_basic.hpp"
#include "../../code/matrix/mat_inv.hpp"
#include "../../code/lalg/mat.hpp"
#include "../../code/lalg/mat_ge_basic.hpp"
#include "../../code/lalg/mat_inv.hpp"

using mint = tifa_libs::math::mint_s30<998244353>;
using mat = tifa_libs::math::matrix<mint>;
Expand Down
Loading

0 comments on commit 72aac68

Please sign in to comment.