自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 资源 (6)
  • 收藏
  • 关注

原创 C/C++中,多个指针指向同一个内存,只能free一次

#include<stdio.h>#include<malloc.h>int main(){ printf("hello main\n"); int N = 1000; int* p1 = (int*)malloc(N * sizeof(int)); int* p2 = p1; //同一个内存地址只能free一次( free(p1);和free(p2...

2018-11-22 10:14:54 3283

原创 ubuntu更新源为国内

1、备份源文件sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak2、编辑sources.list,用新的源文件替换sudo gedit /etc/apt/sources.list清华数据源地址:https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/自行选择相应的版本3、更新源:...

2018-11-14 16:11:35 171

原创 ubuntu16安装NFS服务

1、安装NFSsudo apt install nfs-kernel-server2、创建并设置共享目录mkdir /home/zhenglf/nfssudo gedit /etc/exports在最后一行加入/home/zhenglf/nfs *(rw,sync,no_root_squash)各段表达的意思如下,根据实际进行修改/home :共享的目录* ...

2018-11-14 15:58:08 649

转载 Win10下python3和python2同时安装并解决pip共存问题

特别说明,本文是在Windows64位系统下进行的,32位系统请下载相应版本的安装包,安装方法类似。 使用python开发,环境有Python2和 python3 两种,有时候需要两种环境切换使用,下面提供详细教程一份。1、下载python3和python2 进入python官网,链接https://www.python.org/选择Downloads--->Wind...

2018-11-08 00:17:53 93

原创 内存指针

#include "stdio.h"#include "stdlib.h"int main() { int ROW = 3; int COL = 3; int* P = (int*)malloc(sizeof(int)*ROW*COL); int** PP = (int**)malloc(sizeof(int*)*ROW); for (int i=0; i<ROW; i...

2018-11-01 10:18:40 192

单层感知机的Matlab实现

包含单层感知机的matlab实现代码,训练部分,测试部分,和ROC曲线绘制。 单层感知机的背景,原理,其他语言的代码链接请见: http://blog.csdn.net/zlf19910726/article/details/79312939

2018-02-11

Perceptrons An introduction to computational geometry, expanded edition,1988

Perceptrons An introduction to computational geometry, expanded edition,1988 马文·明斯基(Marvin Minsky), 西摩尔·帕普特(Seymour Papert)

2018-02-11

CUDA并行排序(2)——一维Double型10000

double a,b,c; char d,e; int size=20; double arr[size][3];

2017-12-15

CUDA并行排序(2)——二维Double型——分成大小两组

0.000000 6.100000 12.200000 18.300000 24.400000 30.500000 36.600000 42.700000 48.800000 1.000000 7.100000 13.200000 19.300000 25.400000 31.500000 37.600000 43.700000 49.800000

2017-12-14

CUDA并行排序(2)——一维Double型

Sorted 100000000 Double elems in 1803.735 ms (55.441 Melems/sec)

2017-12-07

CUDA并行排序(1)——整数

// 1. A small-set insertion sort. We do this on any set with <=32 elements // 2. A partitioning kernel, which - given a pivot - separates an input // array into elements <=pivot, and >pivot. Two quicksorts will then // be launched to resolve each of these. // 3. A quicksort co-ordinator, which figures out what kernels to launch // and when.

2017-12-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除