本文整理了Java中us.ihmc.robotics.math.frames.YoMatrix.getNumberOfRows()
方法的一些代码示例,展示了YoMatrix.getNumberOfRows()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoMatrix.getNumberOfRows()
方法的具体详情如下:
包路径:us.ihmc.robotics.math.frames.YoMatrix
类名称:YoMatrix
方法名:getNumberOfRows
暂无
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void getAndReshape(DenseMatrix64F matrixToPack)
{
matrixToPack.reshape(getNumberOfRows(), getNumberOfColumns());
get(matrixToPack);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void getAndReshape(DenseMatrix64F matrixToPack)
{
matrixToPack.reshape(getNumberOfRows(), getNumberOfColumns());
get(matrixToPack);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
@ContinuousIntegrationTest(estimatedDuration = 0.0)
@Test(timeout = 30000)
public void testSimpleYoMatrixExample()
{
int maxNumberOfRows = 4;
int maxNumberOfColumns = 8;
YoVariableRegistry registry = new YoVariableRegistry("testRegistry");
YoMatrix yoMatrix = new YoMatrix("testMatrix", maxNumberOfRows, maxNumberOfColumns, registry);
assertEquals(maxNumberOfRows, yoMatrix.getNumberOfRows());
assertEquals(maxNumberOfColumns, yoMatrix.getNumberOfColumns());
DenseMatrix64F denseMatrix = new DenseMatrix64F(maxNumberOfRows, maxNumberOfColumns);
yoMatrix.get(denseMatrix);
JUnitTools.assertMatrixEqualsZero(denseMatrix, 1e-10);
Random random = new Random(1984L);
DenseMatrix64F randomMatrix = RandomGeometry.nextDenseMatrix64F(random, maxNumberOfRows, maxNumberOfColumns);
yoMatrix.set(randomMatrix);
DenseMatrix64F checkMatrix = new DenseMatrix64F(maxNumberOfRows, maxNumberOfColumns);
yoMatrix.get(checkMatrix);
JUnitTools.assertMatrixEquals(randomMatrix, checkMatrix, 1e-10);
assertEquals(registry.getVariable("testMatrix_0_0").getValueAsDouble(), checkMatrix.get(0, 0), 1e-10);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
assertEquals(maxNumberOfColumns, denseMatrix.getNumCols());
assertEquals(maxNumberOfRows, yoMatrix.getNumberOfRows());
assertEquals(maxNumberOfColumns, yoMatrix.getNumberOfColumns());
assertEquals(smallerColumns, smallerMatrix.getNumCols());
assertEquals(smallerRows, yoMatrix.getNumberOfRows());
assertEquals(smallerColumns, yoMatrix.getNumberOfColumns());
内容来源于网络,如有侵权,请联系作者删除!