Displaying 20 results from an estimated 1000 matches similar to: "Execute a function"
2011 Jun 13
4
How to calculate the product of every two elements in two lists?
u<-c(0.1,0.2,0.3)
v<-c(0.2,0.3,0.5)
outer1<-outer(u,u,">=")
outer2<-outer(v,v,">=")
m<-nrow(outer1)
j<-nrow(outer2)
zz<-lapply(1:m, function(m) as.numeric(outer1[m,]))
tt<-lapply(1:m, function(m) as.numeric(outer2[m,]))
zz[[1]]*tt[[3]], e.g., is possible, but I want every products between two
lists.
Is there a way to do that?
--
View this
2009 Apr 21
1
how to inspect content of save file
Is there a way of listing the variables contained in a file created
with the save() command other than load()ing the file?
I have a couple of rather larger files that I would rather not load ...
Benno Pütz
MPI of Psychiatry Tel: +49+(0)89-30622 222
Kraepelinstr. 2 Fax: +49+(0)89-30622 601
80804 Munich, Germany puetz@mpipsykl.mpg.de
[[alternative HTML
2011 Apr 05
3
[LLVMdev] Transition C->bitcode->assembly->object looses frame pointers
Hi James,
We've indeed passed the appropriate (and even excessive) flags to the
appropriate pipeline parts, that is:
llvm-gcc -O1 -fno-omit-frame-pointers -g $in -emit-llvm -S -o $name.ll
llc --disable-fp-elim $name.ll -o $name.S
g++ -fno-omit-frame-pointers -c $name.S
, but that didn't work
Alex
On Tue, Apr 5, 2011 at 4:40 PM, James Molloy <James.Molloy at arm.com> wrote:
2006 Aug 26
1
Typemap simplification
One way we might simplify our lives is to modify the .h files so they''re
SWIG friendly. I think I mentioned this before but I''ll bring it up again.
Take the following for example:
void MyFunc( int *x, int *y ) const
You can''t tell looking at this function whether x and y are inputs,
outputs or both (Well, you might can assume they''re not input only).
2015 Oct 05
1
Dovecot don't erase mails from storage.
Hi,
I have a dovecot installation with a strange problem: all the mails stays
in storage after deleted from users mailbox. If user logon after the mails
are deleted, they don't receive them any more, but the m.## files aren?t
deleted. This happens with pop3 (default for this installation) and/or imap.
The dovecot is installed along postfix with mysql and multi-domains support
Here's the
2013 Jul 04
2
Migrating domain using IMAPc
Hi list,
I'm trying to do a domain migration using the imapc feature, but i'm having
some problems and I really don't know what is happening.
So if you guys could help me with a path to solve this, I will be glad.
I'm using Dovecot 2.1.7 in a Debian Wheezy machine.
The command I'm using is:
dsync -Dv -o imapc_features=rfc822.size -o imapc_host=IP -o imapc_port=143
-o
2015 Oct 18
14
[Bug 92523] New: [Quadro FX 370] Compiz freezes entire desktop.
https://bugs.freedesktop.org/show_bug.cgi?id=92523
Bug ID: 92523
Summary: [Quadro FX 370] Compiz freezes entire desktop.
Product: xorg
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: major
Priority: medium
Component: Driver/nouveau
Assignee:
2017 Nov 18
2
family
Hi all,
I am reading a huge data set(12M rows) that contains family information,
Offspring, Parent1 and Parent2
Parent1 and parent2 should be in the first column as an offspring
before their offspring information. Their parent information (parent1
and parent2) should be set to zero, if unknown. Also the first
column should be unique.
Here is my sample data set and desired output.
fam
2011 Mar 27
3
comparing heatmaps
Dear all,
I've been trying to find how to compare tow different heatmaps but I'm having trouble getting the colors bar to be the same. I'm doing something like the following:
library(gplots)
dat<-cor(matrix(rnorm(100, m=10), nrow=10))
mat<-cor(matrix(rnorm(100), nrow=10))
dev.new()
heatmap.2(mat, Rowv=NA, Colv=NA, col=redgreen(75), symm=TRUE, trace="none",
2020 Mar 16
2
Passing arguments to LLVM pass through Clang
Hello,
I am adding to an LLVM pass that requires a filename as input. I am able to
input this filename as a command line argument when I invoke this pass
using opt, but I ultimately need to pass this argument to my code when I
compile code with clang.
How can I pass this argument to clang so that I can use it in my LLVM pass?
Thanks for your help!
Best,
Shishir Jessu
-------------- next part
2001 Oct 12
2
bug report: last login time vs PAM in portability release
on hp-ux 11 i see:
$ date;ssh jenny
Fri Oct 12 14:44:13 PDT 2001
Last successful login for stevesk: Fri Oct 12 10:45:42 PST8PDT 2001 on pts/2
Last unsuccessful login for stevesk: Mon Sep 24 22:55:53 PST8PDT 2001
Last login: Fri Oct 12 10:45:43 2001 from 172.31.1.53
You have mail.
so solaris PAM is different. can other solaris+PAM users confirm this?
On Fri, 12 Oct 2001, Benn Oshrin wrote:
2005 Jan 20
2
Johnson transformation
Hello,
I'm Carla, an italian student, I'm looking for a package to transform non normal data to normality. I tried to use Box Cox, but it's not ok. There is a package to use Johnson families' transormation? Can you give me any suggestions to find free software as R that use this trasform?
Thank yuo very much
Carla
____________________________________________________________
6X
2020 Mar 03
2
problems accessing llvm.org from Europe
+1, just tried it from my machine here in the UK, and it took about 8
seconds for me.
On Tue, 3 Mar 2020 at 09:19, Benno Krauss via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi Alex,
>
> I can reproduce the issue. About 5 seconds to load llvm.org<
> http://llvm.org>, most other domains load instantly. This is from Germany.
>
> Benno
> Am 03.03.2020 um 10:13
2010 Mar 31
2
Simplifying particular piece of code
Hello, everyone
I have a piece of code that looks like this:
mrets <- merge(mrets, BMM.SR=apply(mrets, 1, MyFunc, ret="BMM.AV120",
stdev="BMM.SD120"))
mrets <- merge(mrets, GM1.SR=apply(mrets, 1, MyFunc, ret="GM1.AV120",
stdev="GM1.SD120"))
mrets <- merge(mrets, IYC.SR=apply(mrets, 1, MyFunc, ret="IYC.AV120",
2004 Sep 09
4
scoping rules
Can someone help me with this simple example?
sq <- function() {
y <- x^2
y
}
myfunc <- function() {
x <- 10
sq()
}
myfunc()
executing the above in R yields:
> myfunc()
Error in sq() : Object "x" not found
I understand that R's scoping rules cause it to look for "x" in the
environment in which "sq" was defined (the global environment in
2012 Aug 29
5
Extracting the name of a function (inverse of match.fun("myFun"))
Hi all,
is there a way to extract the name of a function, i.e. do the reverse
of match.fun applied to a character string? I would like to print out
the name of a function supplied to another function as an argument.
For example:
myFunc = function(x) { x+1 }
applyFunc = function(fnc, x)
{
fnc = match.fun(fnc)
fnc(x)
}
Is there a way to obtain "myFunc" from the argument fnc in
2010 Jul 19
1
How to create a guest os from existing disk image file with virt-install
Hi
I have configured KVM with Fedora Core 13 by enabling the KVM virtualization
option while installing OS.
I have successfully created the guest OS by using the virt-install API
/usr/sbin/virt-install --name centos5 --ram 512 --disk
path=/var/lib/libvirt/images/
centos.img,size=5 --network network:default --accelerate --vnc -c
/tmp/CentOS-5.3-i386-bin-DVD.iso
Os installed successfully and after
2006 Nov 09
3
function
R-help,
I am trying to create a function that i pass a data set to and have the
function return some calculations based on data.
Allow me to illustrate:
myfunc <- function(lst,mn,sd){
lst <- sort(lst)
mn <- mean(lst)
sd <- sqrt(var(lst))
return(lst,mn,sd)
}
data1 <-c (1,2,3,4,5)
data2 <- c(6,7,8,9,10)
myfunc(data1,data1mn,data1sd)
myfunc(data2,data2mn,data2sd)
1999 Aug 29
3
jetdirect printer configuration
I am trying to set up a jetdirect plotter in our network (samba server
running un suse linux 6.2).
When I start printing from on of the windows boxes everything seems fine
but the printing files only show up in the spooling directories on the
samba server. The plotter (HP Designjet 650 C) never receives anything.
Here are the relevant parts of my smb.conf and my printcap file:
PRINTCAP:
2008 Feb 01
4
Concatenate a Variable
Good morning!
I do not speak English very well and so I will try to explain the best I
can. I have this:
> tabela[,1]
[1] a a b b a c b a c c c c c
Levels: a b c
>unique(tabela[,1])
[1] a b c
Levels: a b c
>var<-unique(tabela[,1])[1]
> var
[1] a
Levels: a b c
But if I concatenate like this
> cat("VAR: ", var, "\n")
I obtain
>VAR: 1
and I