2022年2月27日

MPI_矩阵乘法_集体通信_SUMMA算法

摘要: #include <mpi.h>#include <time.h>#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <sys/time.h>#include <math.h>#include <string.h> voi 阅读全文

posted @ 2022-02-27 22:03 Yan12345678 阅读(142) 评论(0) 推荐(0) 编辑

MPI_矩阵乘法_各进程随机产生数据_SUMMA算法

摘要: #include <mpi.h>#include <time.h>#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <sys/time.h>#include <math.h> void RandomMatrix(int 阅读全文

posted @ 2022-02-27 20:12 Yan12345678 阅读(65) 评论(0) 推荐(0) 编辑

2021年8月31日

decisionTrees_ID3

摘要: import math,operatordef calShannonEnt(dataSet): numEntries = len(dataSet) labelCounts = {} for featVec in dataSet: currentLabel = featVec[-1] if curre 阅读全文

posted @ 2021-08-31 15:37 Yan12345678 阅读(30) 评论(0) 推荐(0) 编辑

2021年8月28日

kNN_handwriting

摘要: import numpy as npfrom os import listdirimport operatordef img2vector(filename): fr = open(filename) lines = fr.readlines() returnVect = np.zeros((1,1 阅读全文

posted @ 2021-08-28 18:37 Yan12345678 阅读(56) 评论(0) 推荐(0) 编辑

kNN_datingTest

摘要: import numpy as npimport operatordef classify1(inX, dataset, labels, k): datasetSize = dataset.shape[0] diffMat = np.tile(inX,(datasetSize,1)) - datas 阅读全文

posted @ 2021-08-28 16:38 Yan12345678 阅读(36) 评论(0) 推荐(0) 编辑

2020年12月6日

叔本华《人生的智慧》摘录

摘要: 1、我认为决定凡人命运的根本差别在于三项内容,它们是:(1)人的自身;(2)人所拥有的身外之物;(3)人们对他的看法。(1)包括健康、力量、外貌、气质、道德品格、精神智力及其潜在发展;(2)人所拥有的身外之物,亦即财产和所有意义上的占有物;(3)他人的看法又可分为名誉、地位和名声。而人自身拥有的真正 阅读全文

posted @ 2020-12-06 12:40 Yan12345678 阅读(585) 评论(0) 推荐(0) 编辑

2020年11月20日

OpenFOAM关于fvm::Sp的选择使用问题

摘要: 当在求解器中添加对流扩散输运方程时,通常会需要添加源项,而对于源项中的一些与变量线性相关的表达式的处理,有以下考量 阅读全文

posted @ 2020-11-20 16:34 Yan12345678 阅读(808) 评论(0) 推荐(0) 编辑

2020年11月16日

Build error: ‘vector’ is not a member of ‘std’

摘要: foam-extend-4.0编译安装fsiFoam工具包,出现如标题所示的报错,本以为是gcc版本的问题,后来在男神的帮助下解决了,但还是好像不知道是不是gcc的问题,有点相关,但解决方案又不是修改环境配置。 https://github.com/wyldckat/FluidStructureIn 阅读全文

posted @ 2020-11-16 12:05 Yan12345678 阅读(941) 评论(0) 推荐(0) 编辑

2020年11月15日

中国哲学简史读后感

摘要: 1、哲学,就是对于人生的有系统的反思的思想。 2、事实上,,每种大宗教就是一种哲学加上一定的上层建筑,包括迷信、教条、仪式和组织。3、道家与道教的教义不仅不同,甚至相反。道家教人顺乎自然,而道教教人反乎自然。 4、“中国文化的基础是伦理(特别是儒家伦理),不是宗教……” 5、对超乎现世的追求是人类先 阅读全文

posted @ 2020-11-15 16:43 Yan12345678 阅读(586) 评论(0) 推荐(0) 编辑

2020年11月5日

虚拟机容易死机&安装OF报错g++: internal compiler error: Killed (program cc1plus)

摘要: https://blog.csdn.net/qq_27148893/article/details/88936044?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_ 阅读全文

posted @ 2020-11-05 15:18 Yan12345678 阅读(189) 评论(0) 推荐(0) 编辑

导航