本文整理汇总了C#中MathNet.Numerics.LinearAlgebra.Double.DenseVector.DivideThis方法的典型用法代码示例。如果您正苦于以下问题:C# DenseVector.DivideThis方法的具体用法?C# DenseVector.DivideThis怎么用?C# DenseVector.DivideThis使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MathNet.Numerics.LinearAlgebra.Double.DenseVector
的用法示例。
在下文中一共展示了DenseVector.DivideThis方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NormalizeCalibGrids
public void NormalizeCalibGrids()
{
GridsNormalised = new List<RealGridData>();
for(int i = 0; i < Grids.Count; ++i)
{
RealGridData grid = Grids[i];
RealGridData gridNorm = new RealGridData();
gridNorm.Rows = grid.Rows;
gridNorm.Columns = grid.Columns;
Vector<double> corner = new DenseVector(new double[] { grid.TopLeft.X, grid.TopLeft.Y, grid.TopLeft.Z, 1.0 });
corner = NormReal * corner;
corner.DivideThis(corner.At(3));
gridNorm.TopLeft = new Vector3(corner.At(0), corner.At(1), corner.At(2));
corner = new DenseVector(new double[] { grid.TopRight.X, grid.TopRight.Y, grid.TopRight.Z, 1.0 });
corner = NormReal * corner;
corner.DivideThis(corner.At(3));
gridNorm.TopRight = new Vector3(corner.At(0), corner.At(1), corner.At(2));
corner = new DenseVector(new double[] { grid.BotLeft.X, grid.BotLeft.Y, grid.BotLeft.Z, 1.0 });
corner = NormReal * corner;
corner.DivideThis(corner.At(3));
gridNorm.BotLeft = new Vector3(corner.At(0), corner.At(1), corner.At(2));
corner = new DenseVector(new double[] { grid.BotRight.X, grid.BotRight.Y, grid.BotRight.Z, 1.0 });
corner = NormReal * corner;
corner.DivideThis(corner.At(3));
gridNorm.BotRight = new Vector3(corner.At(0), corner.At(1), corner.At(2));
gridNorm.Update();
GridsNormalised.Add(gridNorm);
}
}