Description Usage Arguments Value Examples
Similar to R's pdist()
.
The call rthpdist(m1,m2)
returns the distance from all rows of
m1
to all in m2
.
1 | rthpdist(m1, m2, nthreads = rth.nthreads())
|
m1 |
First matrix/data frame for between-matrices distance computation. |
m2 |
Second matrix/data frame for between-matrices distance computation. |
nthreads |
An optional argument for specifying the number of threads (in the case of OpenMP or TBB backends) that the routine should (at most) use. Does nothing with a CUDA backend. See nthreads. |
Object of R class "matrix"
. Duplicate computation is avoided
in rthdist()
but the entire matrix is constructed.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.