Hi all,
Can I use pytorch or numpy or anything, either by off-the-shelf method, script or library…
Given random d-1 d-dimensional vectors (specifically a random d-1xd matrix), get an d-dimensional vector (specifically (d,) shape tensor) that is perpendicular to every vector mentioned above ?
something like this
vectors = torch.randn(d-1,d)
perpendicular_vector = torch.get_perpendicular(vectors) # (d,)
assert vectors.matmul(perpendicular_vector).sum().item() == 0