Ask Your Question

wizard7703's profile - activity

2023-12-10 05:35:36 +0200 commented question Plot a planar graph as a plane graph

yes but I am unsure how to use the 'planar' layout seems to output a graph whose vertices are not organized in any nice

2023-12-08 03:14:11 +0200 received badge  Organizer (source)
2023-12-07 21:15:09 +0200 asked a question Plot a planar graph as a plane graph

Plot a planar graph as a plane graph I have a graph D which is the bipartite graph of a matrix Y. I know this graph is

2023-11-24 07:00:37 +0200 commented answer Solving for a matrix.

There still seems to be problems from my testing. There are a few examples which I know will have nontrivial (X != 0) so

2023-11-21 21:58:41 +0200 commented answer Solving for a matrix.

Perhaps I am testing the code incorrectly, but no matter what I set A to, I seem to be getting a blank matrix. Here is m

2023-11-18 00:21:45 +0200 edited question Solving for a matrix.

Solving for a matrix. I have an m x n matrix A and an m x n matrix of variables X. I want to solve for all possible X su

2023-11-17 23:57:09 +0200 commented answer Solving for a matrix.

Flattened as in the null vector in the ith coefficient corresponds to the row floor(i/#number of columns) and the column

2023-11-17 23:25:59 +0200 commented answer Solving for a matrix.

actually, I am having a hard time converting from the null space to a solution for X. This code is returning a list of v

2023-11-17 03:04:15 +0200 marked best answer Solving for a matrix.

I have an m x n matrix A and an m x n matrix of variables X. I want to solve for all possible X such that AX^T = XA^T and A^TX = X^TA. Is there any nice way to do this?

I've tried using various commands like "Solve" but "solve_right" but it doesn't seem to be working. Here is my code so far.

A = matrix([[0,1],[1,0],[1,1]])

xrownum = A.nrows()
xcolnum = A.ncols()

X = matrix([[var("x_{}_{}".format(u,v), latex_name="a_{{{},{}}}".format(u,v)) for v in range(xcolnum)] for u in range(xrownum)]);
for i in range(xrownum):
    for j in range(xcolnum):
        if A[i,j] != 0:
            X[i,j] = 0
XAT = X*A.transpose()
AXT = A*X.transpose()
ATX = A.transpose()*X
XTA = X.transpose()*A

Of course, X = 0 will always work, but I am interested in knowing if it is the ONLY matrix which works.

2023-11-17 03:04:15 +0200 received badge  Scholar (source)
2023-11-17 03:04:07 +0200 commented answer Solving for a matrix.

Ah great. Thank you so much!

2023-11-17 02:26:29 +0200 commented answer Solving for a matrix.

I want to find an X such that both AX^T = XA^T and A^TX = X^TA. These are not quite the same equations, but I want to ac

2023-11-17 01:30:46 +0200 commented answer Solving for a matrix.

Is there a way to solve this system of equations and the system of equation AX^T-XA^T = 0 in the same variables at the s

2023-11-16 20:35:17 +0200 commented question Solving for a matrix.

Right, I am just unsure how to implement this in Sage. I am very new to the language and I would like to write a program

2023-11-16 20:34:10 +0200 received badge  Editor (source)
2023-11-16 20:34:10 +0200 edited question Solving for a matrix.

Solving for a matrix. I have an m x n matrix A and an m x n matrix of variables X. I want to solve for all possible X su

2023-11-16 20:00:56 +0200 asked a question Solving for a matrix.

Solving for a matrix. I have an m x n matrix A and an m x n matrix of variables X. I want to solve for all possible X su

2023-11-16 20:00:56 +0200 asked a question Solving a matrix equation.

Solving a matrix equation. I have an m x n matrix A and an m x n matrix of variables X. I want to solve for all possible