Vector
index
/home/graeme/CVS/dna/expertise/python/graeme/Expert/Vector.py

# Vector.py
# Maintained by G.Winter
# 11th February 2004
# A few vectorially orientated odds and ends - like constructors for 
# matrices implemented as lists and so on...

# This is implemented in MATHS not in C.
# M[i][j] = Row i, Column j

# $Id: Vector.html,v 1.1 2004/10/01 12:15:56 gwin Exp $

 
Modules
       
copy
math

 
Functions
       
Add(a, b)
Cross(a, b)
Dot(a, b)
Invert(matrix)
This will invert a 3x3 matrix based on Numerical Recipe gaussj
Magnitude(vector)
Matrix(rows=3, columns=3)
MultiplyMatrix(A, B)
MultiplyScalarVector(scalar, vector)
PrintMatrix(matrix)
Subtract(a, b)
Transpose(matrix)
Unit(vector)
Vector(length=3)