Category : matrix

Given an NxN matrix W, I’m looking to calculate an NxN matrix C given by the equation in this link: https://i.stack.imgur.com/dY7rY.png, or in LaTeX $$C_{ij} = max_k bigg{ sum_l bigg( W_{ik}W_{kl}W_{lj} – W_{ik}W_{kj} bigg) bigg}.$$ I have tried to implement this in PyTorch but I’ve either encountered memory problems by constructing an intermediate NxNxN 3D ..

Read more

Im newbbie in code. I would like to ask something about numpy matrix. Right now, I need to save a matrix values which I import with fileinput() from a .tqc doc. ”’ with fi.input(files=[r’D:RANDOMJUSTEXAMPLEMEfile.tqc’]) as f: for line in f: dados = line.split() #dividir os dados do txt x = dados[2:3] y = dados[4:5] z ..

Read more