Community Profile

photo

Hao Zhang


9 total contributions since 2014

Contact

Hao Zhang's Badges

  • Revival Level 1
  • Thankful Level 1
  • First Answer

View details...

Contributions in
View by

Question


How to Sum the N newest data
Hi, Say I have a code to simulate the time evolution of a very large 3D array E (the electric field), for instantce in finite-d...

1 month ago | 1 answer | 0

1

answer

Question


parfor with knnsearch, why is so slow?
The matlab built-in function knnsearch uses kdtree method to find K nearest neighbors, it is very optimized. However I want to f...

10 months ago | 0 answers | 0

0

answers

Answered
Why is gpuArray\knnsearch so slow?
Hi, the gpu version of knnsearch seems to use brute force method. you can check this by inputing a very large points cloud so th...

10 months ago | 0

Question


Any GPU implementation of k-nearest neighbor search?
Hi, I am developing a SPH (smoothed particle hydrodynamic) code of solving fluid equations in Matlab. I have successfully vector...

10 months ago | 3 answers | 1

3

answers

Question


GPU arrayfun is so slow, what is going on?
Hi, I am trying to understand what the GPU arrayfun is doing? The following is a test code. clear;clc;close all gd=gpuDevice(...

10 months ago | 2 answers | 0

2

answers

Question


how can I output different array size than input by GPU arrayfun?
I am doing particle simulations using matlab. So I have very large data sets which is the position of each particles, for exampl...

11 months ago | 1 answer | 0

1

answer

Question


How to improve matrix indexing efficiency or avoid indexing in Finite difference?
Hi all, I am trying to optimize the performance of a FDTD (Finite-differnce-time-domain) code implemented in Matlab. As you m...

1 year ago | 1 answer | 0

1

answer

Answered
Which MATLAB operations/functions need speeding up?
Matrix indexing needs speeding up. For a very simple example, if I run this: clear; clc; close all; N1=100; ...

1 year ago | 0

Question


3D gpuArray, length of each dimension has influence on speed?
Hi, I am doing 3D-FDTD simulations using gpuArray. example 1: grid size: 32.000000 X 289.000000 X 289.000000, this means ...

5 years ago | 1 answer | 0

1

answer