From c4e674b7036b2f80255bfb87abb163ea7b3b90b3 Mon Sep 17 00:00:00 2001 From: Mansard <nmansard@laas.fr> Date: Mon, 5 Sep 2011 18:09:35 +0200 Subject: [PATCH] Minor bug correction. --- python/matrix_util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/matrix_util.py b/python/matrix_util.py index 9aae45a..7b49c36 100644 --- a/python/matrix_util.py +++ b/python/matrix_util.py @@ -6,8 +6,9 @@ Tiny matrix functions, taken from Oscar source code. #-------------------------------------------------------------------------- #-------------------------------------------------------------------------- #-------------------------------------------------------------------------- +from math import * +from numpy import * from random import random -from math import sqrt,atan2,pi # Convert matrix to tuple def matrixToTuple(M): @@ -34,6 +35,7 @@ def distVector(M2,M1): # first vector and 2 other 'random' vectors) def generateOrthonormalM(v1): + v2 = matrix([random(),random(),random()]) v3 = matrix([random(),random(),random()]) -- GitLab