loop1-bug.cpp

来自「A C++ class library for scientific compu」· C++ 代码 · 共 23 行

CPP
23
字号
// In KAI C++ 3.2, restrict causes problems for copy propagation.// Temporary fix: disable restrict#define BZ_DISABLE_RESTRICT#include <blitz/vector.h>BZ_USING_NAMESPACE(blitz)template<class T> void sink(T&) { }void foo(int N){    Vector<double> x(N);    Vector<double> y(N);    x=sqrt(y);    sink(x);    sink(y);}

⌨️ 快捷键说明

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