Using JPythonMethod's matrix and FFT functions

May, 2001

Introduction

(Note: in order to use these functions, you must install JAMA)

A large number of matrix manipulation functions are available for your use and are defined below). Each of these returns a Data object. To illustrate their use, here's a brief example:

# first, construct a 2 x 2 matrix in a VisAD field
matrix = field( [[1,2], [1,3]])

# now construct a 2 element vector
vector = field([2,1])

# solve the linear system
solution = solve(matrix, vector)

# print the solution
print solution[0], solution[1]

# this will print: 4.0 -1.0

Fast Fourier Transform (FFT)

Matrix manipulation routines


Back to the home page