Displaying 20 results from an estimated 2000 matches similar to: "Check Isomorphism between matrices"
2012 Oct 30
2
Put submatrices in an array
Dear R users,
I have a Hadamard matrix 16x15 and i want to put 16x5 submatrices in an array put i have an error.
> A1<-matrix(c(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+ 1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,
+ 0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,
+ 1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,
+ 0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,
+ 1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,
+ 0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,
+ 1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,
+
2012 Nov 11
2
changing the signs in rows or columns in matrices and check them if they are identical
Dear R users,
i have this problem with matrices i want to check between two matrices if they are isomorphic i will give an example for what excactly i want
1 -1 1 -1 1 1
-1 1 -1 1 -1 -1
1 1 -1 1 1 -1
this two matrices are isomorphic beacause if i change the first 2 columns the matrices
2012 Oct 30
5
Swap rows and columns in a matrix
Dear R users,
I want a help to write an algorithm for swapping rows and columns in a matrix
thanks in advance
[[alternative HTML version deleted]]
2012 Oct 30
0
Isomorphic matrices
Dear R users,
I have 2 matrices dim(16x5) below and i want to write an algorithm that check the 2 matrices if they are isomorphic ones (Isomorphic matrices: if I change the rows or/and columns or/and zeros into 1 and 1 into zeros in a row(s) or column(s) are the 2 matrices identical).
0 0 0 0 0
1 0 1 0 1
0 1 1 0 0
1 1 0 0 1
0 0 0 1 1
2012 Nov 12
2
Selected matrices of an array and put into a list
Dear R users,
I have an array that has matrices that i want BB[16,5,2:27]
i want to put each of the 26 matrices into a List
thanks in advance
[[alternative HTML version deleted]]
2012 Nov 11
0
Changing the signs in rows or columns in matrices and check the matrices if they are identical
i have this problem with matrices i want to check between two matrices if they are isomorphic i will give an example for what excactly i want
1 -1 1 -1 1 1
-1 1 -1 1 -1 -1
1 1 -1 1 1 -1
this two matrices are isomorphic beacause if i change the first 2 columns the matrices are identical
2012 Nov 13
2
multiply each row in a matrix with the help of the for loop
Dear R users,
I have this program
aa<-array(rep(0,27),dim=c(3,3,3))
a<-matrix(rep(1,9),ncol=3)
n<-0
for (i in 1:3) {
a[i,]<-a[i,]*(-1)
n<-n+1
aa[,,n]<-a[i,]
}
but i real want to multiply each row with -1 according to for loop and after that to put it in the array.
I will give an example for what excaclty want
-1 -1 -1
1 1 1
1 1 1
-1 -1 -1
-1
2012 Jul 31
1
Subgraph isomorphism using vertex labels
Hi all,
I want to find all the mappings of one graph in another graph, based on
their vertex labels
Is there any way to do this in igraph based on vertex labels.
(as far as i know Igraph allows the subgraph isomorphism based only on
vertex and edge colors)
Eg:
graph 1:
x(1) x(2)
x(2) y(3)
y(4) x(1)
z(5) x(2)
graph 2:
x(1) y(2)
# the brackets contain the corresponding vertex ids
i would like my
2012 Feb 13
1
non-isomorphic sequences
Dear All,
Sorry for the typoes earlier, let me repost the question.
Suppose I want to generate sequences of length 3 from two symbols {1,2}, we get the following 8 sequences
1 1 1
1 1 2
1 2 1
1 2 2
2 1 1
2 1 2
2 2 1
2 2 2
However, I do not want all these 8 sequences. I call two sequencs to be isomorphic if one sequence could be obtained from the other by relabelling the symbols. For example,
2012 Nov 05
3
Error message
Dear R users,
I have this problem with memory i guess
AA<-array(rep(0,96096000),dim=c(16,5,3003,400))
Error: cannot allocate vector of size 733.2 Mb
can anyone help me,
Thanks in advance...
[[alternative HTML version deleted]]
1998 Apr 09
1
0-extent matrices?
Is there a good reason not to allow matrix extents to be zero? I have been
writing a function which fits glms under certain linear constraints. I
fit the model with a reduced set of variables and then transform back to
the original set. This involves operating on submatrices of the
covariance matrix and subsets of the coefficients. Sometimes these subsets
are empty. A zero-length subset of the
2017 Aug 01
7
[RFC] Add IR level interprocedural outliner for code size.
>
>
>
> Also as a side note, I think in the original MachineOutliner RFC thread
> there was some confusion as to whether it was possible to solve the code
> folding outlining problem exactly as a graph problem on SSA using standard
> value numbering algorithms in polynomial time.
>
> I can elaborate further, but
> 1. it is easy to see that you can map an arbitrary
2014 Apr 17
2
[LLVMdev] Extend SLPVectorizer to struct operations that are isomorphic to vector operations?
While playing with SLPVectorizer, I notice that it will happily vectorize cases involving extractelement/insertelement, but won't vectorize isomorphic cases involving extractvalue/insertvalue (such as the attached example). Is that something that could be straightforward to add to SLPVectorizer, or are there some hard issue? In particular, the transformation would seem to require casts of
2007 Jul 26
0
Diagonal Submatrices Extraction
Yes you are right ... an example is mandatory.
So ... I have a matrix of 0 with just a single 1 per row and per column
I need to extract all maximal 'diagonal' submatrices
Let's say I have the following matrix
A B C D E
a 0 1 0 0 0
b 1 0 0 0 0
c 0 0 1 0 0
d 0 0 0 1 0
e 0 0 0 0 1
well I would like to get, for this example, the two following submatrices
A B C D E
2012 Nov 18
1
identical matrices
Dear R users,
I want to check matrices when i change the order of the rows or/and the order of the columns or/and the combination of them
i will give an example what i want
1 -1 1 1 1 1 1 1
-1 -1 -1 -1 -1 -1 -1 -1
1 1 1 1 1 -1 1 1
these 2 matrices are identical because i change the first row and make it third
1 -1 1 1 -1 1 1 1
-1 -1 -1
2012 Nov 18
1
i want to put the results of the list in a for loop
Dear R users,
i want to put the results of a list to a for loop.
i will give an example
m1<-matrix(rep(1,15),ncol=5)
ind.sgn <- lapply(1:ncol(m1), combn, x = ncol(m1))
ind.sgn
[[1]]
[,1] [,2] [,3] [,4] [,5]
[1,] 1 2 3 4 5
[[2]]
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
[1,] 1 1 1 1 2 2 2 3 3 4
[2,] 2 3 4 5
2012 Oct 22
4
Help with applying a function to all possible 2x2 submatrices
Hi all,
I'm working with a large data set (on the order of 300X300) and trying to
apply a function which compares the elements of all possible 2x2
submatrices. There are rc(r-1)(c-1) such submatrices, so obviously the naive
method of looping through the rows and columns is computationally unfeasible
for my data set:
for(i in 1:(nrow(data)-1)) {
for(j in (i+1):nrow(data)) {
for (m
2012 Feb 10
2
Split matrix into square submatices
Hi everybody,
I'm looking for an optimal way to split a big matrix (e.g. ncol = 8,
nrow=8) into small square submatrices (e.g. ncol=2, nrow=2)
For example
If I have
> h
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
[1,] 1 9 17 25 33 41 49 57
[2,] 2 10 18 26 34 42 50 58
[3,] 3 11 19 27 35 43 51 59
[4,] 4 12 20 28 36
2004 Sep 15
2
efficient submatrix extraction
Hi,
I have a matrix of say 1024x1024 and I want to look at it in chunks.
That is I'd like to divide into a series of submatrices of order 2x2.
| 1 2 3 4 5 6 7 8 ... |
| 1 2 3 4 5 6 7 8 ... |
| 1 2 3 4 5 6 7 8 ... |
| 1 2 3 4 5 6 7 8 ... |
...
So the first submatrix would be
| 1 2 |
| 1 2 |
the second one would be
| 3 4 |
| 3 4 |
and so on. That is I want the matrix to be evenly divided
2019 May 29
3
Basic block merging
Am Mi., 29. Mai 2019 um 13:31 Uhr schrieb Shawn Landden via llvm-dev
<llvm-dev at lists.llvm.org>:
>
> On Wed, May 29, 2019 at 10:49 AM David Jones via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> >
> > Under certain circumstances, my compiler outputs basic blocks having the same function:
> >
> > bb_97: ;