4

Programming

In the last two chapters, we learnt the specification of numEclipse’s scripting language, m-script. In this chapter, we will learn how to put the script in action to write a program, function and procedure. Most of the programming goals could be achieved using m-script. Sometimes we might want to develop a function in higher level programming language to achieve better performance or to integrate with an existing set of APIs. numEclipse is developed using java so it provides seamless integration with java functions. A java program can access C functions using Java Native Interface JNI. numEclipse takes advantage of this mechanism and provides the ability to integrate C functions. In this chapter, we will also learn how to develop ...

Get Practical Scientific Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.