search for: cval

Displaying 20 results from an estimated 42 matches for "cval".

Did you mean: _val
2012 May 25
2
Collecting results of a test with array
Dear contributors I have tried this experiment: x<-c() for (i in 1:12){ x[i]<-list(cbind(x1[i],x2[i])) #this is a list of 12 couples of time series I am using to perform a test } # that compares them 2 by 2 # ################# #trace statistic test<-data.frame() cval<-array( , dim=c(2,3,12)) for (i in 2:12){ for (k in 1:2){ for (j in 1:3){ result[k,j,i]<- ((ca.jo(data.frame(x[i]),ecdet="none",type="trace", spec="longrun",K=2))@cval[k,j]) }}} I have a problem in collecting the results of a test. The function ca.jo creat...
2008 Apr 04
1
Problems with Unit Root testing using ur.df function
...n < 50) rowselec <- 2 if(50 <= n & n < 100) rowselec <- 3 if(100 <= n & n < 250) rowselec <- 4 if(250 <= n & n < 500) rowselec <- 5 if(n >= 500) rowselec <- 6 if (type == "none"){ cval.tau1 <- rbind( c(-2.66, -1.95, -1.60), c(-2.62, -1.95, -1.61), c(-2.60, -1.95, -1.61), c(-2.58, -1.95, -1.62), c(-2.58, -1.95, -1.62),...
1997 Nov 24
0
R-alpha: random number generator -- S-plus's
...extracting 'runif-tst.S' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'runif-tst.S' && ##SunOS4: print(dyn.load2("/u/maechler/C/C-for-S/Runif.o")) print(dyn.load("/u/maechler/C/C-for-S/Runif.o")) X.C("Init_seed", X Cval = as.integer(12345), X Tval = as.integer(987654321)) str(.C("Get_seed", Cval = integer(1), Tval = integer(1))) X rU_ numeric(10) for(i in 1:10) rU[i] <- unlist(.C("Runif", numeric(1))) rU str(.C("Get_seed", Cval = integer(1), Tval = integer(1))) X Set.seed <- f...
1998 Mar 12
0
Code to check Password Server Group Memberships
...server_validate(char *buf, char *user) { pstring inbuf,outbuf; BOOL ret; if (password_client < 0) { DEBUG(1,("%s not connected\n",pserver)); return(False); } bzero(inbuf,sizeof(inbuf)); memcpy(outbuf,buf,sizeof(outbuf)); /* send a session setup command */ CVAL(outbuf,smb_flg) = 0x8; SSVAL(outbuf,smb_flg2,0x1); CVAL(outbuf,smb_vwv0) = 0xFF; set_message(outbuf,smb_numwords(outbuf),smb_buflen(outbuf),False); SCVAL(inbuf,smb_rcls,1); send_smb(password_client,outbuf); ret = receive_smb(password_client,inbuf,5000); if (!ret || CVAL(inbuf,smb_...
2009 Sep 04
3
[LLVMdev] TOT opt does not terminate!
...2 as_short2(int x) { X result; result.i = x; return result.s; } inline int as_int(short2 x) { X result; result.s = x; return result.i; } void short2_int_swap( short2* b, int* c) { int gidx = get_id(0); short2 bval = b[gidx]; int cval = c[gidx]; b[gidx] = as_short2(cval); c[gidx] = as_int(bval); } -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090904/cd0940bf/attachment.html>
2004 Jun 03
0
ERROR: cli_session_request() failed...
...session_request(c, &calling, &called)) <----------- this line failing > { > fputs("ERROR: cli_session_request() failed...\n", stderr); > cli_shutdown(c); > return (NULL); > } On closer inspection, this function is failing on this line: > if (CVAL(cli->inbuf,0) != 0x82) { <----- error occuring here > /* This is the wrong place to put the error... JRA. */ > cli->rap_error = CVAL(cli->inbuf,4); > return False; > } The value for cli->inbuf is 0x80d4f28 "\203". My knowledge on C is a bit li...
2017 Aug 24
1
Problem in optimization of Gaussian Mixture model
...param[i] <- opt[i] } xval= param[1] seg <- param[2] sum_prob=0 val=0 l=3 meanval=c(506.8644, 672.8448, 829.902) sigmaval=c(61.02859, 9.149168, 74.84682) coeffval(0.1241933, 0.6329082, 0.2428986) for(n in 1 :l) { mu=meanval[seg,n] sg=sigmaval[seg,n] cval=coeffval[seg,n] val=cval*(dnorm(xval,mu,sg)) #print(paste0("The dnorm value for x is.: ", val)) sum_prob=sum_prob+val } sum_prob } The output is not correct. Since I check my data using* UnivarMixingDistribution* from distr package and according to this the max sho...
2020 May 18
2
LV: predication
...vector loop with implicit predication, which works by setting up the the number of elements processed by the loop: hwloop 10 [i:4] = b[i:4] + c[i:4] Why couldn't you use VP intrinsics and scalable types for this? %bval = <4 x vscale x double> call @vp.load(..., /* %evl */ 10) %cval = <4 x vscale x double> call @vp.load(..., /* %evl */ 10) %sum = <4 x vscale x double> fadd %bval, %cval store [..] I see three issues with the llvm.set.loop.elements approach: 1) It is conceptually broken: as others have pointed out, optimization can move the intrinsic around si...
2011 Jul 13
2
[LLVMdev] overflow check
...stantInt>(V); ConstantInt *CB = dyn_cast<ConstantInt>(B); ConstantInt *CC = dyn_cast<ConstantInt>(C); if (CV && CB && CC) { const APInt &VVal = CV->getValue(); const APInt &BVal = CB->getValue(); const APInt &CVal = CC->getValue(); ****** But isn't APInt considered to represent unsigned integers ? Is there another way of doing this ? Thanks in advance, Pranav
2008 Mar 26
1
rsync 3.0.1pre -H fails assertion
Wayne, I have this bug in redhat bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=439074 Summary: rsync 3.0.1pre -H fails assertion Is it ok to pass this kind of bug directly upstream filing a new bug in bugzilla and linking the fedora bug ? (There is also a reproducer there) Simo. -- Simo Sorce * Red Hat, Inc * New York
1999 Sep 14
0
SCO lan manager
...announcement packet. *******************************************************************/ void process_lm_host_announce(struct subnet_record *subrec, struct packet_struct *p, char *buf) { struct dgram_packet *dgram = &p->packet.dgram; uint32 servertype = IVAL(buf,1); int osmajor=CVAL(buf,5); /* major version of node software */ int osminor=CVAL(buf,6); /* minor version of node software */ int ttl = SVAL(buf,7); char *announce_name = buf+9; struct work_record *work; struct server_record *servrec; char *work_name; char *source_name = dgram...
2000 Jul 11
0
Error ERRaccess in Samba 2.0.7 printing to Netgear print servers
...t for the requested function. The context is defined by the TID or the UID.) opening remote file stdin-1234 I compared the 2.0.7 source with the 1.9.18 source and found that the cmd_print procedure has changed significantly. In clientgen.c, the cli_open procedure has the following statement : CVAL(cli->outbuf,smb_com) = SMBopenX I changed that to CVAL(cli->outbuf,smb_com) = SMBsplopen; and the ERRaccess error disappeared. It is my guess that the Netgear print server does not support the SMBopenX file SMB commands, but does support the SMBspl print spool SMB commands. I changed...
2005 Jan 02
1
sendfile questions...
Why in smbd/reply.c does send_file_readX only use sendfile if write cache size is 0? <snip> if (chain_size ==0 && (CVAL(inbuf,smb_vwv0) == 0xFF) && lp_use_sendfile( SNUM(conn)) && (lp_write_cache_size(SNUM(conn)) == 0) ) { </snip> While its true send_file_readX works regardless of the state of oplocks (which is cool!) the smb.conf.5 man page still indicates the file mu...
2002 Aug 13
1
Specification documents
...ence decoder as well as the specification documents, I'd like to point out what I think to be some minor omissions/flaws in the latter, and suggestions for correcting them. --- #1: in vorbis-spec-floor1.html, packet decode: Between 14) and 15) a crucial step is missing. Please insert: 14a) [cval] >>= [cbits] ---- #2: in vorbis-spec-floor1.html, curve computation step #1: The distinction between [floor1_Y] and [floor1_final_Y] looks invalid. IIRC the prediction loop works as follows: At the beginning Y[0] and Y[1] contain the absolute amplitudes (log scale) at the lower resp. upper...
2007 Dec 11
1
Doubts in codebook decoding
...am trying to implement ogg vorbis real time decoder on SHARC ADSP 21364 processor. I am writing my own version of the decoder using the documentation vorbis_I_spec.pdf from xiph.org. However I am facing certain hurdles in floor curve decoding during audio packet decode. In the spec it says that [cval] = read from packet using codebook number [so and so] in *scalar context*.(page no 43). Now please tell me the following: 1. Vorbis uses an LSB bit packer. But to decode bit-by-bit from the bitstream using the huffman decode tree we need the MSB of the codeword first. How is this issue overcome in...
2008 Apr 26
1
Bug#477931: rsync: Segfaults syncing the linux kernel archive.
...; > Kurt > --- hlink.c.old 2008-04-25 19:39:15.000000000 +0000 +++ hlink.c 2008-04-25 19:39:49.000000000 +0000 @@ -266,15 +266,18 @@ F_HL_PREV(file) = prev_ndx = F_HL_PREV(fp); } - if ((node = hashtable_find(prior_hlinks, gnum, 0)) != NULL) { - assert(node->data != NULL); - if (CVAL(node->data, 0) != 0) { - *prev_ndx_p = -1; - *flist_p = NULL; - return node->data; + if (inc_recurse) + { + if ((node = hashtable_find(prior_hlinks, gnum, 0)) != NULL) { + assert(node->data != NULL); + if (CVAL(node->data, 0) != 0) { + *prev_ndx_p = -1; + *flist_p = NUL...
2013 Oct 08
3
Re: [PATCH v4 1/9] xen/arm: Implement hvm save and restore
...ruct vtimer *t; >> + int i; >> + >> + /* Save the state of vtimer and ptimer */ >> + for_each_vcpu( d, v ) >> + { >> + t = &v->arch.virt_timer; >> + for ( i = 0; i < 2; i++ ) >> + { >> + ctxt.cval = t->cval; >> + ctxt.ctl = t->ctl; >> + ctxt.vtb_offset = i ? d->arch.phys_timer_base.offset : >> + d->arch.virt_timer_base.offset; >> + ctxt.type = i; >> + if ( hvm_save_entry(A15_TIMER, v->vcpu...
2020 May 18
2
LV: predication
...vector loop with implicit predication, which works by setting up the the number of elements processed by the loop: hwloop 10 [i:4] = b[i:4] + c[i:4] Why couldn't you use VP intrinsics and scalable types for this? %bval = <4 x vscale x double> call @vp.load(..., /* %evl */ 10) %cval = <4 x vscale x double> call @vp.load(..., /* %evl */ 10) %sum = <4 x vscale x double> fadd %bval, %cval store [..] I see three issues with the llvm.set.loop.elements approach: 1) It is conceptually broken: as others have pointed out, optimization can move the intrinsic around si...
2020 May 04
3
LV: predication
Hi Roger, That's a good example, that shows most of the moving parts involved here. In a nutshell, the difference is, and what we would like to make explicit, is the vector trip versus the scalar loop trip count. In your IR example, the loads/stores are predicated on a mask that is calculated from a splat induction variable, which is compared with the vector trip count. Illustrated with your
2020 May 19
3
LV: predication
...vector loop with implicit predication, which works by setting up the the number of elements processed by the loop: hwloop 10 [i:4] = b[i:4] + c[i:4] Why couldn't you use VP intrinsics and scalable types for this? %bval = <4 x vscale x double> call @vp.load(..., /* %evl */ 10) %cval = <4 x vscale x double> call @vp.load(..., /* %evl */ 10) %sum = <4 x vscale x double> fadd %bval, %cval store [..] I see three issues with the llvm.set.loop.elements approach: 1) It is conceptually broken: as others have pointed out, optimization can move the intrinsic around si...