search for: amt

Displaying 20 results from an estimated 139 matches for "amt".

Did you mean: am
2008 Oct 14
2
help about how can R compute AIC?
Hello. I need to know how can R compute AIC when I study a regression model? For example, if I use these data: growth tannin 1 12 0 2 10 1 3 8 2 4 11 3 5 6 4 6 7 5 7 2 6 8 3 7 9 3 8 and I do model <- lm (growth ~ tannin) AIC(model) R responses: 38.75990 I know the following formula to compute AIC: AIC=
2009 Dec 01
4
[LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
...ges? If they are correct how do I go about submitting a patch? Thanks, Javier [Original] /// ExpandShiftWithUnknownAmountBit - Fully general expansion of integer shift /// of any size. bool DAGTypeLegalizer:: ExpandShiftWithUnknownAmountBit(SDNode *N, SDValue &Lo, SDValue &Hi) { SDValue Amt = N->getOperand(1); EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); EVT ShTy = Amt.getValueType(); unsigned NVTBits = NVT.getSizeInBits(); assert(isPowerOf2_32(NVTBits) && "Expanded integer type size not a power of two!"); DebugL...
2009 Dec 01
0
[LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
On Mon, Nov 30, 2009 at 7:22 PM, Javier Martinez <javier at jmartinez.org> wrote: > Hello, > > I'm working in adding support for 64-bit integers to my target. I'm using > LLVM to decompose the 64-bit integer operations by using 32-bit registers > wherever possible and emulating support where not. When looking at the bit > shift decomposition I saw what seems to be a
2009 Dec 01
0
[LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
...es a zero instead. All other values have similar > errors. Below is the current and proposed expansion in pseudo C++ for > all shift functions. Please let me know if I something is unclear. I'm not sure what you are saying, here is the code for shift-left. In the case of your example, Amt = 6, VTBits = 64 and NVTBits = 32. I've added comments at the end of various lines, like this: <== Comment. if (N->getOpcode() == ISD::SHL) { <== This branch is taken if (Amt > VTBits) { <== False ... not executed ... } else if (Amt > NVTBits) { <== False ......
2010 Oct 16
3
Doubt with symbols in Rails
I was trying to write a wrapper for number_to_currency to return currency in pounds. I used a helper class to do this. def number_to_pounds(amt) number_to_currency(amt, :unit => "£") end This works fine, but I am trying to understand why I can''t use a symbol to pass the values. I thought symbols were like pointers. (you now know I am a newbie). def number_to_pounds(:amt) number_to_currency(:amt, :unit => &qu...
2008 Apr 18
5
show sum of textboxes
Hi all, I have multiple textboxes containing numbers. I want to add up all the numbers and show the sum. Can I select the textboxes by class and sum the content? This also has to happen realtime: when a number is changed ina textbox the sum should also change. can this be done? regards, Stijn --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2009 Dec 01
2
[LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
Hi Duncan, The problem is the implementation of the expansion. Perhaps an example can help illustrate better. Take the case of a 64-bit integer shifted left by say 6 bits and is decomposed using 32-bit registers. Because 6 is less than the 32 (the register size) the resulting low part should be equal to the source low part shifted left by 6 bits. The current implementation places a zero
2011 May 03
2
Change the names of a dataframe
Dear list, This may sound silly. What is the right way to change the names of a dataframe? Let's say I have this data frame (dose) with four columns with names "ID", "DOSE", "TIME" "CMT". I want to change "DOSE" to "AMT". So I did names(dose[2])<-'AMT' But nothing happened. The name of the second column is still "DOSE". Only this works names(dose)[2]<-'AMT' I wonder what is wrong with the first method. Thanks. Jun [[alternative HTML version deleted]]
2003 Mar 06
1
Problems with variable types.
Hi all, I have problems in a dataframe variables types. Look: from a loop function: for(...){ ... dados.fin <- rbind(dados.fin, c(L=j, A=j^2, Nsp=nsps, N=length(amosfin$SP), AmT="am",NAm=nam, AMST=amst)) dados.fin <- rbind(dados.fin, c(L=j, A=j^2, Nsp=nsp, N=nbicho, AmT="tot", NAm=nam, AMST=a...
2008 Dec 17
2
[LLVMdev] Shifts that use only 5 LSBs.
...than 5 bits of the shift value. I created a simple test function: u64 mebbe_shift( u64 x, int test ) { if( test ) x <<= 2; return x; } I compile using clang, opt, and llc. I get something that, converted from my assembler to hasty psuedo-C: u64 mebbe_shift( u64 x, int test ) { int amt = test ? 2 : 0; x.hi = x.hi << amt | x.lo >> (32 - amt); x.lo <<= amt; return x; } My Target doesn't explicitly do any of these kinds of expansions or transformations, so it seems to me it's somewhere in LLVM that this is happening. I'll investigate furthe...
2008 Feb 16
3
[LLVMdev] linux/x86-64 codegen support
...ate_arglist definately is rejecting the arglist in EmitBuiltinAlloca. (try: bool TreeToLLVM::EmitBuiltinAlloca(tree exp, Value *&Result) { tree arglist = TREE_OPERAND(exp, 1); if (!validate_arglist(arglist, INTEGER_TYPE, VOID_TYPE)) { debug_tree(arglist); return false; } Value *Amt = Emit(TREE_VALUE(arglist), 0); Amt = CastToSIntType(Amt, Type::Int32Ty); Result = Builder.CreateAlloca(Type::Int8Ty, Amt, "tmp"); return true; } for a pretty (?) print of the tree at that point) Andrew On 2/16/08, Török Edwin <edwintorok at gmail.com> wrote: > Andrew Len...
2009 Dec 04
2
[LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
...ome comments added to check-in 90564. In our architecture shifting by 0 doesn't cause any problems but the comment might be valid for others. Thanks, Javier On Fri, 04 Dec 2009 21:42:36 +0100, Duncan Sands <baldrick at free.fr> wrote: > PS: For a small optimization, in the case where Amt is bigger than 32 > (or whatever NVTBits is) you might want to use an "and" to mask off > the top bits of Amt rather than subtracting 32 (if Amt is 64 or greater > then the result of the shift was undefined anyway, so it is ok to mask > off all the upper bits).
2013 Mar 19
4
Copying rows in data frames
Hi, I'm trying to copy the first row of one data frame to another. This is the statement I am using : df2[1,]<-df1[1,]; I have printed them out separately: df1[1,] = A C D E F But after copying: df2[1,] = 96 29 88 122 68 Why isn't it copying? They are both data frames, and "as.character" isn't working either. Thanks for your input :) [[alternative HTML version
2008 May 22
3
Xen 3.2.1, Intel DQ35JO tips
...can get it from Sourceforge. (I''m running kernel 2.6.21) 3. VT-d is not available unless you enable it on the Xen command line (not just in the BIOS). Xen prints a non-intuitive error message suggesting that VT-d is not available, when in fact it''s just not turned on. 4. The AMT/vPro management function seems to work just fine with Xen & Linux _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2008 Feb 13
1
model construction
...am buying and the 'average' increment above the posted price that I end up needing to pay. Moreover, I am interested in the "right hand side" of this relationship since tomorrow, being Valentine's Day, I am contemplating purchasing a very large number of flowers. So, if amt = a vector of quantities of flowers bought on various days deltaP = a vector of the differences between the purchase price and the posted price on those days Two simple models might be: mottle1 = lm( deltaP ~ amt ) or mottle2 = lm( deltaP ~ amt - 1 ) But, I have the urge to set the...
2008 Dec 17
0
[LLVMdev] Shifts that use only 5 LSBs.
...simple test function: > u64 mebbe_shift( u64 x, int test ) > { > if( test ) > x <<= 2; > return x; > } > I compile using clang, opt, and llc. > I get something that, converted from my assembler to hasty psuedo-C: > u64 mebbe_shift( u64 x, int test ) > { > int amt = test ? 2 : 0; > x.hi = x.hi << amt | x.lo >> (32 - amt); > x.lo <<= amt; > > return x; > } Ouch, that's nasty... I just filed http://llvm.org/bugs/show_bug.cgi?id=3225. -Eli
2010 May 12
1
Convert data.frame or matrix to list
Hi, i have the following data.frame : > Data[1:3,] dt amt geoTree merTree ref 1 0.71002484 3.334570 A2b B2b 0 2 0.49074936 2.544464 A2b B1a 0 3 0.06223433 3.617133 A1b B2a 0 i want to convert it to a list, like this: list(Data[1,],Data[2,],Data[3,]) [[1]] dt amt geoTree merTree ref 1 0.07333...
2007 Jul 04
1
Lookups in R
...linked to a specif user id. as I run through the transactions, I need to update a separate table for the users, but I am finding that the traditional ways of doing a table lookup are way too slow to support this kind of operation. i.e: for(i in 1:1000000) { userid = transactions$userid[i]; amt = transactions$amounts[i]; users[users$id == userid,'amt'] += amt; } I assume this is a linear lookup through the users table (in which there are 10's of thousands of rows), when really what I need is O(constant time), or at worst O(log(# users)). is there any way to manage a list...
1999 Dec 14
2
1.2pre17 scp Input/Output error
Under OpenSSH 1.2pre17 I can duplicate and Input/Output error for scp: Conditions: pc36 is a RH6.0/i386 box. abc.co.za is a RH5.2/i386 box. (private network) openssh 1.2 pre 17 on both boxes. Line between them is a 128k leased line. It works between two 10baseT machines. If the scrollbar is active, the scp fails, if it isn't active, scp works. Note that without the scrollbar, the file gets
2009 Dec 05
0
[LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
...we can forget it :) > In your previous email you mentioned some comments added to check-in 90564. > In our architecture shifting by 0 doesn't cause any problems but the > comment might be valid for others. Actually it's the shifting by 32 (if NVBits is 32) which is a problem. If Amt is zero then a shift by 32 is generated at commented line. Ciao, Duncan.