01 /*
02 * $Id: Rot90Sample.java,v 1.6 2008/02/02 03:06:25 koga Exp $
03 *
04 * Copyright (C) 2004 Koga Laboratory. All rights reserved.
05 *
06 */
07 package matxbook.chap06;
08
09 import org.mklab.nfc.matrix.DoubleMatrix;
10 import org.mklab.nfc.matrix.Matrix;
11 import org.mklab.nfc.matrix.misc.RotatedMatrix;
12
13
14 /**
15 * 行列成分を回転するサンプルです。
16 * @author koga
17 * @version $Revision: 1.6 $, 2004/04/14
18 */
19 public class RotatedMatrixSample {
20
21 /**
22 * メインメソッド
23 *
24 * @param args コマンドライン引数
25 */
26 @SuppressWarnings("nls")
27 public static void main(String[] args) {
28 DoubleMatrix a = new DoubleMatrix(new double[][] { {1, 2, 3}, {4, 5, 6}});
29 Matrix b = RotatedMatrix.create(a);
30 b.print("rot90(a)");
31 }
32 }
|