摘要: #include#includeint D=5;int M=4;int main(){ arma::fmat x; x.randn(D,1); arma::fmat A; A.randn(M,D); std::cout<<"x= \n"<<x<<std::... 阅读全文
posted @ 2019-03-10 18:47 2021年的顺遂平安君 阅读(81) 评论(0) 推荐(0)
摘要: ``` include include int D=5; int M=4; int main() { arma::fmat x; x.randn(D,1); arma::fmat A; A.randn(M,D); std::cout 阅读全文
posted @ 2019-03-10 18:47 2021年的顺遂平安君 阅读(797) 评论(0) 推荐(0)
摘要: 安装完 之后,系统中默认的编译器不再是 系列,编译一些库的时候经常产生问题。 在 变量中设置 ,把 ,`g++ c++ cc Gcc`系列。 阅读全文
posted @ 2019-03-10 18:45 2021年的顺遂平安君 阅读(576) 评论(0) 推荐(0)
摘要: 安装完Xcode之后,系统中默认的编译器不再是Gcc系列,编译一些库的时候经常产生问题。 在PATH变量中设置symbol link,把gcc,g++,c++,cc全链接到Gcc系列。 阅读全文
posted @ 2019-03-10 18:45 2021年的顺遂平安君 阅读(75) 评论(0) 推荐(0)
摘要: { "cmd" : ["g++ -std=c++14 -Wall -larmadillo -framework Accelerate ${file_name} -o ${file_base_name} && ./${file_base_name}"], ... 阅读全文
posted @ 2019-03-10 17:20 2021年的顺遂平安君 阅读(55) 评论(0) 推荐(0)
摘要: ``` { "cmd" : ["g++ -std=c++14 -Wall -larmadillo -framework Accelerate ${file_name} -o ${file_base_name} && ./${file_base_name}"], "selector" : "source.c", "shell": true, "working_dir" : "$file_p... 阅读全文
posted @ 2019-03-10 17:20 2021年的顺遂平安君 阅读(212) 评论(0) 推荐(0)