示例#1
0
 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);
 }
示例#2
0
 public MemoryCube(MemoryTile tile)
     : this(tile.pointer, tile.nRows, tile.nCols, 1, tile.memorySpace, tile.mathDomain)
 {
 }
示例#3
0
 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);
 }
示例#4
0
 public MemoryTile(MemoryTile rhs)
     : this(rhs.pointer, rhs.nRows, rhs.nCols, rhs.memorySpace, rhs.mathDomain)
 {
 }