?? outer.cpp
字號:
/***************************************************************************** * outer.cpp Blitz++ outer product (tensor notation) example * $Id: outer.cpp,v 1.5 2004/10/07 01:23:26 julianc Exp $ *****************************************************************************/#include <blitz/array.h>BZ_USING_NAMESPACE(blitz)int main(){ Array<float,1> x(4), y(4); Array<float,2> A(4,4); x = 1, 2, 3, 4; y = 1, 0, 0, 1; firstIndex i; secondIndex j; A = x(i) * y(j); cout << A << endl; return 0;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -