Displaying 5 results from an estimated 5 matches for "m_p".
Did you mean:
m2p
2010 Oct 05
2
Using as.polynomial() over a matrix
...ot very R or programming savvy.
I am trying to do something without much luck, and have scoured help-pages, but nothing has come up. Here it is:
I have a matrix (m) of approx 40,000 rows and 3 columns, filled with numbers.
I would like to convert the contents of this matrix into another matrix (m_p), where the numbers of (m) have been coerced into a polynomial - using a function called "as.polynomial()" from the package (polynom). Each row of (m) contains 3 terms to be made into a polynomial in the equivalent row of (m_p).
I have tried a coupe of things:
--------------------------...
2009 Mar 25
0
Rmpi - send/receive multiple objects to slaves
...ady to receive a new task
mpi.send.Robj(junk,0,1)
# Receive a task
task <- mpi.recv.Robj(mpi.any.source(),mpi.any.tag())
task_info <- mpi.get.sourcetag()
tag <- task_info[2]
if (tag == 1) {
# do a task, taking values from the tasts list
m_p <- .myFun(m, x=task$x)
# Send a results message back to the master
# only send back to the master the indices which have been zero'd out by
this slave
idx <- which(m_p == 0 &! m == 0)
results <- list(result=idx)
mpi.send.Robj(results,0,2)...
2010 Jun 07
0
No subject
...oat *) malloc(sizeof(*x) * n2);
=A0=A0 memcpy(x, buffer, sizeof(*x) * n2);
=A0=A0 for (i=3D0; i < n; ++i) {
=A0=A0=A0=A0=A0 float acc =3D 0;
=A0=A0=A0=A0=A0 for (j=3D0; j < n2; ++j)
=A0=A0=A0=A0=A0=A0=A0=A0 // formula from paper:
=A0=A0=A0=A0=A0=A0=A0=A0 //acc +=3D n/4.0f * x[j] * (float) cos(M_PI / 2 / =
n * (2 * i + 1 + n/2.0)*(2*j+1));
=A0=A0=A0=A0=A0=A0=A0=A0 // formula from wikipedia
=A0=A0=A0=A0=A0=A0=A0=A0 //acc +=3D 2.0f / n2 * x[j] * (float) cos(M_PI/n2 =
* (i + 0.5 + n2/2)*(j + 0.5));
=A0=A0=A0=A0=A0=A0=A0=A0 // these are equivalent, except the formula from t=
he paper inverts the...
2002 Oct 21
3
Problem with Samba on Solaris 2.6
Hi All
I downloaded the binary package of Samba 2.2.2 on Friday from one of the
Samba mirror sites, I think Belgium, and installed it on a Sun E450
running Solaris 2.6.
Today everything has fallen flat on its face. Unfortunately I am on
holiday this week so not able to deal with the problem directly, but via
telephone calls. Apparently what is happening is that smbd is gobbling
up all the
2014 Jun 24
3
[PATCH 1/2] Drop dosutil/mdiskchk.com
...>iCZzrq&W`XsvkY+c;Ss%4*>mx^Si4Yuy)>BE-cQJ19PvRkkp3u)6n
z50^F at KpMZTTDOO3qkqQmV%Cpsmr^&6quodlIzJPK;AL*pmv{l2y4u=d7iZ}A2Iucp
zDE5{~I59fMLRXtNq@^mt*-h(D+|I=%1;ciTGPHeK2o)k#E5#Qu at u{bc*SC-=U(L<I
z#l4sXbMAU?%&~~JnWK at NkZ#nH`R`^T5l<UQZ0Lchu8VA5BLbm?uUXjX$=?xN72qS!
z8wQGiK{M_P?r`A{%b6!y3?m#?zy}$7 at 0DnX5lD1UBFG_+(qP&s3_Ld)p$Joh2OY|p
zNj5RbnkjgxomxbvBT9B+4iL|sg7D95w@&)-0tsKAuNxj}>94wLGEuWs$%;XDP497%
zoa;4%UEVA409KTJ_zl}q(gL5lZD6F=(7abt$R_!`+u3rFGL=-_%4-mM(qh#{(4$C+
z3JeAD&pQMqYj0JVbRi&I6!2%-7qB$>(e)eOVVzhrep}N%h(Hliy(oL(g}Bu0z)m9%
z<_6v(7W^yi<...