01 /*
02 * $Id: OneMatrixSample.java,v 1.10 2008/03/03 07:18:09 koga Exp $
03 *
04 * Copyright (C) 2004 Koga Laboratory. All rights reserved.
05 *
06 */
07 package matxbook.chap07;
08
09 import org.mklab.nfc.matrix.DoubleComplexMatrix;
10 import org.mklab.nfc.matrix.DoubleMatrix;
11 import org.mklab.nfc.matrix.Matrix;
12 import org.mklab.nfc.matrix.PolynomialMatrix;
13
14
15 /**
16 * 全ての成分が1である行列のサンプルです。
17 * @author koga
18 * @version $Revision: 1.10 $, 2004/04/14
19 */
20 public class OneMatrixSample {
21
22 /**
23 * メインメソッド
24 *
25 * @param args コマンドライン引数
26 */
27 @SuppressWarnings("nls")
28 public static void main(String[] args) {
29 Matrix a = DoubleMatrix.ones(2, 3);
30 a.print("ONE(2,3)");
31
32 Matrix b = DoubleComplexMatrix.ones(2, 3);
33 b.print("ONE(2,3)");
34
35 Matrix c = PolynomialMatrix.ones(2, 2);
36 c.print("ONE(2,2)");
37 }
38 }
|