摘要:
在 C++ 中,placement new 是一种特殊的 new 操作符,用于在指定的内存地址上构造对象,而不是从堆上分配新内存。这在需要精细控制内存布局或在预分配的缓冲区中构造对象时非常有用,比如在嵌入式系统、内存池或自定义分配器中。 void* buffer = operator new(siz 阅读全文
摘要:
使用boost/multiprecision/cpp_dec_float.hpp #include <boost/multiprecision/cpp_dec_float.hpp> using boost::multiprecision::number; using boost::multiprec 阅读全文
摘要:
https://www.cnblogs.com/jiangkejie/p/15250760.html 公式推导 https://mathworld.wolfram.com/Erf.html erf的定义 函数erf(x)在数学中为误差函数(也称之为高斯误差函数,error function or G 阅读全文
摘要:
Linux中用gnuplot命令画图 binwidth = <something> # set width of x values in each bin bin(val) = binwidth * floor(val/binwidth) plot "datafile" using (bin($2) 阅读全文