Hi,
I'm working thru libgsl.scm defs and trying to come up with good way to display 
a
gsl_matrix.  I found some code in s7test.scm (dofit...etc.), but couldn't 
follow it exactly.  Then I tried my own version using gsl_vectors and nested do 
loops, but still not happy with it.
Then came across another approach 
https://www.scheme.com/tspl4/examples.html<https://www.scheme.com/tspl4/examples.html>
under Section 12.1. Matrix and Vector Multiplication, which uses a keyword 
'library' along with export and import to utilize a group of different defines 
related to matrix activities.

(library (tspl matrix)
  (export make-matrix matrix? matrix-rows matrix-columns
          matrix-ref matrix-set! mul)
  (import (rnrs)) ...

Seems the 'library' keyword is unbound in snd.  Just curious if there was some 
alternative in snd I missed to be able to cobble together a group of 
definitions into some sort of useable structure?  (His individual matrix 
definitions work fine in snd if you forgo the 'library' part and substitute 
parentheses for brackets in the definitions).  Or maybe there's a better way to 
format or display rows and cols in snd I also missed.

Regards,
Jim




_______________________________________________
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist

Reply via email to