MatrixCompareElementsSample1.java
01 /*
02  * $Id: MatrixCompareElementsSample1.java,v 1.8 2008/02/02 03:06:29 koga Exp $
03  *
04  * Copyright (C) 2004 Koga Laboratory. All rights reserved.
05  *
06  */
07 package matxbook.chap05;
08 
09 import org.mklab.nfc.matrix.BooleanMatrix;
10 import org.mklab.nfc.matrix.DoubleMatrix;
11 
12 
13 /**
14  * 行列の成分毎の比較を求めるサンプルです。
15  
16  @author koga
17  @version $Revision: 1.8 $, 2004/04/12
18  */
19 public class MatrixCompareElementsSample1 {
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[] {312});
29     BooleanMatrix b = a.compareElementWise(".<"2);
30     b.print("a .< 2");
31   }
32 }