Displaying 13 results from an estimated 13 matches for "so1".
Did you mean:
so
2000 Sep 06
2
reusing external functions across libs
...e off (one
symbol could be loaded twice). It would be nice if I could call the
function directly from C/Fortran, after dyn.load()ing both libraries.
But unfortunately this seems to depend very crucially on the
specific OS.
An example (C/Fortran mix, but I tried also C/C and Fortran/Fortran):
**** so1.c *******************
#include <R.h>
void func1(double* a, int* n){
printf("in func1\n");
F77_SYMBOL(func2)(a,n);
printf("back in func1\n");
}
******************************
gcc -g -fpic -c so1.c -I/usr/local/lib/R/include
ld -shared so1.o -o so1.so
**** so2.f ***********...
2006 May 13
0
Freebsd 6.1 dovecot beta7: nss_dns.so1 not found
Hello,
FreeBSD 6.1 RELACE
dovecot beta7
when enable:
mail_plugins = quota imap_quota
i've got:
May 13 07:37:13 ranos dovecot: IMAP(pitun): module
/usr/local/lib/dovecot/imap/lib01_quota_plugin.so:
dlsym(quota_plugin_init) failed: Shared object
"nss_dns.so.1" not found, required by "imap"
May 13 07:37:13 ranos dovecot: child 9942
2017 Sep 28
3
building random matrices from vectors of random parameters
Thanks for both the mapply and array approaches! However, although
intended to generate the same result, they don't:
# mapply approach
n = 3
sa <- rnorm(n,0.8,0.1)
so <- rnorm(n,0.5,0.1)
m <- rnorm(n,1.2,0.1)
mats = mapply(function(sa1, so1, m1)
matrix(c(0,sa1*m1,so1,sa1),2,2,byrow=T), sa, so, m, SIMPLIFY = FALSE)
print(mats)
[[1]]
????????? [,1]????? [,2]
[1,] 0.0000000 0.8643679
[2,] 0.4731249 0.7750431
[[2]]
????????? [,1]????? [,2]
[1,] 0.0000000 0.8838286
[2,] 0.5895258 0.7880983
[[3]]
????????? [,1]????? [,2]
[1,] 0.0000...
2019 May 16
3
ALTREP: Bug reports
...C_peekSharedMemory(SEXP x) {
> while (ALTREP(x)) {
> Rprintf("getting data 1\n");
> x = R_altrep_data1(x);
> }
> return(x);
> }
If calling R_altrep_data1 return the internal data directly, we will only
see one message. following my last example
> .Internal(inspect(so1))
> @0x0000000005e7fbb0 14 REALSXP g0c0 [MARK,NAM(7)] Share object of type
> double
> > .Internal(inspect(so2))
> @0x0000000005fc5ac0 14 REALSXP g0c0 [MARK,NAM(7)] wrapper
> [srt=-2147483648,no_na=0]
> @0x0000000005e7fbb0 14 REALSXP g0c0 [MARK,NAM(7)] Share object of type...
2019 May 16
3
ALTREP: Bug reports
...t predict when would the wrapper appear.
Here is the source code for the wrapper:
https://github.com/wch/r-source/blob/trunk/src/main/altclasses.c#L1399
Here is a working example if one can build the sharedObject package from
https://github.com/Jiefei-Wang/sharedObject
n=100
> x=runif(n)
> so1=sharedObject(x,copyOnWrite = FALSE)
> so2=so1
> so2[1]=10
> .Internal(inspect(so1))
> .Internal(inspect(so2))
Here is my session info:
R version 3.6.0 alpha (2019-04-08 r76348)
> Platform: x86_64-w64-mingw32/x64 (64-bit)
> Running under: Windows >= 8 x64 (build 9200)
> Ma...
2017 Sep 28
0
building random matrices from vectors of random parameters
...; Thanks for both the mapply and array approaches! However, although
> intended to generate the same result, they don't:
>
> # mapply approach
>
> n = 3
> sa <- rnorm(n,0.8,0.1)
> so <- rnorm(n,0.5,0.1)
> m <- rnorm(n,1.2,0.1)
> mats = mapply(function(sa1, so1, m1)
> matrix(c(0,sa1*m1,so1,sa1),2,2,byrow=T), sa, so, m, SIMPLIFY = FALSE)
>
> print(mats)
>
> [[1]]
> ????????? [,1]????? [,2]
> [1,] 0.0000000 0.8643679
> [2,] 0.4731249 0.7750431
>
> [[2]]
> ????????? [,1]????? [,2]
> [1,] 0.0000000 0.8838286
> [2,]...
2017 Sep 28
2
building random matrices from vectors of random parameters
...rray approaches! However, although
>> intended to generate the same result, they don't:
>>
>> # mapply approach
>>
>> n = 3
>> sa <- rnorm(n,0.8,0.1)
>> so <- rnorm(n,0.5,0.1)
>> m <- rnorm(n,1.2,0.1)
>> mats = mapply(function(sa1, so1, m1)
>> matrix(c(0,sa1*m1,so1,sa1),2,2,byrow=T), sa, so, m, SIMPLIFY = FALSE)
>>
>> print(mats)
>>
>> [[1]]
>> ?????????? [,1]????? [,2]
>> [1,] 0.0000000 0.8643679
>> [2,] 0.4731249 0.7750431
>>
>> [[2]]
>> ?????????? [,1]????? [,2...
2017 Sep 28
3
building random matrices from vectors of random parameters
Suppose I have interest in a matrix with the following symbolic
structure (specified by 3 parameters: sa, so, m):
matrix(c(0,sa*m,so,sa),2,2,byrow=T)
What I can't figure out is how to construct a series of matrices, where
the elements/parameters are rnorm values. I'd like to construct separate
matrices, with each matrix in the series using the 'next random
parameter value'.
2019 May 16
0
ALTREP: Bug reports
...P(x)) {
>> Rprintf("getting data 1\n");
>> x = R_altrep_data1(x);
>> }
>> return(x);
>> }
>
>
> If calling R_altrep_data1 return the internal data directly, we will only
> see one message. following my last example
>
> > .Internal(inspect(so1))
>> @0x0000000005e7fbb0 14 REALSXP g0c0 [MARK,NAM(7)] Share object of type
>> double
>> > .Internal(inspect(so2))
>> @0x0000000005fc5ac0 14 REALSXP g0c0 [MARK,NAM(7)] wrapper
>> [srt=-2147483648,no_na=0]
>> @0x0000000005e7fbb0 14 REALSXP g0c0 [MARK,NAM(7)...
2019 May 16
0
ALTREP: Bug reports
...gt; Here is the source code for the wrapper:
> https://github.com/wch/r-source/blob/trunk/src/main/altclasses.c#L1399
>
> Here is a working example if one can build the sharedObject package from
> https://github.com/Jiefei-Wang/sharedObject
>
> n=100
> > x=runif(n)
> > so1=sharedObject(x,copyOnWrite = FALSE)
> > so2=so1
> > so2[1]=10
> > .Internal(inspect(so1))
> > .Internal(inspect(so2))
>
>
> Here is my session info:
>
> R version 3.6.0 alpha (2019-04-08 r76348)
> > Platform: x86_64-w64-mingw32/x64 (64-bit)
> > Run...
2017 Sep 28
0
building random matrices from vectors of random parameters
...>>> intended to generate the same result, they don't:
>>>
>>> # mapply approach
>>>
>>> n = 3
>>> sa <- rnorm(n,0.8,0.1)
>>> so <- rnorm(n,0.5,0.1)
>>> m <- rnorm(n,1.2,0.1)
>>> mats = mapply(function(sa1, so1, m1)
>>> matrix(c(0,sa1*m1,so1,sa1),2,2,byrow=T), sa, so, m, SIMPLIFY =
>FALSE)
>>>
>>> print(mats)
>>>
>>> [[1]]
>>> ?????????? [,1]????? [,2]
>>> [1,] 0.0000000 0.8643679
>>> [2,] 0.4731249 0.7750431
>>>
>>...
2017 Sep 28
0
building random matrices from vectors of random parameters
On 27/09/2017 8:47 PM, Evan Cooch wrote:
> Suppose I have interest in a matrix with the following symbolic
> structure (specified by 3 parameters: sa, so, m):
>
> matrix(c(0,sa*m,so,sa),2,2,byrow=T)
>
> What I can't figure out is how to construct a series of matrices, where
> the elements/parameters are rnorm values. I'd like to construct separate
> matrices, with
2009 Oct 04
1
[LLVMdev] [PATCH] problems building shared libraries with cmake
Hello,
I experienced link errors building on Linux with "cmake
-DBUILD_SHARED_LIBS=ON"; applying this patch solved the problem for me.
Thanks,
--
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-cmake-so1.patch
Type: text/x-diff
Size: 844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091003/26827705/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 19...