Description Usage Arguments Value Author(s) See Also Examples
Multiplies the elements of a XPtr
object by a constant vector-wise. The
idea is that a symmetrix matrix M
can be represented as a triangular
object d
. With this function you set M[x,x] = M[x,x] * k
but
instead of working on M
this function works on its XPtr
representation d
.
1 | mulXPtr(d, x, k)
|
d |
a |
x |
a list of vectors of indices |
k |
a vector of multiplicative constants, arguments are eventually recycled silently |
returns the modified XPtr
object
Stefano M. Iacus
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.