Re: [racket] Computing dot product via racket math library

2013-10-24 Thread Neil Toronto
On 10/24/2013 09:30 AM, Dmitry Cherkassov wrote: Hi. On Thu, Oct 24, 2013 at 7:16 PM, Tobias Hammer wrote: matrix-dot is what you want. Tobias OK, it indeed works. Hence, there is an error in docs http://docs.racket-lang.org/math/matrix_inner.html?q=matrix-dot&q=normalize#%28def._%28%28li

Re: [racket] Computing dot product via racket math library

2013-10-24 Thread Dmitry Cherkassov
Hi. On Thu, Oct 24, 2013 at 7:16 PM, Tobias Hammer wrote: > matrix-dot is what you want. > > Tobias > OK, it indeed works. Hence, there is an error in docs http://docs.racket-lang.org/math/matrix_inner.html?q=matrix-dot&q=normalize#%28def._%28%28lib._math%2Fmatrix..rkt%29._matrix-dot%29%29 Spe

Re: [racket] Computing dot product via racket math library

2013-10-24 Thread Tobias Hammer
matrix-dot is what you want. Tobias On Thu, 24 Oct 2013 16:59:15 +0200, Dmitry Cherkassov wrote: I've tried using racket math library to compute dot product of two vectors, but haven't found the very function to compute it. What i've found so far is to use matrix* function, but two drawb

[racket] Computing dot product via racket math library

2013-10-24 Thread Dmitry Cherkassov
I've tried using racket math library to compute dot product of two vectors, but haven't found the very function to compute it. What i've found so far is to use matrix* function, but two drawbacks: 1. I have to transpose the right multiple (extra overhead) 2. It yields single-element matrix