Esempio n. 1
0
        public void set(CMatrixRMaj original)
        {
            reshape(original.numRows, original.numCols);
            int columnSize = numCols * 2;

            for (int y = 0; y < numRows; y++)
            {
                int index = y * numCols * 2;
                Array.Copy(original.data, index, data, index, columnSize);
            }
        }
Esempio n. 2
0
 /**
  * Creates a new {@link CMatrixRMaj} which is a copy of the passed in matrix.
  * @param original Matrix which is to be copied
  */
 public CMatrixRMaj(CMatrixRMaj original)
     : this(original.numRows, original.numCols)
 {
     set(original);
 }