Take the 2-minute tour ×
Computational Science Stack Exchange is a question and answer site for scientists using computers to solve scientific problems. It's 100% free, no registration required.

I want to get started on scientific programming on the Mac using Objective-C. I am very familiar with MATLAB which makes it easy to store complex-valued waveform data in vectors and generating plots. I was wondering if there might be a good resource that might compare how you would implement common MATLAB operations (i.e. creating an array of complex values or generating a mesh plot) in an Objective-C/Cocoa environment.

share|improve this question
    
You might want to take a look at interfacing with the Visualization ToolKit (VTK). macresearch.org/…. –  Allan P. Engsig-Karup Dec 17 '11 at 18:38
6  
Any particular reason you want to resign from the huge, powerful stack of cross-platform tools for a sake of using an esoteric language built exclusively for making GUIs and working only on a hardware that can't be reasonably used for any serious HPC? –  mbq Dec 17 '11 at 23:55
1  
@mbq Maybe to integrate well with an existing xGrid setup? –  Fomite Dec 20 '11 at 21:36
add comment

3 Answers

I don't know of any Objective-C-specific libraries or frameworks, but there are a large number of libraries written in and available for plain C, and you should be able to use them with Objective-C.

Using C allows you to use PETSc, gsl, LAPACK, and loads of other useful numerical libraries. I would advise against trying to code the matlab routines yourself. Internally, matlab likely uses well-known numerical libraries itself.

If you're looking for numerical libraries in an object-oriented language, you might want to look into using C++, which has Armadillo and Trilinos available.

share|improve this answer
add comment

if you are completely unfamiliar with C, but are using matlab as your base starting point, i would actually recommend fortran90 over C. the languages are so incredibly similar it is scary (as far as syntax goes at least)

share|improve this answer
add comment

You may want to look at this series of articles on scientific computing with Cocoa from MacResearch.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.