search for: represente

Displaying 20 results from an estimated 6979 matches for "represente".

Did you mean: represent
2005 Aug 18
2
Use of contains in S4 classes
setClass("B", representation=representation("B", extra="numeric)) setClass("B", representation=representation(extra="numeric"), contains="B") Are these the same? If not, how do they differ? What about setClass("B", representation=representation("B", extra="numeric"), contains="B") ? As far as I can
2008 Mar 26
5
S4 slot with NA default
Hi How do I specify an S4 class with a slot that is potentially numeric, but NA by default? I want the slot to be NA until I calculate its value (an expensive operation, not needed for all applications). When its value is known, I will create a new object with the correct value inserted in the slot. I want "NA" to signify "not known". My attempt fails because
2013 Feb 05
1
S4 Classes and Initialize methods
Hello, I am trying to improve my skill on S4 classes. But there's something strange (to me) happening with "initialize" methods. This is probably a normal behaviour... but... something is unclear in my mind I declare two classes, namely "A", and "B", which has a slot of type A. The class "A" has an initialize method. What I do not understand is that
2011 Apr 27
3
[LLVMdev] confused about float literals
...gt;>  ret i32 %2 >> } >> >> This is very strange - what is 0x400928F5C0000000 ??? >> the 32 bit hex representation of 3.145 is 0x404947ae, and, >> the 64 bit hex representation of 3.145 is 0x400928f5c28f5c29 > > For murky historical reasons, float literals are represented as > if they were doubles, but with the precision of a float.  It does > not change their semantics. But what is 0x400928F5C0000000? it is NOT the 64 bit representation with the low order 32 bits zeroed - it is the 62 bit representation with the low order 28 bits zeroed. Why 28 bits? - 32...
2004 Sep 29
1
Problem with _new_ if class "lm" in object representation.
Hi! Consider this code. setClass("Ctest" ,representation( test="character" ,bla="character" ,mod="lm" ) ) new("Ctest",test="bla") #This produces an error. #Error in validObject(.Object) : Invalid "Ctest" object: Invalid object for slot "mod" in class "Ctest": got class
2015 May 11
3
[LLVMdev] LLD improvement plan
Nobody in this long thread appears to have yet explained why it's a bad idea to allow atomic fragments of code/data (whatever you want to call them: atoms, sections, who cares) to have more than one global symbol attached to them in LLD's internal representation. That seems like it'd provide the flexibility needed for ELF without hurting MachO. If that change'd allow you to avoid
2010 Aug 18
1
Automatically retrieve correct collation
Dear List, consider the following scenario: setClass(Class = "A", representation = representation(B = "B", C = "C")) setClass(Class = "B", representation = representation(C = "C")) setClass(Class = "C", representation = representation(something = "character")) Obviously, the collation for sourcing these defs needs to be: C,
2020 Jan 30
2
Writing loop transformations on the right representation is more productive
...as the std.for/if (currently misnamed > as loop.for/loop.if) are actually a loop tree. The affine ops are just an > affine loop AST isomorphic to the materialization of polyhedral > domains/schedules via code generation. Every IST AST or the output of > polyhedral code generation can be represented in the affine dialect and > vice versa. MLIR's loop/if ops are a hierarchy rather than a flat form / > list of blocks CFG. > As per my discussion with Chris Lattner, this is a very subjective question. It might be controversial, but I don't see MLIR regions as much more than synt...
2020 Oct 10
2
Undef and Poison round table follow-up & a plan
> > Okay, it's just not immediately undefined behaviour. The C model has more > issues because of the problem with how "trap representation" is defined > (which precludes trap representations for unsigned char, two's complement > signed char, etc.). This interpretation is further stressed because C only explicitly ascribes > undefined behaviour to trap
2002 Nov 06
0
[LLVMdev] DSGraph implementation status update
...rams that use lots of global variables, or call lots of external functions. This shouldn't fundementally change the interface at all. 2. The heuristics can be improved slightly, improving the quality of the generated graphs. Basically, right now if something happens that cannot be represented in the graph, the node in question is collapsed, losing all field sensitivity. Because some "features" are not implemented yet, this happens in a couple cases where it shouldn't. In particular, the following programs graphs will improve: Olden-tsp, Olden-vornoni - Struct...
2018 Jun 07
2
[RFC] Abstract Parallel IR Optimizations
This is an RFC to add analyses and transformation passes into LLVM to optimize programs based on an abstract notion of a parallel region. == this is _not_ a proposal to add a new encoding of parallelism == We currently perform poorly when it comes to optimizations for parallel codes. In fact, parallelizing your loops might actually prevent various optimizations that would have been applied
2011 Sep 10
3
Very slow using S4 classes
Hi everybody! I'm creating an object of a S4 class that has two slots: ListExamples, which is a list, and idx, which is an integer (as the code below). Then, I read a data.frame file with 10000 (ten thousands) of lines and 10 columns, do some pre-processing and, basically, I store each line as an element of a list in the slot ListExamples of the S4 object. However, many operations after this
2010 Oct 20
1
[LLVMdev] Re : How to assign a constant to a register?
leledumbo, from what you say, I assume you have some kind of representation (AST or a lower-level intermediate representation) from which you generate LLVM assembly. Is this representation in SSA form? If it is, you might want to do a "copy propagation" transformation that replaces the uses of all variables that are assigned a constant value by their definitions. Example: x = 5 y =
2011 Feb 12
2
Linked List in R
Hi, I am trying to create a linked list in R by defining a class Node which has a instance variable Node. setClass("Node", representation(rate="numeric", nextNode="ANY")) The above works. But the following gives me a warning message. setClass("Node", representation(rate="numeric", nextNode="Node")) > >
2003 May 30
2
Creating a vector class
I'm trying to create a package for working on orientation data, i.e. data where the observations are 3D rotations. There are several different representations of orientations in common use: SO(3) matrices, Euler angles, unit quaternions, etc. One thing I'd like is to make it convenient to work in any representation, and have conversions to others done as needed. I'm trying to do
2009 May 17
2
Output of binary representation
I am interested in studying the binary representation of numerics (doubles) in R, so am looking for possibilities of output of the internal binary representations. sprintf() with format "a" or "A" is halfway there: sprintf("%A",pi) # [1] "0X1.921FB54442D18P+1" but it is in hex. The following illustrate the sort of thing I want: 1.1001 0010 0001 1111
2008 Feb 08
2
learning S4
Hi the list. I try to learn the S4 programming. I find the wiki and several doc. But I still have few questions... 1. To define 'representation', we can use two syntax : - representation=list(temps = 'numeric',traj = 'matrix') - representation(temps = 'numeric',traj = 'matrix') Is there any difference ? 2. 'validityMethod' check the
2016 Mar 18
2
unary class union of an S3 class
Hi, Short story ----------- setClassUnion("ArrayLike", "array") showClass("ArrayLike") # no slot setClass("MyArrayLikeConcreteSubclass", contains="ArrayLike", representation(stuff="ANY") ) showClass("MyArrayLikeConcreteSubclass") # 2 slots!! That doesn't seem right. Long story ----------
2018 Aug 09
1
Bug in POSIXct string representation?
Dear all, I just have identified the following issue which I believe could be a bug in R: Let me illustrate: First, enable the display of fractional seconds and check that it works: > options(digits.secs = 6, digits = 6) > as.character(as.POSIXct("2018-08-31 14:15:16.123456")) [1] "2018-08-31 14:15:16.123456" Now create a sequence of POSIXct with stepwidth 0.1sec:
2009 Jun 29
1
S4 and connection slot [Sec=Unclassified]
Hi all, I am having a problem trying to declare a slot representation to hold a file connection. With V2.8.0 I had been using: setClass("Element", representation( [other slots removed], datafileConn = setOldClass(c("file","connection")) ) ) This resulted in a warning but still ran okay. No however with V2.9.0 I am getting