Rank: 38 based on 891 downloads (last 30 days) and 43 files submitted
photo

Bruno Luong

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Bruno View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
29 Apr 2013 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong min, sorting, max, partial sort, quicksort, selection 67 32
  • 4.66667
4.7 | 12 ratings
23 Apr 2013 Interval merging Merging intervals in the bracket form Author: Bruno Luong interval, merging, timestamps, brackets 15 4
  • 4.0
4.0 | 1 rating
16 Apr 2013 Sparse matrix convolution Convolution of sparse matrices Author: Bruno Luong convolution, sparse 9 0
01 Apr 2013 Screenshot Voronoi Sphere Compute voronoi's diagram of points on the 2-sphere Author: Bruno Luong voronoi, delaunay, sphere 26 0
  • 5.0
5.0 | 1 rating
18 Jul 2012 InplaceArray: a semi-pointer package for Matlab Manipulate (multi-dimensional) arrays in the in-place form Author: Bruno Luong inplace, pointers, copyonwrite, data shared 6 9
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Bruno View all
Updated File Comments Rating
26 Apr 2013 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong

Rui,
The error is in line #544 (look at the error message). Try to replace the C++ comment style
// in case the positive set is unordered
by C comment style
/* in case the positive set is unordered */

23 Apr 2013 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier

Good coding, fast

23 Apr 2013 Grid of points within a polygon This function generates an array of points that lie within a given polygon Author: Sulimon

This submission shows that the author does not understand the potential of built-in inpolygon() function, that can accomplish the same thing with much shorter syntax and faster runtime.

17 Apr 2013 Performance in object-oriented matlab code A very simple example to demonstrate an observation of mine regarding the use of classes in matlab. Author: Dimitrios Korkinof

At last, someone clearly points out the performance issue of MATLAB OOP.

19 Feb 2013 FFT-based convolution Discrete convolution using FFT method Author: Bruno Luong

The GPU acceleration depends on user's hardware. It is impossible to give reliable number without what is your computer setup. A test I run long ago shows an acceleration between 3-5 times.

Comments and Ratings on Bruno's Files View all
Updated File Comment by Comments Rating
27 Apr 2013 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong Rui

Bruno,

Sorry. I introduced a typo to your codes. When I replaced // by /*, I forgot to add */.

Now it is working!

27 Apr 2013 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong Rui

Bruno,

Thanks a lot! Now there's a new error on the last line...

At first I thought, maybe there's a missing brace, however the I found that was not the case. The new code was working with matlab 32 bit build-in compiler, but not the LCC on linux.

Rui
-----------------------

minkmex.c: In function ?MinMaxResult?:
minkmex.c:293: warning: incompatible implicit declaration of built-in function ?memset?
minkmex.c: In function ?LocResult?:
minkmex.c:322: warning: incompatible implicit declaration of built-in function ?memset?
minkmex.c: In function ?mexFunction?:
minkmex.c:580: error: expected declaration or statement at end of input

mex: compile of ' "minkmex.c"' failed.

??? Error using ==> mex at 208
Unable to complete successfully.

Error in ==> minmax_install at 46
mex(mexopts{:},'minkmex.c');

26 Apr 2013 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong Luong, Bruno

Rui,
The error is in line #544 (look at the error message). Try to replace the C++ comment style
// in case the positive set is unordered
by C comment style
/* in case the positive set is unordered */

26 Apr 2013 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong Rui

Hi Bruno,

I like this function. I got a lot of fun with it on Windows, but when I switched to Linux server with GCC compiler, it did not work. The error was the same as jianbo posted two years ago. I tried to modify minkmex.c file as you suggested, (replace "memset((data+p0), 0, sizeof(double)*nz)" with "memset((void*)(data+p0), 0, sizeof(double)*nz)") but it did not work. I tired both matlab 2012a and 2010b on our server, but neither worked. Could you help me on it? Thanks in advance!

--------------------

minkmex.c: In function ?MinMaxResult?:
minkmex.c:293: warning: incompatible implicit declaration of built-in function ?memset?
minkmex.c: In function ?LocResult?:
minkmex.c:322: warning: incompatible implicit declaration of built-in function ?memset?
minkmex.c: In function ?mexFunction?:
minkmex.c:544: error: expected expression before ?/? token

mex: compile of ' "minkmex.c"' failed.

??? Error using ==> mex at 208
Unable to complete successfully.

Error in ==> minmax_install at 46
mex(mexopts{:},'minkmex.c');

19 Apr 2013 Voronoi Sphere Compute voronoi's diagram of points on the 2-sphere Author: Bruno Luong Pedreros, Felipe

Top Tags Applied by Bruno
array, geometry, matrix, linear algebra, permutation
Files Tagged by Bruno View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
29 Apr 2013 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong min, sorting, max, partial sort, quicksort, selection 67 32
  • 4.66667
4.7 | 12 ratings
23 Apr 2013 Interval merging Merging intervals in the bracket form Author: Bruno Luong interval, merging, timestamps, brackets 15 4
  • 4.0
4.0 | 1 rating
16 Apr 2013 Sparse matrix convolution Convolution of sparse matrices Author: Bruno Luong convolution, sparse 9 0
01 Apr 2013 Screenshot Voronoi Sphere Compute voronoi's diagram of points on the 2-sphere Author: Bruno Luong voronoi, delaunay, sphere 26 0
  • 5.0
5.0 | 1 rating
18 Jul 2012 InplaceArray: a semi-pointer package for Matlab Manipulate (multi-dimensional) arrays in the in-place form Author: Bruno Luong inplace, pointers, copyonwrite, data shared 6 9
  • 5.0
5.0 | 2 ratings

Contact us