資源簡介
本資源主要是《GPU與MATLAB混合編程》書中的所有的例子的實現代碼。對于購買了這本書的同學會有找不到書中源代碼的情況,這時候,您就可以下載本代碼集合,本代碼集合擁有完整的書中的所有例子的代碼。
代碼片段和文件信息
%?compareVec.m
load(‘compareImageVector.mat‘);
[sizeX?sizeY?sizeZ]?=?size(template);
y?=?zeros(121‘double‘);
tic
mean_v?=?mean(v‘)‘;
std_v?=?std(v‘)‘;
mean_matrix?=?mean_v(:ones(1size(v2)));
normalized_v?=?v?-?mean_matrix;
mean_template?=?mean(template_vec);
std_template?=?std(template_vec);
normalized_template?=?template_vec?-?mean_template;
y?=??normalized_v?*?normalized_template;
y?=?y./(std_v*std_template);
toc
y
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????64951??2012-11-24?07:29??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_1\codes\book.jpg
?????文件????6887680??2012-11-26?13:46??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_1\codes\compareImageVector.mat
?????文件????????437??2012-12-04?23:58??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_1\codes\compareVec.m
?????文件????????615??2012-12-04?23:58??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_1\codes\compareVec_Loop.m
?????文件????????656??2012-12-10?17:31??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_1\codes\compareVec_LoopImprove.m
?????文件????????560??2013-09-17?23:55??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_1\codes\compareVec_LoopNaive.m
?????文件????????274??2012-11-20?10:15??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_1\codes\ifExample.m
?????文件????????240??2012-11-20?11:15??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_1\codes\ifExample2.m
?????文件????????262??2012-11-25?09:06??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_1\codes\myDisplay.m
?????文件????????305??2012-11-20?10:18??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_1\codes\nonifExample.m
?????文件????????390??2012-11-20?11:15??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_1\codes\nonifExample2.m
?????文件????????190??2012-11-19?11:24??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_1\codes\nonVec1.m
?????文件????1047586??2012-11-24?07:29??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_1\codes\ob
????..A.SH.?????12800??2014-01-24?12:21??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_1\codes\Thumbs.db
?????文件????????128??2012-11-19?11:24??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_1\codes\Vec1.m
?????文件????????879??2013-05-28?11:22??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_2\codes\AddVectors.cu
?????文件????????142??2013-02-21?10:12??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_2\codes\AddVectors.h
?????文件?????143153??2013-06-10?15:42??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_2\codes\AddVectors.obj
?????文件???????1162??2013-02-21?11:04??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_2\codes\AddVectorsCuda.cpp
?????文件??????12288??2013-06-10?15:42??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_2\codes\AddVectorsCuda.mexw64
?????文件???????1545??2013-02-28?07:54??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_2\codes\conv2Mex.cpp
?????文件???????1618??2013-02-28?07:37??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_2\codes\conv2Mex.cu
?????文件????????161??2013-02-28?07:54??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_2\codes\conv2Mex.h
?????文件???????8192??2013-06-11?00:07??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_2\codes\conv2Mex.mexw64
?????文件?????144379??2013-06-11?00:14??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_2\codes\conv2Mex.obj
?????文件????????973??2013-02-28?08:05??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_2\codes\conv2MexCuda.cpp
?????文件??????13824??2013-06-11?00:14??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_2\codes\conv2MexCuda.mexw64
?????文件????????424??2013-06-11?00:14??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_2\codes\convol_cuda.m
?????文件????????213??2013-06-10?23:53??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_2\codes\convol_matlab.m
?????文件????????227??2013-06-11?00:07??Updated_Accelerating_Matlab_with_GPU_Computing_Example_Codes\Accelerating?Matlab?with?GPU?Computing?Example?Codes\Chapter_2\codes\convol_mex.m
............此處省略150個文件信息
評論
共有 條評論