public void Eye() { var m = ColumnWiseMatrix.Eye(10); m.Print(); DeviceManager.CheckDeviceSanity(); var _m = m.GetMatrix <float>(); for (int i = 0; i < m.nRows; ++i) { for (int j = 0; j < m.nCols; ++j) { Assert.AreEqual(j == i ? 1.0 : 0.0, _m[i, j]); } } }