Displaying 14 results from an estimated 14 matches for "argval".
2005 Mar 08
1
[LLVMdev] Making Constants from GenericValues
I'm trying to turn some GenericValues into Constants in the interpreter
using code like this, in a switch statement:
case Type::IntTyID:
SI = ConstantSInt::get(FB->getType(), ArgVals[i].IntVal);
params.push_back(UI);
UI->dump(); //for testing
break;
FB is a Function::ArgumentListType::iterator
ArgVals is a std::vector<GenericValue>
the switch is on FB->getType()->getTypeID()
so basically what I am doing is iterating through the formal arg...
2010 Mar 26
0
fda Data2fd
...ere both domain and range are matrices.
My erroneous attempts are below.
Can you suggest corrections?
library(fda)
domain<-matrix(c(1,1.1,1.2,2,2.1,2.1,3,3.1,3.2,4,4.1,4.2,5,5.1,5.2), nrow = 5, ncol=3, byrow=TRUE)
range<-sin(domain)+matrix(rnorm(15,sd=0.1),nrow=5, ncol=3)
myfd<-Data2fd(argvals=domain, y=range)
#Error in create.bspline.basis(argvals) :
# rangeval is not a vector; class(rangeval) = matrix
mybasis<-create.bspline.basis(rangeval=c(0.5,5.2), nbasis=6)
myfd<-Data2fd(argvals=domain, y=range,basisobj=mybasis)
#Error in smooth.basis(argvals, y, fdP, wtvec = w, fdnames...
2009 Dec 10
1
switch() called with just the EXPR argument causes R to hang (PR#14124)
...quot;a")
the internal C subroutine behind switch is do_switch located in
R/src/main/builtin.c
For convenience I reproduce it below.
*****************************************************************************
SEXP attribute_hidden do_switch(SEXP call, SEXP op, SEXP args, SEXP rho)
{
int argval;
SEXP x, y, w;
x = eval(CAR(args), rho);
if (!isVector(x) || length(x) != 1)
error(_("switch: EXPR must return a length 1 vector"));
PROTECT(w = switchList(CDR(args), rho));
if (isString(x)) {
for (y = w; y != R_NilValue; y = CDR(y))
if (TAG(y) != R_Nil...
2009 Nov 13
1
[LLVMdev] Poolalloc asserts when passing in pool descriptors
Hi,
The poolalloc library fails in TransformFunctionBody.cpp, line 746
---
Value *ArgVal = ConstantAggregateZero::get(PoolAllocate::PoolDescPtrTy);
---
opt -load /path_to_lib/libpoolalloc.dylib -poolalloc constaggr.bc -o
opt.bc -f
triggers the problem (bc file attached).
Assertion failed: ((isa<StructType>(Ty) || isa<ArrayType>(Ty) ||
isa<VectorType>(Ty)) &&a...
2006 Oct 11
1
Possible bug in accessing methods documentation? (PR#9291)
...function 'featureNames' and signature 'object = "missing"'
>
>
> Am I expecting the wrong thing or is this broken?
I think it's broken. The line that looks broken is in .helpForCall,
where it has
methods::"elNamed<-"(sigClasses, arg, class(argVal))
Looking at the elNamed<- function, I think this is supposed to be
equivalent to
sigClasses[[arg]] <- class(argVal)
but it is not making any assignment. I don't understand the point of
doing the assignment that way, or why it's not working, so I'll leave
this for someone e...
2008 Nov 07
1
Problems with packages fda and splines (PR#13263)
...sed at the end of this email.
Can you help on this ?
Thanks,
David
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
R SCRIPT for Data2fd with NAs
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> library(fda)
> y=runif(10)
> x=Data2fd(1:10,y) # creates functional object in B-spline basis
Warning message:
In smooth.basis(argvals, y, fdP, wtvec = w, fdnames = fdnames) :
The number of basis functions = 12 exceeds 10 = the number of points to be
smoothed. With no smoothing (lambda = 0), this will produce a perfect fit to
data that typically has wild excursions between data points.
> x$coefs # here it works because no N...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 07/13] lguest64 loader
...+ if (memcmp(hdr.e_ident, ELFMAG, SELFMAG) == 0)
+ load = map_elf;
+ else
+ load = load_bzimage;
+
+ devices.max_infd = -1;
+ devices.dev = NULL;
+ FD_ZERO(&devices.infds);
+
+ devdescs = map_pages(mem, 1);
+ arg = 3;
+ while (argv[arg] && argv[arg][0] == '-') {
+ const char *argval;
+
+ if ((argval = get_arg(argv[arg], "--sharenet=")) != NULL)
+ setup_net_file(argval, devdescs, &devices);
+ else if ((argval = get_arg(argv[arg], "--tunnet=")) != NULL)
+ setup_tun_net(argval, devdescs, &devices);
+ else if ((argval = get_arg(argv[arg], "-...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 07/13] lguest64 loader
...+ if (memcmp(hdr.e_ident, ELFMAG, SELFMAG) == 0)
+ load = map_elf;
+ else
+ load = load_bzimage;
+
+ devices.max_infd = -1;
+ devices.dev = NULL;
+ FD_ZERO(&devices.infds);
+
+ devdescs = map_pages(mem, 1);
+ arg = 3;
+ while (argv[arg] && argv[arg][0] == '-') {
+ const char *argval;
+
+ if ((argval = get_arg(argv[arg], "--sharenet=")) != NULL)
+ setup_net_file(argval, devdescs, &devices);
+ else if ((argval = get_arg(argv[arg], "--tunnet=")) != NULL)
+ setup_tun_net(argval, devdescs, &devices);
+ else if ((argval = get_arg(argv[arg], "-...
2005 Mar 08
0
[LLVMdev] GCC assembler rejects native code generated by LLVM
My first patch was a little premature, please use this one.
On Mon, 2005-03-07 at 17:19, Reid Spencer wrote:
> Vyacheslav,
>
> This is the same problem that I had with Cygwin .. nearly identical.
> The issue was documented in PR492 if you want some background. I'm
> currently trying to dig up what I did to fix this in December for Cygwin
> and see if I can apply the same
2009 Oct 23
1
Functional data analysis - problems with smoothing
...offer any suggestions?
isi - vector of argument values - i.e. the independent variable of the curves
rlz - data array
TMSfdPar - functional data parameter.
> TMSfdPar = fdPar(TMSbasis, 4, 0.01)
> TMSfdsmooth = smooth.basis(isi, rlz, TMSfdPar)
Error in smooth.basis(isi, rlz, TMSfdPar) : 'argvals' is not numeric.
I don't understand why the error message keeps popping up. I've tried playing around with Jim Ramsay's datasets and I think my data is organised in a similar manner to his, so can't understand what's going on.... oh, the frustration!
Thanks in advance,
B...
2013 Apr 28
0
Positive Smoothing in fda package
...re is what I try:
>X <-c(0.4541139, 0.4802537, 0.5091228, 0.3894931, 2.1512258,
>7.9301281, 62.3876109, 54.1168247, 67.8769904, 91.0670615, 20.0682440)
>basis <- create.bspline.basis(c(-100, 100), 7, 5)
>MDA.fdPar <- fdPar(basis, 2, 0.01)
>MDA.fda.joint <- smooth.pos(argvals=seq(from=-100, to=100, length=11),
>y=X, WfdParobj=MDA.fdPar)
Iter. PENSSE Grad Length
0 1780.78 -1780.78
1 1753.525 14.318
2 1749.296 15.0611
3 1747.625 15.3031
4 1739.389 16.6266
5 1737.713 16.8989
6 1729.524...
2005 Mar 08
3
[LLVMdev] GCC assembler rejects native code generated by LLVM
Vyacheslav,
This is the same problem that I had with Cygwin .. nearly identical.
The issue was documented in PR492 if you want some background. I'm
currently trying to dig up what I did to fix this in December for Cygwin
and see if I can apply the same change for mingw.
Reid.
On Mon, 2005-03-07 at 16:39, Vyacheslav Akhmechet wrote:
> Ok, I got home so I have more details. Here's the
2020 Jun 09
2
Implementing a VTable in LLVM
...s null:
llvm::Function *calleeMethod = llvm::dyn_cast<llvm::Function>(builder->CreateLoad(calleeMethodPtr));
So if I then try to execute the following builder->CreateCall function I end up with a segmentation fault since calleeMethod is null:
builder->CreateCall(calleeMethod, argVals);
Under what circumstances would builder->CreateLoad return null? Is the global vTable's memory not allocated correctly? Or have I been approaching this incorrectly - is there another method in the C++ API that I should be using for indirect function calls?
I’d really appreciate any ass...
2018 Sep 14
6
Function calls keep increasing the stack usage
Hi everyone,
I found that LLVM generates redundant code when calling functions with
constant parameters, with optimizations disabled.
Consider the following C code snippet:
int foo(int x, int y);
void bar()
{
foo(1, 2);
foo(3, 4);
}
Clang/LLVM 6.0 generates the following assembly code:
_bar:
subl $32, %esp
movl $1, %eax
movl $2, %ecx
movl $1, (%esp)
movl $2, 4(%esp)
movl %eax, 28(%esp)
movl