Rank: 38 based on 697 downloads (last 30 days) and 17 files submitted
photo

Ben Barrowes

E-mail
Company/University
Barrowes Consulting
Lat/Long
43.76312255859375, -72.16569519042969

Personal Profile:

Ben Barrowes received both his B.S. and M.S. degrees in Electrical Engineering from Brigham Young University in 1999, and the Ph.D. degree in 2004 from the Massachusetts Institute of Technology, Cambridge, MA. He was named top high school math student in the state of Utah (1991), received two Rocky Mountain Space Grant Consortium (RMSGC) grants, and was awarded anNSF graduate fellowship. During 2004/05, he was a Director's funded Postdoc at Los AlamosNational Laboratory in the Physics Division. His research interests center on electromagneticwave theory and modeling with applications including wind-wave interaction, electromagneticscattering from the sea surface as well as from random media, nanoscale energy generationtechniques, computer interface methodologies, electromagnetic induction models fornonspherical geometries, and biological electromagnetic phenomena. Other interests includeautomatic code conversion/translation and arbitrary precision computing.

Professional Interests:
Consultant specializing in fortran <-> matlab conversion/translation/validation/optimization.

 

Watch this Author's files

 

Files Posted by Ben View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
10 Jun 2010 Mathematica Symbolic Toolbox for MATLAB--Version 2.0 A symbolic toolbox for MATLAB based on Mathematica. Author: Ben Barrowes code generation, mathlink, matlab, interfacing, symbolic math, matrices 103 18
  • 5.0
5.0 | 11 ratings
04 Jun 2010 print a gif in matlab printgif prints gif files in matlab Author: Ben Barrowes print gif jpeg imwrit... 6 1
  • 5.0
5.0 | 1 rating
23 Mar 2010 Screenshot suplabel Places text as a title, xlabel, or ylabel on a group of subplots. Author: Ben Barrowes super, label, title, annotation, subplot, ylabel 222 29
  • 4.0
4.0 | 21 ratings
18 Jun 2009 Multiple Precision Toolbox for MATLAB This toolbox defines a new mp class allowing multiple precision objects in MATLAB. Author: Ben Barrowes multiple precision, arbitrary precision, gmp, mpfr 43 23
  • 4.14286
4.1 | 14 ratings
18 Jun 2009 oct2ml Converts octave style m-files to matlab style m-files Author: Ben Barrowes external interface, octave, convert, conversion, translate, translation 14 1
  • 5.0
5.0 | 1 rating
Comments and Ratings on Ben's Files View all
Updated File Comment by Comments Rating
24 Jan 2012 matlab2fmex matlab2fmex.m is a small translator which aims to convert numerical M-files to Fortran90 mex. Author: Ben Barrowes Nedialko

Something I learned through this exercise is that Fortran 90 apparently provides
array programming features as in the following line of code:

out=sum(abs(in_1(1,:))**dim)**(1/dble(dim))

which computes the $L_{dim}$ norm of the $1 \times n$ array in_1,
without the use of any loop.

24 Jan 2012 matlab2fmex matlab2fmex.m is a small translator which aims to convert numerical M-files to Fortran90 mex. Author: Ben Barrowes Nedialko

I find this a very limited tool;
it is by far not robust and the 'documentation'
is not around the right priorities.

Admittedly, it's a tough job to translate between
Matlab = an array programming language with zillions of readily available 'library' functions

to

Fortran = a strong typed language, whose even later flavours may still be a bit 'deficient' as to handling
and declaring arrays; not to mention that one needs the Diogenes lantern to look around for
zillions of libraries, scattered around the Net (i.e NOT readily available !), that barely implement
a subset of Matlab's 'core' vector-matrix math

As said, I find the approach taken by matlab2fmex as utmostly unappealing in its:

* all-or-nothing approach: you won't get a single .F90 line out unless you:
a) think small, and
b) are ready to go back
to the drawing board of your ORIGINAL Matlab code to make it compatible with the tons of matlab2fmex's
(sometimes very unintuitive) rigid constraints

* that a long list of Matlab-inspired operator-primitives will accompany every teeny bit of user function;
instead of having directed the user to a matlab2fmex 'standard' .F90 module, from which to pick primitives that are ACTUALLY NEEDED.

* that it ambitions to go all the way to actual mex compilation:
a) this is a non-sequitur (see above)
b) it loads the translations with yet another layer (the mex one) of human-unintelligible .F90 code

* All this is made 'turn key' for a beginner in both Matlab and Fortran?!
No kidding guys!

===============

Overall: yet another poor semi-automatic translator

12 Jan 2012 Computation of Special Functions MATLAB translation (via f2matlab) of the original FORTRAN of "Computation of Special Functions." Author: Ben Barrowes Holdaway, David

while useful these are extremely hard to read functions. I have been having problems with mchgu for vectorised inputs. This appears to be due to the logic choices for high and low arguments not working for vectorised x.

For instance
mchgu(11,1/2,[-100,100]) =
1.0e-21 *[-0.4281 0.0320]
gives the correct answer, where as
mchgu(11,1/2,[-100,0,100] =
   1.0e+46 * [5.3505 - 4.4981i 0.0000 -4.9590 ]
is wrong by many many orders of magnitude.
Essentially it works fine for single arguments but not vectors.

18 Dec 2011 Computation of Special Functions MATLAB translation (via f2matlab) of the original FORTRAN of "Computation of Special Functions." Author: Ben Barrowes Eskandari, shahin
22 Nov 2011 Multiple Precision Toolbox for MATLAB This toolbox defines a new mp class allowing multiple precision objects in MATLAB. Author: Ben Barrowes David

Also, is the cast of a struct into a class the only sense in which this thing is a class? That's kind of weak.

Top Tags Applied by Ben
convert, fortran, matlab, utilities, annotation
Files Tagged by Ben View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
10 Jun 2010 Mathematica Symbolic Toolbox for MATLAB--Version 2.0 A symbolic toolbox for MATLAB based on Mathematica. Author: Ben Barrowes code generation, mathlink, matlab, interfacing, symbolic math, matrices 103 18
  • 5.0
5.0 | 11 ratings
04 Jun 2010 print a gif in matlab printgif prints gif files in matlab Author: Ben Barrowes print gif jpeg imwrit... 6 1
  • 5.0
5.0 | 1 rating
23 Mar 2010 Screenshot suplabel Places text as a title, xlabel, or ylabel on a group of subplots. Author: Ben Barrowes super, label, title, annotation, subplot, ylabel 222 29
  • 4.0
4.0 | 21 ratings
18 Jun 2009 Multiple Precision Toolbox for MATLAB This toolbox defines a new mp class allowing multiple precision objects in MATLAB. Author: Ben Barrowes multiple precision, arbitrary precision, gmp, mpfr 43 23
  • 4.14286
4.1 | 14 ratings
18 Jun 2009 oct2ml Converts octave style m-files to matlab style m-files Author: Ben Barrowes external interface, octave, convert, conversion, translate, translation 14 1
  • 5.0
5.0 | 1 rating

Contact us at files@mathworks.com