Questions tagged [symmetric]

is used in its general meaning, so you are encouraged to use one or more tags in addition to this tag, to describe your case better.

An example of Symmetric would be a Symmetric Key, which is used in both the sides of an algorithm in cryptography.

170 questions
1
vote
1 answer

semantics of generating symmetric matrices in numpy

I tried to make a random symmetric matrix to test my program. I don't care about the data at all as long as it is symmetric (sufficient randomness is no concern at all). My first attempt was this: x=np.random.random((100,100)) x+=x.T However,…
aestrivex
  • 5,170
  • 2
  • 27
  • 44
1
vote
4 answers

How to add symmetric values with jquery

I have this markup:
Now: I need to add for each of figures a symmetric element, but with different height and width value. For each item next I need to…
Lukas
  • 7,384
  • 20
  • 72
  • 127
1
vote
1 answer

Symetrical positions in matrix

Given an (i,j) element in a matrix what is the symmetrical correspondent in the matrix. I am trying to create a function that generates a symmetrical matrix in c. Thanks a lot. Also would it be wise to create a matrix "by hand" using the rand()…
biggdman
  • 2,028
  • 7
  • 32
  • 37
1
vote
2 answers

Double iteration on HashMap with symmetric result (skip redundant cases)

i've got a LinkedHashMap and I'm double iterating over it as stated in the code below: LinkedHashMap nmResultMap = getResultMap(); float[][] results = new float[nmResultMap.size()][nmResultMap.size()]; for…
Hellski
  • 65
  • 1
  • 7
1
vote
1 answer

h5py symmetric array using pointers

I've been looking for a way to create a custom h5py array that is in the end symmetric. Ideally it would be an array such that when it was created had a single value that a[i][j] and a[j][i] pointed to. The reason for this is that I will be writing…
biophetik
  • 989
  • 8
  • 5
0
votes
2 answers

Two for loops written as a while loop for assign values to a symmetric matrix

I know the logic two get into a symmetric matrix the values of an array int k=0; for (int i = 0; i < size; i++){ for (int j = 0; j <= i; j++){ Q[i, j] = Q[j, i]= arr[k++]; } } But How to do this if I can only…
edgarmtze
  • 24,683
  • 80
  • 235
  • 386
0
votes
0 answers

The New Method for Symmetric NAT traversal

Has anyone implemented the technique found and described by the Japanees researchers for symmetric NAT traversal at The New Method for Symmetric NAT traversal ? specifically, can existing STUN servers be used in place of S1 and S2 or does it require…
Kareem
  • 41
  • 4
0
votes
0 answers

Check invariant property using SAGE

I know that the XOR operation of three variables is invariant (symmetric) with respect to two of them. How Can I discover the invariance of any boolean function automatically for all possible variables combinations with sagemath? In the example of…
Juan
  • 2,073
  • 3
  • 22
  • 37
0
votes
0 answers

Why do I not get a symmetric matrix

expected symmetric matrix Why is the resulting matrix not symmetrical? Jim Hand multiplication gives a matrix that is not symmetrical
0
votes
0 answers

How to generate an orthogonal symmetric matrix?

I want to create an orthogonal symmetric matrix of size 5 and size 6. Is there a way for me to generate this type of matrix? An orthogonal symmetric matrix is when a matrix A is equal to its transpose and also its inverse. I've tried searching for…
0
votes
0 answers

ERROR. AssetCovar must be a symmetric matrix

I'm running a Global Minimum Variance Portfolio in Matlab in order to evaluate different kind of estimated covariance matrix through Sharpe Ratio of portfolio return. The problems arise when I run the code: ` `Ri_Rf=Routsample; mu=mean(Ri_Rf); p_CC…
0
votes
1 answer

Recursive Anti-Symmetrical Counter SML

This is an anti-symmetrical recursive function that will take a list of pairs If the list is anti-symmetrical then an empty list will return and if the list is symmetrical it will return only the two pairs that are symmetrical. Here is an example…
jwolf
  • 33
  • 3
0
votes
2 answers

Data structure for indirect symmetrical synonym

I have a set of synonyms for example like this: big large large huge small little apple banana Meaning big is a synonym for large, large is synonym for huge, small for little, apple for banana and vice versa(large is synonym for big, etc). Another…
choki1708
  • 33
  • 1
  • 8
0
votes
1 answer

TSQL -- Does ordering of on clause matter

For the simplified query: Select t1.c1, t1.c2, t2.d1 FROM table1 t1 LEFT JOIN table2 t2 ON (t1.c1 = t2.d2) It seems from math by the symmetric property that this would be exactly the same as if one reversed the ON to: Select t1.c1, t1.c2,…
JosephDoggie
  • 1,514
  • 4
  • 27
  • 57
0
votes
2 answers

Take Symmetrical Mean of a tibble (ignoring the NAs)

I have a tibble where the rows and columns are the same IDs and I would like to take the mean (ignoring the NAs) to make the df symmetrical. I am struggling to see how. data <- tibble(group = LETTERS[1:4], A = c(NA, 10, 20, NA), …
zimia
  • 930
  • 3
  • 16