static void ExtractMatrixBufferFromCube(MemoryTile output, MemoryCube rhs, uint matrix) { Debug.Assert(matrix < rhs.nCubes); output = new MemoryTile(rhs.pointer + (matrix * rhs.nRows * rhs.nCols * rhs.ElementarySize()), rhs.nRows, rhs.nCols, rhs.memorySpace, rhs.mathDomain); }
public MemoryCube(MemoryTile tile) : this(tile.pointer, tile.nRows, tile.nCols, 1, tile.memorySpace, tile.mathDomain) { }
static void ExtractColumnBufferFromMatrix(out MemoryBuffer output, MemoryTile rhs, uint column) { Debug.Assert(column < rhs.nCols); output = new MemoryBuffer(rhs.pointer + (column * rhs.nRows * rhs.ElementarySize()), rhs.nRows, rhs.memorySpace, rhs.mathDomain); }
public MemoryTile(MemoryTile rhs) : this(rhs.pointer, rhs.nRows, rhs.nCols, rhs.memorySpace, rhs.mathDomain) { }