
编程
mathilde27
这个作者很懒,什么都没留下…
展开
-
CMAKE版本更新
apt-get install 的版本比软件需要的cmake版本低1. 卸载sudo apt-get remove cmakecmake --version2. 官网下载新版本wget https://github.com/Kitware/CMake/releases/download/v3.19.0-rc2/cmake-3.19.0-rc2-Linux-x86_64.tar.gz3. 解压tar zxvf cmake-3.19.0-rc2-Linux-x86_64.ta原创 2020-10-30 16:58:14 · 544 阅读 · 0 评论 -
linux文件夹复制
把文件夹下所有文件复制到另一个文件夹cp -r ./dir1/. ./dir2复制某个文件cp dir/file1 dir2/file2创建文件并编辑cat > newfile编辑ctrl+D保存退出gedit file原创 2016-11-15 15:58:23 · 396 阅读 · 0 评论 -
gcc编译C文件,生成调用静态库
文件结构为:.├── include│ ├── blaswrap.h│ ├── clapack.h│ ├── f2c.h│ ├── hello.h│ ├── add.h├── lib│ ├── blas_LINUX.a│ ├── lapack_LINUX.a│ └── libf2c.a├── src│ ├── hello.c│ ├──原创 2016-11-15 16:53:06 · 856 阅读 · 0 评论 -
SVD (c语言代码)
/** svdcomp - SVD decomposition routine.* Takes an mxn matrix a and decomposes it into udv, where u,v are* left and right orthogonal transformation matrices, and d is a* diagonal matrix of singular原创 2016-11-25 14:08:53 · 10250 阅读 · 10 评论 -
pdb for debug
What is opencv_worldOpencv_world is a dll that packs everything from opencv into on library file. Good thing about this is that you only need to include one library and not 10 or 12 libraries in your p原创 2017-07-13 17:44:56 · 470 阅读 · 0 评论 -
linux 动态链接库
ldconfig is a program to maintain the shared library cache. Updates the necessary links.the cache is stored in /etc/ld.so.cachebe default, the shared library files in /usr/libwhen a new lib installe原创 2017-07-14 16:45:24 · 645 阅读 · 0 评论 -
nfs xshell
ubuntu安装nsf nfs全称:network file system,用来做网络之间文件共享1.下载安装nfs:sudo apt-get install nfs-kernel-server2.配置nfs:sudo nano /etc/exports 这个打开后发现有例子,用了注释# /srv/homes hostname1(rw,sync,no_subtree_check) 照着原创 2017-01-06 14:32:48 · 940 阅读 · 0 评论 -
openblas
1. installsudo apt-get install libopenblas-dev 首先可以apt search openblas 看看哪些,然后apt安装 安装完看装在哪里 whereis libopenblas, 我的是在 /usr/lib 源码安装 git clone https://github.com/xianyi/OpenBLAS make -j8 make原创 2017-07-14 18:12:27 · 4083 阅读 · 1 评论 -
矩阵乘法 GEMM汇编教程(附源码链接)
Tengine GEMM汇编教程原文链接:https://mp.weixin.qq.com/s/Ks9-SvaNuRSmEVW3hOV_jg转载请注明原文链接!!!GEMM简介什么是GEMM? 它的英文全称是 GEneral Matrix to Matrix Multiplication (通用矩阵的矩阵乘法). GEMM在神经网络的计算中占据很重要的位置。这篇文章Why gemm is ...转载 2019-08-28 17:11:49 · 2366 阅读 · 0 评论 -
批处理练习
练习1: call a.bat@echo offecho "this is a"call b.batecho "end of a"pauseb.bat@echo offecho "this is B"练习2: if 处理,参数查看help help if c.bat 1 2 c.bat 1 1@echo offset p1=%1set p2=%2IF %p1%==%p2% got原创 2016-12-28 15:21:31 · 847 阅读 · 0 评论 -
二叉树的C语言实现
二叉树的 先序,中序,后序#include<iostream>using namespace std;struct Node{ int value; Node *left, *right;};class BT{public: Node *root; BT(){ root = NULL; } void insert(int va原创 2016-12-25 22:17:19 · 747 阅读 · 0 评论 -
傅里叶变换(python)
import cv2import matplotlib.pyplot as pltimport matplotlib.cm as cm%matplotlib inlinedef imshow(img): plt.imshow(img,cm.gray_r,interpolation='nearest')import numpy as npdim=31img=np.zeros((d原创 2016-10-21 15:08:58 · 1691 阅读 · 0 评论 -
laplacian算子的推导
f(x+h)=f(x)+f′(x)h+12f′′(x)h2 f(x+h)=f(x)+f'(x)h+\frac{1}{2}f''(x)h^2 f(x−h)=f(x)−f′(x)h+12f′′(x)h2 f(x-h)=f(x)-f'(x)h+\frac{1}{2}f''(x)h^2 f(x+h)+f(x−h)=2f(x)+f′′(x)h2 f(x+h)+f(x-h)=2f(x)+f''(x)原创 2016-10-25 16:28:35 · 3563 阅读 · 0 评论 -
#ifdef __cplusplus
为了避免符号名冲突,C源文件 foo.c 经过编译后,bi全局变量和函数名后面加"_" c的源文件编译后是 ”foo_“fortran的源文件编译后的符号名是“_foo_"C++中,函数重载,Function Signature 函数签名 int foo(int);void foo(float);在编译compile和链接link处理符号时,一个函数签名对应一翻译 2016-10-20 10:13:08 · 482 阅读 · 0 评论 -
C++字符串处理(re),创建文件夹
用 rfindstring filename="../test/2715DTZ.jpg"string f1,f2;size_t i=filename.rfind("/",filename.length());if(i==string::npos){ // if not contain "/" f1=filename; }else{ f1=filename.subst原创 2016-10-31 14:11:44 · 574 阅读 · 0 评论 -
cmake入门 step1 (一行cmake语句)
文件树:├── build├── CMakeLists.txt├── hello.cCMakeLists.txtADD_EXECUTABLE(hello hello.c)hello.c#include<stdio.h>int main(){ printf("hello world ^_^ \n"); return 0;}执行命令cd buildcmake ..make原创 2016-11-15 11:31:37 · 704 阅读 · 0 评论 -
cmake入门step2 (多文件项目)
这一篇主要关注怎么加入头文件,生成静态库,调用静态库文件树.├── build├── CMakeLists.txt├── main.c├── include│ ├── add.h│ └── hello.h└── src ├── add.c ├── hello.c ├── CMakeLists.txt./CMakeLists.txtCMAKE_MINIMU原创 2016-11-15 12:13:19 · 536 阅读 · 0 评论 -
C语言调用 LAPACK (window+linux)详细步骤
搞这个clapack 花了很长时间,成功之后决定写个博客整理一下:【写在前面】:LAPACK全称是 Linear Algebra PACKage, LAPACK, BLAS 本身是Fortran写的。函数以XYYZZZ形式命名,首字母代表数据类型, - d: 双精度double - c: 单精度复数 complex - s: 单精度实数singble real1. 下载 clap原创 2016-11-15 11:05:13 · 7553 阅读 · 2 评论 -
c++ vector::iterator
vector 的iterator 迭代器是一个指针 vector.begin() 是指向第一个元素的指针 *iter 就是相应的元素注意 vector.erase(这里面必须是一个iterator) 比如: // erase the 6th element myvector.erase (myvector.begin()+5); // erase the first 3 elements原创 2016-10-07 23:02:04 · 1020 阅读 · 0 评论