user350516
user350516

Reputation: 81

Vector Calculations in LISP

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

Answers (4)

Liam
Liam

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

Noon Silk
Noon Silk

Reputation: 55072

All this stuff is incredibly straight-forward maths. Calculate it the way you would normally.

Upvotes: 1

Svante
Svante

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

Charles Stewart
Charles Stewart

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

Related Questions