Questions tagged [orthogonal]

Orthogonal refers to a line that relates to another line by a right angle.

In mathematics, orthogonal usually refers to a line that relates to another line by a right angle. In geometry, orthogonal is a synonim of "perpendicular".

In programming orthogonality is the ability to use a variety of language features in arbitrary combinations, which would result in consistent outcome.

157 questions
48
votes
1 answer

Graphviz, dot, ortho plots do not respect ports

I am using graphviz and would like to render my graphs with splines = ortho. The problem is that the edges don't respect ports, so it is not possible to analyse the graph. digraph G{ splines= ortho; A [shape = box, label =<
Daniel
  • 561
  • 4
  • 6
36
votes
7 answers

How to create random orthonormal matrix in python numpy

Is there a method that I can call to create a random orthonormal matrix in python? Possibly using numpy? Or is there a way to create a orthonormal matrix using multiple numpy methods? Thanks.
Dacion
  • 471
  • 1
  • 4
  • 8
33
votes
1 answer

Forcing orthogonal (vertical or horizontal) edges with dot

I would like to force dot displaying only vertical or horizontal edges between nodes. I have found a similar request with the post Family tree layout with Dot/GraphViz, but I am not dealing with trees, so I hope there is a solution without inserting…
nocbos
  • 391
  • 1
  • 4
  • 6
30
votes
1 answer

Is glm::ortho() actually wrong?

I recently thought it would be a good idea to switch from the old (deprecated) functionality that OpenGL provides, such as matrix operations and the fixed function pipeline. I am using GLM as my matrix library to simplify things a bit. The problem…
Jamie Syme
  • 528
  • 2
  • 6
  • 10
17
votes
3 answers

generating two orthogonal vectors that are orthogonal to a particular direction

What is the simplest and most efficient ways in numpy to generate two orthonormal vectors a and b such that the cross product of the two vectors equals another unit vector k, which is already known? I know there are infinitely many such pairs, and…
Physicist
  • 2,848
  • 8
  • 33
  • 62
16
votes
5 answers

Evaluate inner product of bra and ket in Sympy Quantum

In sympy I have defined a two kets and a corresponding bra, when I apply the bra to the kets... from sympy import sqrt from sympy.physics.quantum import Bra,Ket,qapply superpos = (Ket('Dead')+Ket('Alive'))/sqrt(2) d =…
user4624500
  • 286
  • 1
  • 10
13
votes
5 answers

Is Java orthogonal?

I am wondering if Java is orthogonal or not, and if yes, then which are its features that make it orthogonal. How can you determine if a language is orthogonal or not? For example, I found on some website that C++ is not orthogonal, but no…
mbc
  • 149
  • 1
  • 1
  • 3
11
votes
1 answer

How can I permit overlapping edges in Graphviz?

Background I'm using Graphviz to create an Organizational Chart. Problem By default dot creates the following diagram: The desired output combines the edges so that they overlap, with elbow connections: Source Code The following source code…
Dave Jarvis
  • 30,436
  • 41
  • 178
  • 315
11
votes
2 answers

What is an "orthogonal linked list"?

I understand what a linked list is, but my question is what is an orthogonal linked list? I searched on the web but couldn't find any helpful information. I am studying liked list in C++, if there any good books related to linked lists, please…
Muntasir
  • 1,130
  • 1
  • 8
  • 9
9
votes
3 answers

How to estimate goodness-of-fit using scipy.odr?

I am fitting data with weights using scipy.odr but I don't know how to obtain a measure of goodness-of-fit or an R squared. Does anyone have suggestions for how to obtain this measure using the output stored by the function?
Ashley
  • 123
  • 1
  • 5
8
votes
3 answers

How do I know if two vectors are near parallel

I am having some trouble finding parallel vectors because of floating point precision. How can I determine if the vectors are parallel with some tolerance? I also need a check for orthogonality with tolerance.
Josh C.
  • 4,303
  • 5
  • 30
  • 51
8
votes
2 answers

Formula for a orthogonal projection matrix?

I've been looking around a bit and can't seem to find just what I"m looking for. I've found "canonical formulas," but what's the best way to use these? Do I have to scale every single vertex down? Or is there a better way? A formula would really…
Chad
  • 2,335
  • 8
  • 29
  • 45
8
votes
2 answers

linear regression using lm() - surprised by the result

I used a linear regression on data I have, using the lm function. Everything works (no error message), but I'm somehow surprised by the result: I am under the impression R "misses" a group of points, i.e. the intercept and slope are not the best…
NOTM
  • 147
  • 8
7
votes
2 answers

2D Orthogonal projection of vector onto line with numpy yields wrong result

I have 350 document scores that, when I plot them, have this shape: docScores = [(0, 68.62998962), (1, 60.21374512), (2, 54.72480392), (3, 50.71389389), (4, 49.39723969), ..., (345, 28.3756237), (346, 28.37126923), …
Floran Gmehlin
  • 824
  • 1
  • 11
  • 34
6
votes
3 answers

How to get orthogonal distances of vectors from plane in Numpy/Scipy?

I have a set of vectors as a numpy array. I need to get the orthogonal distances of each of those from a plane defined by 2 vectors v1 and v2. I can get this easily for a single vector using the Gram-Schmidt process. Is there a way to do it very…
costaz
  • 63
  • 1
  • 4
1
2 3
10 11