Home | History | Annotate | Download | only in cts

Lines Matching refs:dimX

36     Allocation createTypedAllocation(DataType dt, int size, int dimX, int dimY) {
40 t = Type.createX(mRS, e, dimX);
42 t = Type.createXY(mRS, e, dimX, dimY);
48 void testByteBufferHelper(DataType dt, int byteSize, int dimX, int dimY) {
53 byte[] data = new byte[dimX * dimY * vecWidth * byteSize];
56 Allocation alloc = createTypedAllocation(dt, size, dimX, dimY);
62 int posX = r.nextInt(dimX);
64 byte byteInData = data[(posY * dimX + posX) * vecWidth * byteSize];
74 int dimX = r.nextInt(MAX_DIM) + 1;
75 testByteBufferHelper(dt, byteSize, dimX, 1);
80 int dimX = r.nextInt(MAX_DIM) + 1;
82 testByteBufferHelper(dt, byteSize, dimX, dimY);
88 int dimX = r.nextInt(MAX_DIM) + 1;
90 Type t = Type.createX(mRS, Element.U8_4(mRS), dimX);
94 byte[] dataIn = new byte[dimX * vecWidth];
95 byte[] dataOut = new byte[dimX * vecWidth];
99 for (int i = 0; i < dimX * vecWidth; i++) {
107 int dimX = r.nextInt(MAX_DIM) + 1;
110 Type t = Type.createXY(mRS, Element.U8_4(mRS), dimX, dimY);
116 byte[] dataOut = new byte[dimX * dimY * vecWidth];
120 for (int i = 0; i < dimX*vecWidth; i++) {
122 assertEquals(dataIn[j*stride + i], dataOut[j*dimX*vecWidth + i]);