Distance matrix: Can I do the 'Singleton expansion with a custom function' from http://www.mathworks.com/help/matlab/ref/bsxfun.html in breeze? Something like bsxfun in octave?
38 views
Skip to first unread message
Daniel Korzekwa
unread,
Sep 9, 2015, 1:44:07 AM9/9/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jblas-users
Hello,
I need computing distance matrix for a given vector, something which in octave is very quick with bsxfun(@minus,x',x).
Does jBlas or other java/scala library provide some functions similar to bsxfun for singleton expansion?
Mikio Braun
unread,
Sep 9, 2015, 4:25:41 AM9/9/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jblas...@googlegroups.com
Hi Daniel,
jblas has overloaded versions to subtract a scalar value from a
vector. There are also functions like addColumnVector, addRowVector
etc. to work with a vector vs. a matrix. Was that the use case you
looked for? What are the dimensions of x' and x?