Skip to content
Snippets Groups Projects
Commit c4e674b7 authored by Nicolas Mansard's avatar Nicolas Mansard Committed by nmansard
Browse files

Minor bug correction.

parent 9cc3638a
Branches
Tags
No related merge requests found
...@@ -6,8 +6,9 @@ Tiny matrix functions, taken from Oscar source code. ...@@ -6,8 +6,9 @@ Tiny matrix functions, taken from Oscar source code.
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
from math import *
from numpy import *
from random import random from random import random
from math import sqrt,atan2,pi
# Convert matrix to tuple # Convert matrix to tuple
def matrixToTuple(M): def matrixToTuple(M):
...@@ -34,6 +35,7 @@ def distVector(M2,M1): ...@@ -34,6 +35,7 @@ def distVector(M2,M1):
# first vector and 2 other 'random' vectors) # first vector and 2 other 'random' vectors)
def generateOrthonormalM(v1): def generateOrthonormalM(v1):
v2 = matrix([random(),random(),random()]) v2 = matrix([random(),random(),random()])
v3 = matrix([random(),random(),random()]) v3 = matrix([random(),random(),random()])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment