search for: overloading

Displaying 20 results from an estimated 2281 matches for "overloading".

2013 Nov 26
2
[LLVMdev] LLVM compilation problem
I am using gcc 3.4.6 to build LLVM, and am encountering overloaded/ambiguous errors in several files... % gcc -v Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
2006 May 08
3
operator overload on views
In my User auth scheme I have a userlevel. I''ve overloaded the User class operators like this: def >(item) if item.class == "User" self.userlevel > item.userlevel else self.userlevel > item end end (other operators are overloaded in essentially the same way). As I understand it, using the operator ">" inside the overloaded
2014 Jun 10
2
Overload Point for OPUS
Hello, Can you please tell me what the overload point is for OPUS in dBm0 or dBV? As an example, the G.711 A law codec has an overload point of +3.14 dBm0 across a 600 ohm circuit. In ITU-T G.100.1 section 5.8 you can read more about the relationship between dBm0 and dBov. In that same section you can see that the G.711 A law, u law, and G.722 codec overload points are also defined.
2013 Aug 02
0
[LLVMdev] Clang (3.1 and 3.2): __attribute__((overloadable)) and enum types.
...idate function __attribute__((overloadable)) void foo(enum Three); ^ 1 error generated. While with "-x c++" both versions of Clang compiled it successfully (failed to link though). According to http://clang.llvm.org/docs/LanguageExtensions.html#function-overloading-in-c overloadable attribute is an analogue for C++ function overloading in C. So, is it a bug in the Clang or I didn't understand/consider something? BR, Andrey Lizunov -------------------------------------------------------------------- Closed Joint Stock Company Intel A/O Registered legal...
2005 Apr 20
5
Overloading methods in R
(1) It seems to me that, generally, in R it is not possible to overload functions. Is that right? (2) Assuming that the above is true, or partially true, is there any extra packages to handle overloading in R? (3) Assuming (1) is TRUE and (2) is FALSE, can anyone provide some advice on developing some function that understand what the arguments are and then calls the right overloaded function? It would be something like this: overloadedFunction1 <- function(x) {}; overloadedFunction2 <-...
2011 Sep 30
1
integrate two lines to one
Dear all, I would like to put these two lines together logictoReduce<-((Overloads-1)%%FreqN)==(SpanIndex-1) #0...3 refer to sub spans 1 to 4 Overloads<-Overloads[logictoReduce==TRUE] and do it like this Overloads<-Overloads[((Overloads-1)%%FreqN)==(SpanIndex-1)] which does not seem to work. Could you please explain me what might be the problem for that? B.R Alex [[alternative
2006 Jun 13
7
ActiveRecord attribute= overload
I want to overload the = operator for one of the attributes in a model to run a filter on the input. However I can''t do this: def attribute=(data) self.attribute = filter(data) end because that creates an infinite recursive loop. How do I get around this? -- Posted via http://www.ruby-forum.com/.
2006 Feb 13
1
Problem with overloading add type casts of numeric strings in PHP bindings
Overloaded methods are mapped in PHP to their implementation (_SWIG_0, _SWIG_1, ..) based on the types and number of arguments the user supplies. However, if one overload accept a string and another an integer the bindings fail to separate them since PHP treats numeric strings much the same as integers. The problem is illustrated in WritableDatabase_replace_document() which takes either the
2008 Feb 19
0
[LLVMdev] Problem with variable argument intrinsics
...nt_migrate_begin : > Intrinsic<[llvm_migrate_begin,llvm_vararg_ty], > [IntrWriteMem],"llvm.migrate_begin">; This says that the return type is overloaded (because it's iAny). But that's the only overloaded part here; using variadic argument lists is different from overloading. > > > Overloaded intrinsic has incorrect suffix: '.i32.i32'. > It should be '.i32' > i32 (...)* @llvm.migrate_begin.i32.i32 > > Overloaded intrinsic has incorrect suffix: > '.i32.i32.i32'. It should be '.i32' > i32 (...)* @llvm.migrate_be...
2008 Feb 19
2
[LLVMdev] Problem with variable argument intrinsics
Hi, I tried creating variable argument intrinsics which are to be placeholders for some instructions which should not be executed by the backend. Kindly help me with the errors in my "migrate_begin" intrinsic creation //Additions made to Intrinsics.td file: def llvm_migrate_begin : LLVMType<iAny>; def int_migrate_begin :
2016 Jul 26
2
Help wanted: Overloading an Intinsic
Hello All, I have been modifying LLVM a project of mine, and have encountered issues with overloading an intrinsic function. I have defined two types, abit (which is mapped, in Intrinsics.td, to i128) and qbit (accordingly mapped to i16). I would like my intrinsic function, CNOT(x,y), to accept either an abit or a qbit for each argument, so I overload with iAny and llvm_anyint_ty, as seemed to be...
2013 Jun 13
1
[LLVMdev] function overload in C
Hi, I'm trying to implement an overloading behavior to some of our builtin functions, and came across the following comment in SemaExpr.cpp // Check for overloaded calls. This can happen even in C due to extensions. If (Fn->getType() == Context.OverloadTy) { .... I was wondering which C extensions is this referring to? Thanks Ali ----...
2010 Mar 23
1
Operator overloading for custom classes
...res inside of R. So I was wondering if some of you could help me out in this regard. I have written a simple demonstration of a forward mode automatic differentiator in C++ and it is currently hosted on github: http://github.com/quantumelixir/ad-demo/blob/master/simple.cpp. It uses simple operator overloading techniques to modify the meaning of the basic arithmetic operations (+, -, *, /) for the "derivative" type Dual number class that I have defined. Could you show me how this could be equivalently done in R? I want to know how to define custom classes and define the meaning of arithmetic fo...
2010 Mar 23
1
: Operator overloading for custom classes
...res inside of R. So I was wondering if some of you could help me out in this regard. I have written a simple demonstration of a forward mode automatic differentiator in C++ and it is currently hosted on github: http://github.com/quantumelixir/ad-demo/blob/master/simple.cpp. It uses simple operator overloading techniques to modify the meaning of the basic arithmetic operations (+, -, *, /) for the "derivative" type Dual number class that I have defined. Could you show me how this could be equivalently done in R? I want to know how to define custom classes and define the meaning of arithmetic fo...
2016 Jul 28
0
Help wanted: Overloading an Intinsic
...assert would show the trace where clang uses this intrinsic. Hope this helps, Anna > On Jul 26, 2016, at 3:21 PM, David Noursi via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hello All, > > I have been modifying LLVM a project of mine, and have encountered issues with overloading an intrinsic function. > > I have defined two types, abit (which is mapped, in Intrinsics.td, to i128) and qbit (accordingly mapped to i16). I would like my intrinsic function, CNOT(x,y), to accept either an abit or a qbit for each argument, so I overload with iAny and llvm_anyint_ty, as se...
2011 Jun 01
1
Overloading S4 methods
Dear all, I am experiencing some problems with S4 method overloading. I have defined a generic for graphics:plot, using setGeneric("plot", useAsDefault = plot) and with importFrom('graphics', 'plot') and exportMethods('plot') in the NAMESPACE file of pkg A. I then proceed to define a method for signature c('myS4class',...
2004 May 26
1
Bindings and overloading
This is going to be a problem. I don't appear to be able to rename a method once it's declared. So if the core bindings file declares some overloaded operators, functions or constructors, it's impossible to move them out of the way in only some of the bindings. Since Python supports overloading, I can't think of any solution to this other than maintaining two different xapian.i files, one with the overloading renamed away. This isn't pleasant - does anyone have an alternative suggestion that would avoid this? J -- /---------------------------------------------------------------...
2011 Feb 01
2
[LLVMdev] Convenience methods in ConstantExpr et al
I notice that there's a lot of inconsistency in the various LLVM classes with respect to convenience methods. Here's some examples: For creating GEPS, IRBuilder has: CreateGEP (2 overloads) CreateInBoundsGEP (2 overloads) CreateConstGEP1_32 CreateConstInBoundsGEP1_32 CreateConstGEP2_32 CreateConstInBoundsGEP2_32 CreateConstGEP1_64 CreateConstInBoundsGEP1_64
2015 Jan 27
3
[LLVMdev] [lld] Overloaded Layout references
Hi, I think we are overloading the Layout references for garbage collection. If you are creating a reference (kindLayoutAfter) from A to B, that may not mean that you cannot garbage collect B for the end user. My thought on Layout references was that it only guarantees that atoms appear in Layout reference order. Why are we o...
2008 Jul 30
3
[LLVMdev] address space overloading patch broke the llvm-gcc build
...t should be '.i8.p0i8' i8 (i8*, i8)* @llvm.atomic.swap.i8 Broken module found, compilation aborted! ../../../gcc-4.2.llvm/libgomp/critical.c: In function 'GOMP_critical_end': ../../../gcc-4.2.llvm/libgomp/critical.c:44: internal compiler error: Aborted So I guess your address space overloading patch broke llvm-gcc. Ciao, Duncan.