本文整理匯總了Java中org.nd4j.linalg.factory.Nd4j.eye方法的典型用法代碼示例。如果您正苦於以下問題:Java Nd4j.eye方法的具體用法?Java Nd4j.eye怎麽用?Java Nd4j.eye使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.nd4j.linalg.factory.Nd4j
的用法示例。
在下文中一共展示了Nd4j.eye方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: State
import org.nd4j.linalg.factory.Nd4j; //導入方法依賴的package包/類
public State(
final double timestamp,
final double x,
final double y,
final double z,
final double velocityX,
final double velocityY,
final double velocityZ
) {
this(new SimpleDistribution(Nd4j.create(
new double[]{
timestamp,
x,
y,
z,
velocityX,
velocityY,
velocityZ
},
new int[]{7, 1}), Nd4j.eye(7)));
}
示例2: State
import org.nd4j.linalg.factory.Nd4j; //導入方法依賴的package包/類
public State(
final int id,
final double timestamp,
final double x,
final double y,
final double orientation,
final TeamColor teamColor
) {
this(
id,
new SimpleDistribution(Nd4j.create(
new double[]{
timestamp,
x,
y,
orientation
},
new int[]{4, 1}), Nd4j.eye(4)),
teamColor);
}
示例3: State
import org.nd4j.linalg.factory.Nd4j; //導入方法依賴的package包/類
public State(
final double timestamp,
final double x,
final double y,
final double z
) {
this(new SimpleDistribution(Nd4j.create(
new double[]{
timestamp,
x,
y,
z
},
new int[]{4, 1}), Nd4j.eye(4)));
}
示例4: State
import org.nd4j.linalg.factory.Nd4j; //導入方法依賴的package包/類
public State(
final int id,
final double timestamp,
final double x,
final double y,
final double orientation,
final double velocityX,
final double velocityY,
final double velocityR,
final TeamColor teamColor
) {
this(
id,
new SimpleDistribution(Nd4j.create(
new double[]{
timestamp,
x,
y,
orientation,
velocityX,
velocityY,
velocityR
},
new int[]{7, 1}), Nd4j.eye(7)),
teamColor);
}
示例5: eye
import org.nd4j.linalg.factory.Nd4j; //導入方法依賴的package包/類
public static NDMatrix eye(int n) {
return new NDMatrix(Nd4j.eye(n));
}