?? abs_sum.cc
字號:
#include <iostream>#include "mtl/utils.h"#include "mtl/mtl.h"#include "mtl/linalg_vec.h"/* Sample output;X: [1,2,3,4,]The L-1 norm of X is 10 */using namespace mtl;intmain(){ double x_[4] = { 1, 2, 3, 4 }; double s = one_norm(array_to_vec(x_)); std::cout << "X: "; print_vector(array_to_vec(x_)); std::cout << "The L-1 norm of X is " << s << std::endl;}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -