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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.