Mercurial > hg > jslab
annotate src/samer/maths/ComplexVector.java @ 8:5e3cbbf173aa tip
Reorganise some more
author | samer |
---|---|
date | Fri, 05 Apr 2019 22:41:58 +0100 |
parents | bf79fb79ee13 |
children |
rev | line source |
---|---|
samer@0 | 1 /* |
samer@0 | 2 * ComplexVector.java |
samer@0 | 3 * |
samer@0 | 4 * Copyright (c) 2000, Samer Abdallah, King's College London. |
samer@0 | 5 * All rights reserved. |
samer@0 | 6 * |
samer@0 | 7 * This software is provided AS iS and WITHOUT ANY WARRANTY; |
samer@0 | 8 * without even the implied warranty of MERCHANTABILITY or |
samer@0 | 9 * FITNESS FOR A PARTICULAR PURPOSE. |
samer@0 | 10 */ |
samer@0 | 11 |
samer@0 | 12 package samer.maths; |
samer@0 | 13 |
samer@0 | 14 public class ComplexVector |
samer@0 | 15 { |
samer@0 | 16 public double real[]; |
samer@0 | 17 public double imag[]; |
samer@0 | 18 public int length; |
samer@0 | 19 |
samer@0 | 20 public ComplexVector(int n) { |
samer@0 | 21 real = new double[n]; |
samer@0 | 22 imag = new double[n]; |
samer@0 | 23 length=n; |
samer@0 | 24 } |
samer@0 | 25 } |
samer@0 | 26 |