search for: addnode

Displaying 13 results from an estimated 13 matches for "addnode".

Did you mean: addmode
2008 Mar 12
0
R code for kernel density using kd-tree, looking for speed up
...con/n/bw^d; } ################################################################### ## create an empty node newtree = function(){ list(center=NULL, diameter=NULL, left=NULL, right=NULL) } #################################################################################### ## add a node to the kdtree addNode = function(tree, points) { numOfPoints = ncol(points); if(numOfPoints==1) { tree$center = as.vector(points); return(tree); } ########################################################## box.lower.limit = apply(points, 1, min); box.upper.limit = apply(points, 1, max);...
2020 Jul 01
2
How to prevent llvm's default optimization
Thanks. I have checked the hook DAGCombiner::isMulAddWithConstProfitable And I think the above condition is too aggressive. // If the add only has one use, this would be OK to do. if (AddNode.getNode()->hasOneUse()) return true; Shall we make it to if (AddNode.getNode()->hasOneUse() && TargetLowering.isCheaperCommuteAddMul(......)) return true; The virtual hook nethod isCheaperCommuteAddMul will return true by default, but specific targets like arm/riscv can...
2011 Feb 13
1
RCytoscape setPosition error
...le', graph=RCytoscape::makeSimpleGraph()) layout (cw, 'jgraph-spring') redraw(cw) nodesFr = c('A', 'B', 'C') nodesTo =c('D', 'E', 'F') nodesAll = union(nodesFr, nodesTo) nElemFr = length(nodesFr) nElemTo = length(nodesTo) g <- graph::addNode(nodesAll, g) setPosition(cw, nodesFr , c(400, 400, 400), c(100, 200, 300)) setPosition(cw, nodesTo , c(600, 600, 600), c(100, 200, 300)) Error in convertToR(xmlParse(node, asText = TRUE)) : faultCode: 0 faultString: Failed to invoke method setNodesPositions in class tudelft.CytoscapeRPC.Cytoscap...
2007 Oct 28
0
TreeView Control
...learning RubyRails..... I am simply trying to add a tree view control. I want to use the YUI treeview control. Here is my code <% for tax in @taxonomies%> <%=tax.parent-%> <%=tax.description-%> <br> <script type="text/javascript"> addNode(node_id,description) </script> <% end %> I have a javascript that will add a node. My question is...how do I pass the data I get from the ruby database loop to the javascript? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribe...
2020 Jun 30
2
How to prevent llvm's default optimization
Yes - this has been in InstCombine for a long time: https://github.com/llvm/llvm-project/blob/master/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp#L268 We could say that the canonicalization should be reversed, but that probably uncovers more missing optimizations. The code size concern is legitimate. For example on x86, gcc asm is 2 bytes smaller on this example:
2010 Dec 10
3
help requested
HI friends, I have very lengthy graph data in edge list format. I want to convert it into node list format. example: EDGE LIST FORMAT 1 2 1 3 1 4 1 5 2 3 2 4 3 2 4 1 4 3 4 5 5 2 5 4 ITS NODE LIST FORMAT SHOULD BE LIKE: 1 2 3 4 5 2 3 4 3 2 4 1 3 5 2 4 Kindly suggest me which package in R provides the support to do my task. Thank u friends in advance. -- View this message in context:
2011 Nov 14
2
[LLVMdev] Build LLVM as a DLL on Windows x86
...1]: Making dummy -lstdc++ to lib llvm[1]: Collecting global symbols of stdc++ llvm[1]: Generating exports for LLVM-3.0 llvm[1]: Generating LLVM-3.0.def llvm[1]: Linking Release Shared Library LLVM-3.0.dll c:/dev/llvm/build-rc3/Release/lib/libLLVMCodeGen.a(RegAllocPBQP.o):fake:(.text$_ ZN4PBQP5Graph7addNodeERKNS_6VectorE[PBQP::Graph::addNode(PBQP::Vector const&)]+0 x9c): undefined reference to `std::_List_node_base::_M_hook(std::_List_node_base *)' c:/dev/llvm/build-rc3/Release/lib/libLLVMCodeGen.a(RegAllocPBQP.o):fake:(.text$_ ZN4PBQP19HeuristicSolverImplINS_10Heuristics6BriggsEE15computeSo...
2016 Feb 10
5
Question about an error we're now starting to get on LLVM 3.8.0rc2since
...t; isn't templated on) the downcasted nodes -- removing the need to invoke > UB -- but for now I'm just trying to get a handle on all the current use > cases (and cleaning things up as I see them). > > Besides these six SymbolTable lists, there are two others that use the > addNode/removeNode/transferNodes() hooks: the `MachineInstruction` and > `MachineBasicBlock` lists. Ideally there'll be a way to factor these > hooks out of the low-level API entirely, but I'm not quite there yet. > > Since this change is annotated as NFC, I’m thinking that t...
2011 Nov 14
0
[LLVMdev] Build LLVM as a DLL on Windows x86
2011/11/13 Alan Garny <agarny at hellix.com>: > Now, I know that shared libraries are not supported on Windows using CMake > (according to http://www.llvm.org/docs/CMake.html) which would have been my > preferred building choice, but I didn’t see anything against them not being > supported using Autotools, so I thought I would try it that way (as I > successively did on Linux
2007 Jun 12
4
pretty report
Dear Listers: I have a couple of data frames to report and each corresponds to different condtions, e.g. conditions=c(10, 15, 20, 25). In this examples, four data frames need to be exported in a "pretty" report. I knew Perl has some module for exporting data to Excel and after googling, I found R does not. So I am wondering if there is a package in R for generating good reports. I
2011 Apr 29
4
You don't check for malloc failure
...; if(alias->source == NULL) { @@ -1073,6 +1076,9 @@ char *tmp; server = (ice_config_dir_t *)malloc(sizeof(ice_config_dir_t)); + if (server == NULL) { + abort(); + } server->touch_interval = configuration->touch_interval; server->host = NULL; addnode = 0; diff -ru icecast-2.3.2-ORIG/src/connection.c icecast-2.3.2/src/connection.c --- icecast-2.3.2-ORIG/src/connection.c Wed Dec 19 19:58:00 2007 +++ icecast-2.3.2/src/connection.c Thu Apr 28 19:53:43 2011 @@ -532,6 +532,9 @@ /* malloc enough room for a full IP address (including ipv6) */...
2011 Nov 13
5
[LLVMdev] Build LLVM as a DLL on Windows x86
Hi, I need to build a shared version of LLVM on Windows, Linux (both x86 and x64) and Mac OS X. So far, I have been able to build LLVM on Linux and Mac OS X, and it's all working fine as confirmed by a small LLVM test code that I wrote. However, on Windows, even though I get a DLL, that DLL doesn't contain any (exported) functions (according to DLL Export Viewer; see
2010 Dec 11
0
is there a packge or code to generate markov chains in R
...4 5 > 2 3 4 > 3 2 > 4 1 3 > 5 2 4 > > Kindly suggest me which package in R provides the support to do my task. How long the list of egdes is? For not too large lists, consider also library(graph) G <- new("graphNEL", edgemode="directed") G <- addNode(as.character(1:5), G) edges <- read.table(file=stdin(), colClasses="character") 1 2 1 3 1 4 1 5 2 3 2 4 3 2 4 1 4 3 4 5 5 2 5 4 G <- addEdge(from=edges[, 1], to=edges[, 2], G) edgeL(G) $`1` $`1`$edges [1] 2 3 4 5 $`2` $`2`$edges [1] 3 4 $`3` $`3`$...