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
0
votes
1 answer

ASP.NET Symmetric Encryption of string - getting the value System.IO.MemoryStream instead of encrypted name

I am doing a symmetric encryption of a field in a database "name", just to test it. I have never done it so I'm kinda new to this. I am getting the inputted name by the user, encrypting it using a symmetric encryption and adding it encrypted in the…
Rick Astley
  • 125
  • 1
  • 11
0
votes
1 answer

Warning while I am calculating eigenvalues

I have to calculate the eigenvalues and eigenvectors, but I always have this warning. I hope someone can tell me what's going on. #masa en kg m1=559.3e-3 m2=419.4e-3 m3=m2 m4=m2 m5=m2 m6=m2 m7=m2 m8=m2 #rigidez en N/m k=56.7e3 #matrices de masa y…
0
votes
1 answer

how to reduce the key number used in symmetric encryption

We know the number of key used in symmetric encryption is n(n-1)/2. Is there a way to reduce the number of keys used in the communication? Let’s say that if there are 1000 students wants to communicate with each other using symmetric encryption,…
0
votes
1 answer

I'm looking for a Python module or codes to permutate an asymmetric matrix into triangular form

I have an asymmetric matrix. A B C D A 0 0 1 0 B 1 0 0 1 C 0 0 0 0 D 1 1 1 0 I'm trying to switch rows and columns to make it into triangular form. Like: C A D B C 0 1 1 0 A 0 0 1 …
Zhentao
  • 140
  • 1
  • 10
0
votes
0 answers

If square matrix is symmetric. Should the inverse be symmetric as well?

I have a Hessian Matrix in R which is symmetric but when I take the inverse is not symmetric. Is there a reason why is that? > H Y2:x0 Y2:x1 Y2:x2 Y3:x0 Y3:x1 Y3:x2 Y2:x0 80.7330275 138.3925827 30.7587900…
JesZ
  • 25
  • 4
0
votes
4 answers

Generating a specific Symmetric Matrix

I want a fast method (one line, in python numpy or matlab) to generate a specific symmetric Matrix knowing it dimensions and a parameter a. This matrix should have 1-a on the diagonal and a elsewhere: 1-a a a a ....... a a 1-a …
inarighas
  • 720
  • 5
  • 24
0
votes
1 answer

Symmetric Matrix Product is not Symmetric

When we have two symmetric matrices x and y, the matrix z = xyx is theoretically also symmetric. However this is not exactly true in Matlab: x = randn(3); y = randn(3); x = x*x'; y = x*x'; z = x*y*x; issymetric(z) Why does this happen and what can…
stollenm
  • 348
  • 1
  • 2
  • 11
0
votes
1 answer

R cor() returns asymmetric results

correlation between A and B or B and A should be same. However, when I use cor() function in R, it returns asymmetric results. Could anyone explain why it happen? set.seed(123) mat1 <- matrix(rnorm(100),10) [,1] [,2] [,3] …
user224450
  • 27
  • 2
0
votes
2 answers

Removing mean does not give symmetric signal

I am using 64-bit Windows with Matlab R2017a. I have Matlab data stored in a vector here. When I plot the data using the command figure; plot(B), it looks like this: Normally, when you remove the mean from a signal like this which looks almost…
Vivek Subramanian
  • 1,174
  • 2
  • 17
  • 31
0
votes
1 answer

Unexpected symmetric test result using (arr.transpose() == arr).all()

I have temp = np.power(np.sum(S,1),-0.5) S_hat = np.diagflat(temp).dot(S).dot(np.diagflat(temp)) The symmetric test for S yields True but for S_hat, returns False. I can't wrap my heads around this one. [EDIT] S and data are defined as…
srkdb
  • 775
  • 3
  • 15
  • 28
0
votes
2 answers

Combinations of values in each cell in a symmetric matrix

I have a vector of weights that I want to insert in a symmetric matrix. I want all combinations of weights (all weights in all positions but not in the diagonal) I tried iterating through the matrix, but then I only get the same matrix triplicate.…
llrs
  • 3,308
  • 35
  • 68
0
votes
1 answer

Constructing symmetric matrix on R

I want to construct a 1000x1000 symmetric matrix where all diagonal elements are 1 and others are 0.5. I don't know how to do this for such a large matrix. Can someone help me out here? Thank you!
0
votes
0 answers

Check if a matrix is symmetric MIPS

I have the following exercise. Check if the following matrix is symmetrical. Knowing that a matrix iff A[i][j]==A[j][i] for all positions the matrix is symmetric. A[4][4] = {1, 0, 1, 1, 0, 4, 0, 0, 1, 0, 3, 0, 1, 0, 1, 3}; I do understand how to…
GGS
  • 153
  • 2
  • 11
0
votes
0 answers

Why this code shut down the windows system?

I have used the following code to get the symmetric adjacency matrix from an unweighted and undirected graph.Once, i run it the windows system shut down directly fidneighb2= fopen('neighborfile2.txt','rt'); format = repmat('%q',[1 2]); AA =…
F.caren
  • 85
  • 1
  • 9
0
votes
1 answer

Best algorithm to sort an array with inversions

I am working in a program that handles data. However because i want my code efficient I would like a sorting algorithm that its running time does not depend on the number of inversions that the array has so i can sort it in ascending order. The…
Ric
  • 41
  • 1
  • 1
  • 5