Reputation: 81
How can I perform vector calculations in lisp, such as magnitude of a vector, norm of a vector, distance (between two points), dot product, cross product, etc.
Thanks.
Upvotes: 5
Views: 1906
Reputation: 1591
Take a look at GSLL (which includes an interface to BLAS), and the underlying grid system. On the other hand, I agree with the above comment in that if the things you mention are all you need, then it's probably faster/easier to write your own.
Upvotes: 3
Reputation: 55072
All this stuff is incredibly straight-forward maths. Calculate it the way you would normally.
Upvotes: 1
Reputation: 51501
I think that Tamas Papp's LLA library might have what you want. He recently announced that he plans a rewrite.
Upvotes: 1
Reputation: 11837
There are several libraries of bindings to Fortran linear algebra packages like LAPACK and BLAS, such as LLA, the Lisp Linear Algebra library.
Upvotes: 4