org.mklab.tool.matrix
クラス Triu

java.lang.Object
  上位を拡張 org.mklab.tool.matrix.Triu

public class Triu
extends Object

上三角部分以外をゼロにした行列を求めるクラスです。

Upper triangle

バージョン:
$Revision: 1.11 $
作成者:
koga
関連項目:
Tril

コンストラクタの概要
Triu()
           
 
メソッドの概要
static Matrix triu(Matrix x)
          xの上三角部分を返します。
static Matrix triu(Matrix x, int distance)
          x次対角より上を返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Triu

public Triu()
メソッドの詳細

triu

public static Matrix triu(Matrix x)
xの上三角部分を返します。

パラメータ:
x - 対象となる行列
戻り値:
上三角部分以外をゼロにした行列

triu

public static Matrix triu(Matrix x,
                          int distance)
x次対角より上を返します。
 distance = 0 : 主対角 distance > 0 : 対角より上 distance < 0 : 対角より下 

パラメータ:
x - 対象となる行列
distance - 対角からの距離(正:上側、零:対角、負:下側)
戻り値:
上三角部分以外をゼロにした行列 (matrix)