Feeds
提问
GPU time slower than CPU time, what went wrong with my GPU implementation?
clc;clearvars -except time_vec; close all; h=gpuArray(0.001); t=0:h:2*pi; alpha=gpuArray(0.5); in=...
8 years 前 | 1 个回答 | 0
1
个回答提问
How to vectorize the following code for derivative by removing for loop?
clc;clear all; close all; h=0.001; t=0:h:4*pi; alpha=0.5; in=sin(t); alphaINT = (real(alpha)>0) .* ceil(real(alph...
8 years 前 | 0 个回答 | 0
0
个回答提问
How to vectorize integral?
h=0.1; t1=0:h:2*pi; alpha=0.3; f=@(x) sin(x); for i=2:length(t1) t=t1(i); k=1/ga...
8 years 前 | 2 个回答 | 0
