⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sedscript.txt

📁 密码大家Shoup写的数论算法c语言实现
💻 TXT
字号:
# This is a sed script to make most of the common syntactic# changes necessary to move from NTL 2.0 to 3.0.# If this file is in sedscript.txt (as it originally is)# the command#    sed -f sedscript.txt < old.c > new.c# will convert old.c to new.c with the necesary changes.## Please note that this script is niether "sound" or "complete",# but should still be useful.# rename some classess/BB/GF2X/gs/BB_p/GF2E/gs/GF2Vector/vec_GF2/gs/GF2Matrix/mat_GF2/g# rename some functionss/ZZ_pInit(/ZZ_p::init(/gs/zz_pInit(/zz_p::init(/gs/zz_pFFTInit(/zz_p::FFTInit(/s/GF2EInit(/GF2E::init(/gs/LowBits/trunc/gs/Long(/to_long(/gs/XDouble(/to_xdouble(/gs/Quad_float(/to_quad_float(/gs/trace(/TraceMod(/gs/norm(/NormMod(/gs/MinPoly(/MinPolyMod(/gs/IrredPoly(/IrredPolyMod(/gs/CharPoly(/CharPolyMod(/g# rename generic vector, pair, matrix macro instantations# these assume no embedded blankss/vector_decl(\(.*\))/ntl_vector_decl(\1,vec_\1)/gs/vector_io_decl(\(.*\))/ntl_io_vector_decl(\1,vec_\1)/gs/vector_eq_decl(\(.*\))/ntl_eq_vector_decl(\1,vec_\1)/g#s/vector_impl(\(.*\))/ntl_vector_impl(\1,vec_\1)/gs/vector_impl_plain(\(.*\))/ntl_vector_impl_plain(\1,vec_\1)/gs/vector_io_impl(\(.*\))/ntl_io_vector_impl(\1,vec_\1)/gs/vector_eq_impl(\(.*\))/ntl_eq_vector_impl(\1,vec_\1)/g#s/matrix_decl(\(.*\))/ntl_matrix_decl(\1,vec_\1,vec_vec_\1,mat_\1)/gs/matrix_io_decl(\(.*\))/ntl_io_matrix_decl(\1,vec_\1,vec_vec_\1,mat_\1)/gs/matrix_eq_decl(\(.*\))/ntl_eq_matrix_decl(\1,vec_\1,vec_vec_\1,mat_\1)/g#s/matrix_impl(\(.*\))/ntl_matrix_impl(\1,vec_\1,vec_vec_\1,mat_\1)/gs/matrix_io_impl(\(.*\))/ntl_io_matrix_impl(\1,vec_\1,vec_vec_\1,mat_\1)/gs/matrix_eq_impl(\(.*\))/ntl_eq_matrix_impl(\1,vec_\1,vec_vec_\1,mat_\1)/g#s/pair_decl(\(.*\),\(.*\))/ntl_pair_decl(\1,\2,pair_\1_\2)/gs/pair_io_decl(\(.*\),\(.*\))/ntl_pair_io_decl(\1,\2,pair_\1_\2)/gs/pair_eq_decl(\(.*\),\(.*\))/ntl_pair_eq_decl(\1,\2,pair_\1_\2)/g#s/pair_impl(\(.*\),\(.*\))/ntl_pair_impl(\1,\2,pair_\1_\2)/gs/pair_io_impl(\(.*\),\(.*\))/ntl_pair_io_impl(\1,\2,pair_\1_\2)/gs/pair_eq_impl(\(.*\),\(.*\))/ntl_pair_eq_impl(\1,\2,pair_\1_\2)/g# rename type names for the generic types# these allow embedded blankss/pair *( *\([^,() ]*\) *, *\([^() ]*\) *)/pair_\1_\2/gs/vector *( *\([^() ]*\) *)/vec_\1/gs/matrix *( *\([^() ]*\) *)/mat_\1/g## repeat to handle one nesting level#s/pair *( *\([^,() ]*\) *, *\([^() ]*\) *)/pair_\1_\2/gs/vector *( *\([^() ]*\) *)/vec_\1/gs/matrix *( *\([^() ]*\) *)/mat_\1/g## repeat to handle two nesting levels#s/pair *( *\([^,() ]*\) *, *\([^() ]*\) *)/pair_\1_\2/gs/vector *( *\([^() ]*\) *)/vec_\1/gs/matrix *( *\([^() ]*\) *)/mat_\1/g# rename header files for generic typess/vector\.h/ntl_vector\.h/s/matrix\.h/ntl_matrix\.h/s/pair\.h/ntl_pair\.h/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -