|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.mklab.nfc.matrix.AbstractGrid<M>
org.mklab.nfc.matrix.AbstractFundamentalMatrix<M>
org.mklab.nfc.matrix.AbstractMatrix<M>
org.mklab.nfc.matrix.BaseMatrix<M,E>
org.mklab.nfc.matrix.SymbolicMatrix<PolynomialMatrix,Polynomial>
org.mklab.nfc.matrix.PolynomialMatrix
public class PolynomialMatrix
多項式(Polynomial
)を成分とする行列を表わすクラスです。
コンストラクタの概要 | |
---|---|
PolynomialMatrix()
0*0の多項式行列を作成します。 |
|
PolynomialMatrix(BaseMatrix<?,?> matrix)
コンストラクター |
|
PolynomialMatrix(DoubleMatrix matrix)
コンストラクター |
|
PolynomialMatrix(int rowSize,
int columnSize)
rowSize * columnSize の多項式行列を生成します。 |
|
PolynomialMatrix(int rowSize,
int columnSize,
Scalar<?>[][] elements)
elements で与えられた成分をもつ rowSize * colSize の
多項式行列を作成します。 |
|
PolynomialMatrix(int rowSize,
int columnSize,
String variableName)
rowSize * columnSize の 多項式行列を生成します。 |
|
PolynomialMatrix(IntMatrix matrix)
コンストラクター |
|
PolynomialMatrix(Scalar<?>[] elements)
elements で与えられた横ベクトルを生成します。 |
|
PolynomialMatrix(Scalar<?>[][] elements)
elements で与えられた成分をもつ多項式行列を生成します。 |
メソッドの概要 | |
---|---|
static PolynomialMatrix |
diagonal(Polynomial[] diagonalElements)
対角行列を生成します。 |
protected String |
getGridClassName()
出力するクラスの名前を返します。 |
int |
hashCode()
Override hashCode. |
PolynomialMatrix |
integral()
各成分の1階不定積分を返します。 |
PolynomialMatrix |
integral(int order)
各成分の不定積分を返します。 |
boolean |
isTransformableFrom(Matrix value)
引数で与えられた型から、この型へ変換可能か判定します。 |
static PolynomialMatrix |
ones(int size)
全成分1の行列を生成します。 |
static PolynomialMatrix |
ones(int rowSize,
int columnSize)
全成分1の行列を生成します。 |
static PolynomialMatrix |
ones(int rowSize,
int columnSize,
String variableName)
全成分1の行列を生成します。 |
static PolynomialMatrix |
ones(int size,
String variableName)
全成分1の行列を生成します。 |
static PolynomialMatrix |
powerElementWise(Polynomial scalar,
IntMatrix matrix)
1個の多項式について、行列の各成分の累乗を求めます。 |
static PolynomialMatrix |
powerElementWise(Polynomial scalar,
Matrix matrix)
1個の多項式について、行列の各成分の累乗を求めます。 |
static PolynomialMatrix |
readMxFormat(InputStream input,
MxDataHead head)
MatxMatrix.readMxFormat(InputStream)
から呼ばれる中間メソッドです。 |
String |
toMmString()
MM形式の文字列を生成します。 |
String |
toMmString(String format)
MM形式の文字列を生成します。 |
Matrix |
transformFrom(Matrix value)
引数で与えられた型からこの型へ変換します。 |
static PolynomialMatrix |
unit(int size)
単位行列を生成します。 |
static PolynomialMatrix |
unit(int rowSize,
int columnSize)
単位行列を生成します。 |
static PolynomialMatrix |
unit(int rowSize,
int columnSize,
String variableName)
単位行列を生成します。 |
static PolynomialMatrix |
unit(int size,
String variableName)
単位行列を生成します。 |
void |
writeMmFormat(String fileName,
String name)
MMファイル形式で行列データをファイルに出力します。 |
void |
writeMmFormat(Writer output,
String name,
boolean withStatementSeparator)
MMフォーマット行列データをライターに出力します。 |
void |
writeMxFormat(OutputStream output,
String name)
データをMX形式で出力ストリームへ出力します。 |
void |
writeMxFormat(String fileName,
String name)
データをMX形式でファイルへ出力します。 |
クラス org.mklab.nfc.matrix.SymbolicMatrix から継承されたメソッド |
---|
derivative, derivative, evaluate, evaluate, evaluate, evaluate, evaluate, evaluateElementWise, setVariable, shiftHigher, shiftHigher, shiftLower, shiftLower |
クラス org.mklab.nfc.matrix.AbstractMatrix から継承されたメソッド |
---|
add, covariance, createOnes, createOnes, createOnes, createUnit, createUnit, createUnit, createZero, createZero, createZero, divide, divideElementWise, isUnit, leftDivide, leftDivide, leftDivide, leftDivide, leftDivideElementWise, multiply, multiplyElementWise, power, powerElementWise, roundToZeroElementWise, shiftLeft, shiftUp, subtract, transformToSameClass |
クラス java.lang.Object から継承されたメソッド |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
インタフェース org.mklab.nfc.matrix.Grid から継承されたメソッド |
---|
clone, count, exchangeColumn, exchangeRow, getColumnSize, getElementAlignment, getElementFormat, getPrintingElementsString, getPrintingString, getRowSize, hasSameColumnSize, hasSameRowSize, isEmpty, isSameSize, isSquare, isZero, length, print, print, print, printElements, printElements, removeColumnVector, removeColumnVectors, removeColumnVectors, removeRowVector, removeRowVectors, removeRowVectors, setElementAlignment, setElementFormat |
インタフェース org.mklab.nfc.matrix.MatrixElementOperator から継承されたメソッド |
---|
copy, copy, determinant, getElement, getElement, mean, product, setElement, setElement, setElement, setElement, setElement, setElement, sum, trace, variance |
コンストラクタの詳細 |
---|
public PolynomialMatrix()
public PolynomialMatrix(Scalar<?>[] elements)
elements
で与えられた横ベクトルを生成します。
elements
- ベクトルの成分をもつ配列public PolynomialMatrix(int rowSize, int columnSize)
rowSize * columnSize
の多項式行列を生成します。
rowSize
- 行の数columnSize
- 列の数public PolynomialMatrix(int rowSize, int columnSize, String variableName)
rowSize * columnSize
の 多項式行列を生成します。
rowSize
- 行の数columnSize
- 列の数variableName
- 変数の名前public PolynomialMatrix(Scalar<?>[][] elements)
elements
で与えられた成分をもつ多項式行列を生成します。
elements
- 行列の成分をもつ配列public PolynomialMatrix(IntMatrix matrix)
matrix
- 整数行列public PolynomialMatrix(DoubleMatrix matrix)
matrix
- 実数行列public PolynomialMatrix(BaseMatrix<?,?> matrix)
matrix
- 複素行列public PolynomialMatrix(int rowSize, int columnSize, Scalar<?>[][] elements)
elements
で与えられた成分をもつ rowSize * colSize
の
多項式行列を作成します。
rowSize
- 行の数columnSize
- 列の数elements
- 行列の成分をもつ配列メソッドの詳細 |
---|
public boolean isTransformableFrom(Matrix value)
Matrix
の記述:
Matrix
内の isTransformableFrom
BaseMatrix<PolynomialMatrix,Polynomial>
内の isTransformableFrom
value
- 変換元
Matrix.isTransformableFrom(org.mklab.nfc.matrix.Matrix)
public Matrix transformFrom(Matrix value)
Matrix
の記述:
Matrix
内の transformFrom
BaseMatrix<PolynomialMatrix,Polynomial>
内の transformFrom
value
- 変換元
Matrix.transformFrom(org.mklab.nfc.matrix.Matrix)
public static PolynomialMatrix unit(int size)
size
- 行列の大きさ
public static PolynomialMatrix unit(int size, String variableName)
size
- 行列の大きさvariableName
- 変数の名前
public static PolynomialMatrix unit(int rowSize, int columnSize)
rowSize
- 行の数columnSize
- 列の数
public static PolynomialMatrix unit(int rowSize, int columnSize, String variableName)
rowSize
- 行の数columnSize
- 列の数variableName
- 変数の名前
public static PolynomialMatrix ones(int size)
size
- 行列の大きさ
public static PolynomialMatrix ones(int size, String variableName)
size
- 行列の大きさvariableName
- 変数の名前
public static PolynomialMatrix ones(int rowSize, int columnSize)
rowSize
- 行の数columnSize
- 列の数
public static PolynomialMatrix ones(int rowSize, int columnSize, String variableName)
rowSize
- 行の数columnSize
- 列の数variableName
- 変数の名前
public PolynomialMatrix integral()
public PolynomialMatrix integral(int order)
order
- 階数
public void writeMxFormat(OutputStream output, String name) throws IOException
MatxObject
の記述:
MatxObject
内の writeMxFormat
output
- 出力ストリームname
- データの名前
IOException
- 出力ストリームに出力できない場合MatxObject.writeMxFormat(java.io.OutputStream,
java.lang.String)
public void writeMxFormat(String fileName, String name) throws IOException
MatxObject
の記述:
MatxObject
内の writeMxFormat
fileName
- ファイル名name
- データの名前
IOException
- ファイルに出力できない場合MatxObject.writeMxFormat(java.lang.String,
java.lang.String)
public static PolynomialMatrix readMxFormat(InputStream input, MxDataHead head) throws IOException
MatxMatrix.readMxFormat(InputStream)
から呼ばれる中間メソッドです。
このメソッドは直接使わず
Matrix
A = Matrix.
MatxMatrix.readMxFormat(String)
の形でMatrix
の
MatxMatrix.readMxFormat(String)
を使う
input
- 入力ストリームhead
- ヘッダー
IOException
- 入力ストリームから読み込めない場合public String toMmString()
MatxObject
の記述:
MatxObject
内の toMmString
MatxObject.toMmString()
public String toMmString(String format)
MatxObject
の記述:
MatxObject
内の toMmString
format
- 出力フォーマット
MatxObject.toMmString(java.lang.String)
public void writeMmFormat(String fileName, String name) throws IOException
MatxObject
の記述:
MatxObject
内の writeMmFormat
fileName
- ファイル名name
- 名前
IOException
- ファイルに出力できない場合MatxObject.writeMmFormat(java.lang.String,
java.lang.String)
public void writeMmFormat(Writer output, String name, boolean withStatementSeparator) throws IOException
MatxObject
の記述:
MatxObject
内の writeMmFormat
output
- ライターname
- 名前withStatementSeparator
- セミコロンと改行コードを出力するならばtrue、そうでなければfalse
IOException
- ライターに出力できない場合MatxObject.writeMmFormat(java.io.Writer,
java.lang.String, boolean)
protected String getGridClassName()
AbstractGrid
の記述:
AbstractGrid<PolynomialMatrix>
内の getGridClassName
AbstractGrid.getGridClassName()
public static PolynomialMatrix powerElementWise(Polynomial scalar, Matrix matrix)
scalar
- 累乗の対象matrix
- 累乗の指数を成分とする行列
public static PolynomialMatrix powerElementWise(Polynomial scalar, IntMatrix matrix)
scalar
- 累乗の対象matrix
- 累乗の指数を成分とする行列
public static PolynomialMatrix diagonal(Polynomial[] diagonalElements)
diagonalElements
- 対角成分
public int hashCode()
BaseMatrix
の記述:
BaseMatrix<PolynomialMatrix,Polynomial>
内の hashCode
BaseMatrix.hashCode()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |