|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.mklab.nfc.matx.MatxList
public class MatxList
MaTXのList型を実装したクラスです。
コンストラクタの概要 | |
---|---|
MatxList()
空のインスタンスを生成します。 |
|
MatxList(int count)
成分がcount個のインスタンスを生成します。 |
|
MatxList(List<E> valueList)
コンストラクター |
|
MatxList(Object[] values)
コンストラクター |
メソッドの概要 | |
---|---|
void |
add(boolean value)
valueをリストの最後に追加します。 |
void |
add(double value)
valueをリストの最後に追加します。 |
void |
add(DoubleComplexNumber value)
valueをリストの最後に追加します。 |
void |
add(int value)
valueをリストの最後に追加します。 |
void |
add(Matrix value)
valueをリストの最後に追加します。 |
void |
add(MatxList value)
valueをリストの最後に追加します。 |
void |
add(Polynomial value)
valueをリストの最後に追加します。 |
void |
add(RationalPolynomial value)
valueをリストの最後に追加します。 |
void |
add(String value)
valueをリストの最後に追加します。 |
MatxList |
append(MatxList value)
valueをリストに結合します。 |
Object |
clone()
Object#clone() |
BooleanMatrix |
compareElementWise(boolean opponent,
String operator)
各要素とopponentをoperatorで指定された演算子 (".==", ".! |
BooleanMatrix |
compareElementWise(DoubleComplexNumber opponent,
String operator)
各要素とopponentをoperatorで指定された演算子 (".==", ".! |
BooleanMatrix |
compareElementWise(double opponent,
String operator)
各要素とopponentをoperatorで指定された演算子 (". <", ". <=", ".>", ".>=", ".==", ".! |
BooleanMatrix |
compareElementWise(int opponent,
String operator)
各要素とvalをoperatorで指定された演算子 (". <", ". <=", ".>", ".>=", ".==", ".! |
BooleanMatrix |
compareElementWise(Matrix opponent,
String operator)
各要素とopponentをoperatorで指定された演算子 (".==", ".! |
BooleanMatrix |
compareElementWise(MatxList opponent,
String operator)
aと要素毎にoperatorで指定された演算子 (". <", ". <=", ".>", ".>=", ".==", ".! |
BooleanMatrix |
compareElementWise(Polynomial opponent,
String operator)
各要素とopponentをoperatorで指定された演算子 (".==", ".! |
BooleanMatrix |
compareElementWise(RationalPolynomial opponent,
String operator)
各要素とopponentをoperatorで指定された演算子 (".==", ".! |
BooleanMatrix |
compareElementWise(String opponent,
String operator)
各要素とopponentをoperatorで指定された演算子 (".==", ".! |
boolean |
equals(Object opponent)
|
boolean |
getBoolean(int index)
要素をboolean型で取り出す。 |
DoubleComplexNumber |
getComplex(int index)
要素を Complex 型で取り出す。 |
static String |
getDefaultFormat()
デフォルト出力フォーマットを返します。 |
double |
getDouble(int index)
要素をdouble型で取り出す。 |
String |
getFormat()
出力フォーマットを返します。 |
int |
getInt(int index)
要素をint型で取り出す。 |
MatxList |
getList(int index)
要素を List 型で取り出す。 |
Matrix |
getMatrix(int index)
要素を Matrix 型で取り出す。 |
Scalar<?> |
getMatrixElement(int index)
要素を MatrixElement 型で取り出す。 |
Object |
getObject(int index)
要素を Object 型で取り出す。 |
Polynomial |
getPolynomial(int index)
要素を Polynomial 型で取り出す。 |
RationalPolynomial |
getRationalPolynomial(int index)
要素を RationalPolynomial 型で取り出す。 |
String |
getString(int index)
要素を String 型で取り出す。 |
MatxList |
getSubList(int from,
int to)
部分リストを返します。 |
MatxList |
getSubList(IntMatrix index)
部分リストを返します。 |
int |
hashCode()
Override hashCode. |
BooleanMatrix |
isSameClass(Class<?> clazz)
成分毎にクラスが一致するものを選ぶ |
MatxList |
multiply(int count)
リストの成分をnセット並べたリストを生成します。 |
void |
print()
ansという名前で標準出力に出力します。 |
void |
print(String name)
標準出力に出力します。 |
static MatxList |
readMxFormat(InputStream input)
入力ストリームからMx形式のデータを読み込みます。 |
static MatxList |
readMxFormat(String fileName)
指定されたMxファイルを読み込みます。 |
void |
set(int index,
boolean value)
リストのi番目にbooleanを設定します。 |
void |
set(int index,
double value)
リストのi番目に実数valueを設定します。 |
void |
set(int index,
DoubleComplexNumber value)
リストのi番目に複素数valueを設定します。 |
void |
set(int index,
int value)
リストのi番目に整数valueを設定します。 |
void |
set(int index,
Matrix value)
リストのi番目に行列valueを設定します。 |
void |
set(int index,
MatxList value)
リストのi番目にリストvalueを設定します。 |
void |
set(int index,
Polynomial value)
リストのi番目に多項式valueを設定します。 |
void |
set(int index,
RationalPolynomial value)
リストのi番目に有理多項式valueを設定します。 |
void |
set(int index,
String value)
リストのi番目に文字列valueを設定します。 |
static void |
setDefaultFormat(String format)
デフォルト出力フォーマットを設定します。 |
void |
setFormat(String format)
出力フォーマットを設定します。 |
MatxList |
setSubList(int from,
int to,
MatxList ll)
部分リストを設定します。 |
MatxList |
setSubList(IntMatrix index,
MatxList ll)
部分リストを設定します。 |
int |
size()
リストのサイズを返します。 |
List<Object> |
toList()
List として値のリストを返します。 |
String |
toMmString()
MM形式の文字列を生成します。 |
String |
toMmString(String valueFormat)
MM形式の文字列を生成します。 |
String |
toString()
|
void |
writeMmFormat(String fileName,
String name)
MMファイル形式で行列データをファイルに出力します。 |
void |
writeMmFormat(Writer output,
String name,
boolean withNewLine)
MMフォーマット行列データをライターに出力します。 |
void |
writeMxFormat(OutputStream output,
String name)
データをMX形式で出力ストリームへ出力します。 |
void |
writeMxFormat(String fileName,
String name)
データをMX形式でファイルへ出力します。 |
クラス java.lang.Object から継承されたメソッド |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
---|
public MatxList()
public MatxList(int count)
count
- 成分の個数public MatxList(Object[] values)
values
- 成分public MatxList(List<E> valueList)
E
- 成分の型valueList
- 成分メソッドの詳細 |
---|
public static void setDefaultFormat(String format)
format
- デフォルト出力フォーマットpublic static String getDefaultFormat()
public void setFormat(String format)
format
- 出力フォーマットpublic String getFormat()
public List<Object> toList()
List
として値のリストを返します。
public boolean equals(Object opponent)
Object
内の equals
Object.equals(java.lang.Object)
public int hashCode()
Object
内の hashCode
public Object clone()
Object
内の clone
public String toString()
Object
内の toString
Object.toString()
public boolean getBoolean(int index)
index
- 要素の番号(1番から始まる
public int getInt(int index)
index
- 要素の番号(1番から始まる
public double getDouble(int index)
index
- 要素の番号(1番から始まる
public DoubleComplexNumber getComplex(int index)
Complex
型で取り出す。
index
- 要素の番号(1番から始まる
public Scalar<?> getMatrixElement(int index)
MatrixElement
型で取り出す。
index
- 要素の番号(1番から始まる
public String getString(int index)
String
型で取り出す。
index
- 要素の番号(1番から始まる
public Matrix getMatrix(int index)
Matrix
型で取り出す。
index
- 要素の番号(1番から始まる
public Polynomial getPolynomial(int index)
Polynomial
型で取り出す。
index
- 要素の番号(1番から始まる
public RationalPolynomial getRationalPolynomial(int index)
RationalPolynomial
型で取り出す。
index
- 要素の番号(1番から始まる
public MatxList getList(int index)
List
型で取り出す。
index
- 要素の番号(1番から始まる
public Object getObject(int index)
Object
型で取り出す。
index
- 要素の番号(1番から始まる
public MatxList getSubList(int from, int to)
from
- 下端(1番から始まるto
- 上端(1番から始まる
public MatxList getSubList(IntMatrix index)
index
- 成分の指数(1番から始まる
public MatxList setSubList(int from, int to, MatxList ll)
from
- 下端(1番から始まるto
- 上端(1番から始まるll
- 設定するリスト
public MatxList setSubList(IntMatrix index, MatxList ll)
index
- 指数(1番から始まるll
- 設定するリスト
public void add(boolean value)
value
- 追加するbooleanpublic void add(int value)
value
- 追加する整数public void add(double value)
value
- 追加する実数public void add(DoubleComplexNumber value)
value
- 追加する複素数public void add(String value)
value
- 追加する文字列public void add(Polynomial value)
value
- 追加する多項式public void add(RationalPolynomial value)
value
- 追加する有理多項式public void add(Matrix value)
value
- 追加する行列public void add(MatxList value)
value
- 追加するリストpublic MatxList append(MatxList value)
value
- 結合するリスト
public MatxList multiply(int count)
count
- 個数
public void set(int index, boolean value)
index
- 指数(1番から始まるvalue
- 整数public void set(int index, int value)
index
- 指数(1番から始まるvalue
- 整数public void set(int index, double value)
index
- 指数(1番から始まるvalue
- 実数public void set(int index, DoubleComplexNumber value)
index
- 指数(1番から始まるvalue
- 複素数public void set(int index, String value)
index
- 指数(1番から始まるvalue
- オブジェクトpublic void set(int index, Polynomial value)
index
- 指数(1番から始まるvalue
- 多項式public void set(int index, RationalPolynomial value)
index
- 指数(1番から始まるvalue
- 有理多項式public void set(int index, Matrix value)
index
- 指数(1番から始まるvalue
- 行列public void set(int index, MatxList value)
index
- 指数(1番から始まるvalue
- リストpublic BooleanMatrix compareElementWise(boolean opponent, String operator)
opponent
- 比較対象operator
- 比較演算子
public BooleanMatrix compareElementWise(Matrix opponent, String operator)
opponent
- 比較対象operator
- 比較演算子
public BooleanMatrix compareElementWise(RationalPolynomial opponent, String operator)
opponent
- 比較対象operator
- 比較演算子
public BooleanMatrix compareElementWise(Polynomial opponent, String operator)
opponent
- 比較対象operator
- 比較演算子
public BooleanMatrix compareElementWise(String opponent, String operator)
opponent
- 比較対象operator
- 比較演算子
public BooleanMatrix compareElementWise(DoubleComplexNumber opponent, String operator)
opponent
- 比較対象operator
- 比較演算子
public BooleanMatrix compareElementWise(double opponent, String operator)
opponent
- 比較対象operator
- 比較演算子
public BooleanMatrix compareElementWise(int opponent, String operator)
opponent
- 比較対象operator
- 比較演算子
public BooleanMatrix compareElementWise(MatxList opponent, String operator)
opponent
- 比較対象operator
- 比較演算子
public BooleanMatrix isSameClass(Class<?> clazz)
clazz
- 比較するクラス
public int size()
public void print()
public void print(String name)
name
- 変数名public void writeMxFormat(String fileName, String name) throws IOException
MatxObject
の記述:
MatxObject
内の writeMxFormat
fileName
- ファイル名name
- データの名前
IOException
- ファイルに出力できない場合MatxObject.writeMxFormat(java.lang.String,
java.lang.String)
public void writeMxFormat(OutputStream output, String name) throws IOException
MatxObject
の記述:
MatxObject
内の writeMxFormat
output
- 出力ストリームname
- データの名前
IOException
- 出力ストリームに出力できない場合MatxObject.writeMxFormat(java.io.OutputStream,
java.lang.String)
public static MatxList readMxFormat(String fileName) throws IOException
fileName
- 読み込むmxファイル
IOException
- 読み込みエラーpublic static MatxList readMxFormat(InputStream input) throws IOException
input
- 入力ストリーム
IOException
- 入力ストリームから読み込めない場合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 withNewLine) throws IOException
MatxObject
の記述:
MatxObject
内の writeMmFormat
output
- ライターname
- 名前withNewLine
- セミコロンと改行コードを出力するならばtrue、そうでなければfalse
IOException
- ライターに出力できない場合MatxObject.writeMmFormat(java.io.Writer,
java.lang.String, boolean)
public String toMmString()
MatxObject
の記述:
MatxObject
内の toMmString
MatxObject.toMmString()
public String toMmString(String valueFormat)
MatxObject
の記述:
MatxObject
内の toMmString
valueFormat
- 出力フォーマット
MatxObject.toMmString(java.lang.String)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |