search for: lamb

Displaying 20 results from an estimated 394 matches for "lamb".

Did you mean: lab
2009 Apr 07
6
Sequences
...then use the loop to create other values. This is what I have so far but I just keep getting error messages. #To calculate the culmulative sums: s<-rep(0,207) #as this is the length of the vector I know I will have s<-as.vector(s) s[0]<-0 for (i in 1:length(lambs)) # where lambs is a vector of length 207 consisting of temperature values { s[i]<-s[i-1]-mean(lambs) } I continually get the error message: Error in s[i] <- s[i - 1] - mean(lambs) : replacement has...
2010 Oct 25
2
Ayuda con una función
Reciban un cordial saludo. De manera muy comedida les pido ayuda con la función indicada abajo. La usan en un artículo de inventarios. No veo dónde estoy errado. Gracias de antemano. César Escalante C. > lamb<-50 > L<-1 > h.<-10 > p<-25 > K<-5 > integ<-function(y){integrate(function(x)ppois(x,lamb*L),0,y)$value} > G<-function(y){(h.+p)*integ(y) + p*(lamb*L-y)} > G(0:43) [1] 1250 1225 1200 1175 1150 1125 1100 1075 1050 1025 1000 975 950 925 900 875 850 825...
2012 Jan 18
2
Problem importing .txt file
.... Here is the text table: Kind Fatness Wt Ewe 4 10.3 Ewe 8 11.9 Ewe 11 15 Ewe 15 17.1 Ewe 15 18.7 Ram 5 12.4 Ram 4 14.3 Ram 10 16.6 Ram 8 18.8 Ram 14 21.9 Here is the code that I copied from the instructors handout (simple cut and paste, no alterations): Lambs = read.table("Lambs.txt", header = TRUE) > Lambs ??..Kind Fatness Wt 1 Ewe 4 10.3 2 Ewe 8 11.9 3 Ewe 11 15.0 4 Ewe 15 17.1 5 Ewe 15 18.7 6 Ram 5 12.4 7 Ram 4 14.3 8 Ram 10 16.6 9 Ram 8 18.8 10 Ram 14 21.9 > par(mfrow = c(1, 2)) > plot(Fa...
2002 Dec 03
2
Array multiplication
I wanted a sort of matrix product of an array and a matrix. As there does not seem to be any array multiplication apart from outer() I proceeded as follows: lambda <- array(0, c(n,m,d)) # stuff omitted # zed is an n by m matrix # # \lamb.star_{ik} lamb.star <- matrix(0, nrow=n, ncol=d) for (i in 1:n) { for (k in 1:d) { for (j in 1:m) { lamb.star[i,k] = lamb.star[i,k] + lambda[i,j,k]*zed[i,j] } } } # or, alternatively, lamb.sta...
2007 Mar 25
3
[LLVMdev] C99 restrict
Has there been any discussion of supporting the 'restrict' C99 keyword and C++ extension to boost alias analysis? My impression is that this would require modification of the LLVM IR. I couldn't find any discussion hits using the usual suspects for searches... -- Christopher Lamb christopher.lamb at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070324/6b9536ee/attachment.html>
2007 Mar 01
2
[LLVMdev] ISel using an operand as both source and destination
I have some instructions that use a register as both an input and as the output. Is there a way to specify this constraint in the InstrInfo.td or will this have to be custom selected/lowered? Thanks -- Christopher Lamb christopher.lamb at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070301/e027ed7e/attachment.html>
2007 Apr 23
2
[LLVMdev] Register based vector insert/extract
On Apr 23, 2007, at 12:31 PM, Chris Lattner wrote: > On Mon, 23 Apr 2007, Christopher Lamb wrote: >> How can one let the back end know how to insert and extract >> elements of >> a vector through sub-register copies? I'm at a loss how to do this... > > You probably want to custom lower the insertelement/extractelement > operations for the cases you suppor...
2007 Mar 29
4
[LLVMdev] PR400 - alignment for LD/ST
Is anyone actively working on this currently? It's marked as unassigned in BZ. -- Christopher Lamb christopher.lamb at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070329/1edd4502/attachment.html>
2007 Mar 28
3
[LLVMdev] x86 in win32 folder
Might I suggest the following tool for setting-up/maintaining the Visual Studio project files. It makes setting them up with all the right build options and include paths much, much easier. =) http://sourceforge.net/projects/xpj -- Christopher Lamb christopher.lamb at gmail.com On Mar 28, 2007, at 3:06 AM, Morten Ofstad wrote: > Seung Jae Lee wrote: >> Is there any special reason only x86 code is implemented in win32 >> folder unlike lib\Target folder which contains codes for other >> architectures? > > No re...
2007 Apr 21
3
[LLVMdev] [llvm-commits] Major regressions
On Apr 21, 2007, at 6:12 PM, Reid Spencer wrote: > On Sat, 2007-04-21 at 18:07 -0500, Christopher Lamb wrote: >> I'm getting a regression after my fixes that's coming from >> getABIAlignment not finding an alignment to use for a <float x1> >> type, >> is this a bug? > > It could be. <float x 1> isn't a useful vector so it probably doesn't &...
2009 Apr 10
3
turning list into vector/dataframe
Hi, I have used this command : resamples<-lapply(1:1000,function(i) sample(lambs,replace=F)) resamples2<-lapply(resamples,Cusum) to get a list of 1000 samples of my data. The function Cumsum is defined as follows: Cusum<-function(x){ SUM<-cumsum(x)-(1:length(x))*mean(x) min<-min(cumsum(x)-(1:length(x))*mean(x)) max<-max(cumsum(x)-(1:length(x))*mean(x)) diff&lt...
2007 Mar 30
3
[LLVMdev] LLVM "Native" Backend
On Mar 18, 2007, at 7:05 PM, Chris Lattner wrote: > On Sun, 18 Mar 2007, Christopher Lamb wrote: >>> LLVM can currently produce .o files directly in some limited cases, >>> or you >>> can go through an assembler, which is much more robust. Any help >>> improving the direct ELF writer would be appreciated. >> >> Which of the LLVM tools can...
2007 Apr 23
0
[LLVMdev] Register based vector insert/extract
On Apr 23, 2007, at 1:17 PM, Christopher Lamb wrote: > > On Apr 23, 2007, at 12:31 PM, Chris Lattner wrote: > >> On Mon, 23 Apr 2007, Christopher Lamb wrote: >>> How can one let the back end know how to insert and extract >>> elements of >>> a vector through sub-register copies? I'm at a loss ho...
2007 Mar 28
2
[LLVMdev] x86 in win32 folder
...ther targets: No reason it can't be > done, other than Windows doesn't run on them, but be aware that > they have never been compiled with VC++ and there may be issues > with the code that need resolving before it successfully compiles > with VC++. > > Christopher Lamb wrote: >> Might I suggest the following tool for setting-up/maintaining the >> Visual Studio project files. It makes setting them up with all the >> right build options and include paths much, much easier. =) >> >> http://sourceforge.net/projects/xpj >> >&...
2007 Mar 26
6
[LLVMdev] C99 restrict
On Mar 26, 2007, at 10:10 AM, Dan Gohman wrote: > On Mon, Mar 26, 2007 at 02:14:56AM -0500, Christopher Lamb wrote: >> >> >> On Mar 25, 2007, at 5:22 PM, Chris Lattner wrote: >> >>> On Sun, 25 Mar 2007, Christopher Lamb wrote: >>>> What about an approach not unlike how debugging information is >>>> handled? That >>>> is have an llvm intr...
2007 Mar 28
0
[LLVMdev] x86 in win32 folder
...e. And to comment on supporting other targets: No reason it can't be done, other than Windows doesn't run on them, but be aware that they have never been compiled with VC++ and there may be issues with the code that need resolving before it successfully compiles with VC++. Christopher Lamb wrote: > Might I suggest the following tool for setting-up/maintaining the > Visual Studio project files. It makes setting them up with all the > right build options and include paths much, much easier. =) > > http://sourceforge.net/projects/xpj > > -- > Christopher Lamb &...
2007 Mar 01
0
[LLVMdev] ISel using an operand as both source and destination
..., MRM0r, (ops GR8 :$dst, GR8 :$src), "inc{b} $dst", [(set GR8:$dst, (add GR8:$src, 1))]>; Which seem to have the same restriction that I'm trying to implement, but I don't understand how this ensures that $src and $dst are the same register. -- Christopher Lamb christopher.lamb at gmail.com On Mar 1, 2007, at 12:03 PM, Christopher Lamb wrote: > I have some instructions that use a register as both an input and > as the output. Is there a way to specify this constraint in the > InstrInfo.td or will this have to be custom selected/lowered? &g...
2007 Sep 22
2
[LLVMdev] Q about instruction pattern matching
On 9/21/07, Christopher Lamb <christopher.lamb at gmail.com> wrote: > ISel patterns are matched against DAGs before register allocation. So you > are correct that ISel patterns can't take into account register classes. The > register classes in the patterns are a selection constraint for the register > a...
2007 Jun 12
2
[LLVMdev] PR1350 (Vreg subregs) questions
...hout getting mangled during Lowering/ISel? When should subregs be flattened to actual registers: AsmPrinter? Somewhere in LiveIntervals, during RegAlloc? Is there are common API used to turn vregs into physregs that could be changed to flatten any subregs in a central location? -- Christopher Lamb
2007 Mar 16
3
[LLVMdev] LLVM "Native" Backend
...e the object files, but a DWARF-in-ELF writer would have to be created to insert the debugging information into the ELF file. Either the inline assembly would be reverse compiled or handled by custom pass. I'm not sure what the options are here... Am I on the right track? -- Christopher Lamb christopher.lamb at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070316/ef9bbe15/attachment.html>