Hey Guys,
Eid Mubarak to everyone of you !
I hope you all are doing well.
Here is a blog post about the installation of GR Framework API for Ruby. Over the weekend I will try to write 2 more posts. One about My GSoC experience and another as a continuation to my C extensions post. I am trying to translate the python examples into Ruby,Anmd learning quite a lot about Ruby from the same. There are certain changes that I am making to the Ruby API based on Python GR API.
One of the thoughts that crossed my mind as a design decision to make GR Compatible with Nmatrix. Currently, it takes a Ruby list as input for a coordinate. For example, if I want to plot the coordinates (2,4) and (7,5) I have to do :
GR.polymarker([2,7],[4,5])
that is give a list of X co-ordinates and a list of corresponding Y co-ordinates. During error handling I will work to resolve cases where in lets say someone gave a heterogeneous list [2,"Tardis"].I was wondering that instead of that,perhaps I can directly use Nmatrix arrays as they are homogeneous and a plotting Library would be better suited to work with a linear algebra Library.
Again I am not sure about how to do the same and parse an Nmatrix array into a C Array., I would like to know your thoughts about the same and would be glad if anyone can help me out with it.
Regards
Pranav Garg