Displaying 20 results from an estimated 900 matches similar to: "Finding all triangles in a graph"
2011 Dec 23
1
Help transforming a dist
I'd like to convert a dist into a table/matrix/thingy of the form:
A B value
A C value
B C value
(assuming the dist was over 3 names).
Is there a way to do this without using a for loop?
--
Taral <taralx at gmail.com>
"Please let me know if there's any further trouble I can give you."
? ? -- Unknown
2011 Jul 26
3
[LLVMdev] Spills and values present in both registers & stack
One piece of code I'm writing has a lot of intermediates, and I'm
trying to optimize down the number of memory accesses. Here's a
snippet from the start of the function, where I think there is some
low-hanging fruit:
# BB#0:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rcx
movq %rdi, -16(%rsp) # 8-byte Spill
movq (%rsi), %rdi
movq
2011 Jul 28
0
[LLVMdev] Spills and values present in both registers & stack
On Tue, Jul 26, 2011 at 11:35 AM, Taral <taralx at gmail.com> wrote:
>
> One piece of code I'm writing has a lot of intermediates, and I'm
> trying to optimize down the number of memory accesses. Here's a
> snippet from the start of the function, where I think there is some
> low-hanging fruit:
>
> # BB#0:
> pushq %rbp
> pushq %r15
2011 Aug 02
0
[LLVMdev] clang: Manual unfolding doesn't match automatic unfolding
Here's the code and compilation steps:
#include <stdint.h>
typedef unsigned int uint128_t __attribute__((mode(TI)));
typedef struct{
uint64_t l[5];
} s;
void f(s * restrict r, const s * restrict x, const s * restrict y) {
uint128_t t[5] = {0, 0, 0, 0, 0};
#define BODY(i,j) { int i_ = i < j ? i : j; int j_ = i < j ? j :
i; uint128_t m = (uint128_t) x->l[i_] *
2007 Mar 08
2
sending a vector of characters as arguments for a function
Dear all,
It seems to be a recurrent problem to me and I am asking your help to
get over it once for all ...
My idea is :
I have variables C_1, C_2, C_3 ... that corresponds to vectors of size
n, and I would like to cbind them.
I get a vector of their names using : temp<- ls(pat="C")
And I like to find a way to use this vector temp as an argument to
cbind.
2009 Nov 09
2
Outputing multilple subsets
Hi Rusers,
I hope to divide the original dataset into several subsets and output
these multilple datasets. But errors appeared in my loops. See example.
######
a<-c(1:10)
b<-c(rep(1,3),rep(2,3),rep(3,4))
c<-data.frame(a,b) #c is the example data
num<-c(unique(b))
# I hope to get the subsets c_1.csv,c_2.csv and c_3.csv
#Errors
for (i in num) {
c_num<-c[c$b==num,]
2009 Aug 24
1
How to generate more triangles in sequences?
Hi everyone,
I want to plot some pattern. For example, I have some coding as below,
plot(0:11,type="n")
polygon(c(6,8,10), c(7,3,5),bor=6)
polygon(c(2,4,6), c(5,3,7),bor=6)
polygon(c(6,10,8), c(7,9,11),bor=6)
polygon(c(2,6,4), c(9,7,11),bor=6)
This coding will give me four triangles, but how to generate more triangles
in sequences so
that not need to mention the coordinate for each
2003 Dec 05
2
s-plus to R
Hi, I have a piece of code originally written for s-plus - I am trying to
run it in R now. The code was obtained from someone who is now not
available to give any pointers and I am a beginner in R. Here is where it
is getting stuck:
> +names(good.motifs[,1])
Error in +names(good.motifs[, 1]) : Invalid argument to unary operator
here is now names(good.motifs,1]) looks:
>
2015 May 18
2
Tessellation shaders get MEM_OUT_OF_BOUNDS errors / missing triangles
Hello,
I've been debugging a few different tessellation shader issues with
nouveau, but let's start small. I see this issue on my GK208 with high
frequency, and I *think* I've seen it once or twice on my GF108, but
it's exceedingly rare, if it does happen. I don't have a GK10x to test
on, unfortunately, but I assume it'll have the same issue as the
GK208.
The issue is
2019 May 23
3
Artwork localization
Hello everyone,
What do you think about having localized the following CentOS
components:
- Rolling notes in CentOS installer.
These images are shown during the installation process, once the
configuration is done and you are waiting for packages to be installed.
Rolling notes are a great place to promote CentOS. If they are not
localized, they are shown in English language by default.
2008 Dec 09
2
motif search
Hi,
I am very new to R and wanted to know if there is a package that, given
very long nucleotide sequences, searches and identifies short (7-10nt)
motifs.. I would like to look for enrichment of certain motifs in
genomic sequences.
I tried using MEME (not an R package, I know), but the online version
only allows sequences up to MAX 60000 nucleotides, and that's too short
for my needs..
2019 May 25
2
Artwork localization
Hi Timothy,
On Thu, 2019-05-23 at 14:03 +1000, Timothy Lee wrote:
> I can provide zh-CN, zh-HK and zh-TW translations of the content.
Your changes were pushed. See:
https://git.centos.org/centos/Artwork/c/9efa093b155293bf171d6b7f9ceeb73b41170cf9?branch=c8
To render Chinese rolling notes images I had to change the final
images' typography from "Overpass" to "Google
2015 May 26
2
Tessellation shaders get MEM_OUT_OF_BOUNDS errors / missing triangles
One additional observation that I just made is that on GK208, the blob
apparently doesn't use the result of S2R Rx, SR_INVOCATION_ID
wholesale in TCS. It either passes it through a I2I.S32.S32 Rx, |Rx|
(i.e. absolute value), or even more paradoxically, shl 2; shr 2; which
removes the top *2* bits, rather than just the top 1. However I see no
such behaviour on GF108.
I'm going to test out
2000 Sep 11
4
longs
Please change all longs to int, and never use them in the future :)
They arent needed as on most platforms they are the same size. (which is the assumption made in the ogg code anyway)
The reason for this is i will have vorbis support on playstation 2, but long is 64 bits, and they are excruciatingly slow.
cheers
Brett Paterson
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg
2000 Aug 29
5
Optimization and doubles vs. floats
I saw some mail go by a bit ago about doubles-vs-floats, but I seem to have lost it.
I'm interested in rewriting the mdct code using Altivec on MacOS X. Altivec doesn't support doubles, though -- the only floating point vector type is single precision floats. Vorbis currently has doubles everywhere -- is this really necessary? Doubles are supposedly faster than floats in the PPC
2000 Oct 15
3
Re(2): Mime Type and Ogg (More)
Hi,
I don't really know the details of the discussion, but I'd like to
present this issue from a user-oriented perspective, and from the
perspective of how Nautilus wants to use data files.
In brief, Nautilus makes the assumption that the mime type is
sufficient to pick the right applicatiob or pluggable component to
view/edit a particular content type. This is quickly coming to be the
2003 Aug 20
1
Filled triangles in lattice graphics?
Dear R users,
I can get a filled triangle pointing upwards by specifying pch=17 in
xyplot or lpoints, but how do I get a filled triangle that points downwards?
In the standard plot function it's possible to use
plot(x,y,pch=25,bg="black"), but bg= doesn't seem to work with lattice
and lpoints.
Thanks,
Hans Gardfjell
Ecology and Environmental Science
Ume? University, Sweden
2004 Jun 28
1
Survey: "Motivation of Free/Open Source Software (F/OSS) Developers"
Survey: "Motivation of Free/Open Source Software (F/OSS) Developers"
We (Marc R?ttig and Carl-Daniel Hailfinger) are currently working
on a survey on the motivation of open source developers as part of
a "Computer Science and Society" project at the CS department of the
University of T?bingen. We invite every developer in the Free / Open
Source Software community to help us
2010 May 09
1
Plot polygon in 3D with rgl
Dear R-helpers, an rgl-ers in particular,
what is the easiest way to plot a section of a plane in 3D, that is
given by the xyz coordinates of the outline?
Suppose I have a polygon - which I know for sure is a set of
coordinates on the same plane. One method I found is to use surf.tri
from the geometry package, and then plot the triangles with
rgl.triangles. This method is not perfect though,
2019 Apr 13
3
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
Hi Inaki,
> "Performant"... in terms of what. If the cost of copying the data
> predominates over the computation time, maybe you didn't need
> parallelization in the first place.
Performant in terms of speed. There's no copying in that example
using `mclapply` and so it is significantly faster than other
alternatives.
It is a very simple and contrived example, but