<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm working thru libgsl.scm defs and trying to come up with good way to display a</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Then came across another approach<a href="https://www.scheme.com/tspl4/examples.html" id="LPlnk632507"> https://www.scheme.com/tspl4/examples.html</a></div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
under<b> </b>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.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<tt class="elementToProof">
<div class="elementToProof">(library (tspl matrix)<br>
(export make-matrix matrix? matrix-rows matrix-columns<br>
matrix-ref matrix-set! mul)<br>
(import (rnrs)) ...</div>
<div class="elementToProof"><br>
</div>
<div class="elementToProof">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.</div>
<div class="elementToProof"><br>
</div>
<div class="elementToProof">Regards,</div>
<div class="elementToProof">Jim</div>
</tt></div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</body>
</html>