public GetCellOffset ( int Offset ) : |
||
Offset | int | |
Результат |
public static int[,] GetIndicesMatrix(VfpuRegisterInfo registerInfo) { var indicesMatrix = new int[registerInfo.Size, registerInfo.Size]; for (var row = 0; row < registerInfo.Size; row++) { for (var column = 0; column < registerInfo.Size; column++) { indicesMatrix[column, row] = GetIndexCell(registerInfo.GetCellOffset(column, row)); } } return(indicesMatrix); }
public static int[] GetIndicesVector(VfpuRegisterInfo registerInfo) => Enumerable.Range(0, registerInfo.Size) .Select(offset => GetIndexCell(registerInfo.GetCellOffset(offset))).ToArray();
public static int GetIndexCell(VfpuRegisterInfo registerInfo) => GetIndexCell(registerInfo.GetCellOffset(0));
public static int[,] GetIndicesMatrix(VfpuRegisterInfo RegisterInfo) { var IndicesMatrix = new int[RegisterInfo.Size, RegisterInfo.Size]; for (int Row = 0; Row < RegisterInfo.Size; Row++) { for (int Column = 0; Column < RegisterInfo.Size; Column++) { IndicesMatrix[Column, Row] = (int)GetIndexCell(RegisterInfo.GetCellOffset(Column, Row)); } } return IndicesMatrix; }
public static int GetIndexCell(VfpuRegisterInfo RegisterInfo) { return GetIndexCell(RegisterInfo.GetCellOffset(0)); }
public static int[] GetIndicesVector(VfpuRegisterInfo RegisterInfo) { return Enumerable.Range(0, RegisterInfo.Size).Select(Offset => GetIndexCell(RegisterInfo.GetCellOffset(Offset))).ToArray(); }