jeffwong / pdist

Distance functions on subsets of matrices
7 stars 3 forks source link

reshaping pdist output into matrix is costly #2

Closed jeffwong closed 12 years ago

jeffwong commented 12 years ago

the c function to pdist returns an array of floats which naturally maps to a vector. Reshaping this into a matrix can add a lot of overhead, so this should be factored out into a seperate as.matrix function