public void DiagMat_Scalar_ThrowException() { // arrange const int DummyValue = 3; var input = NdArray <int> .Scalar(HostDevice.Instance, DummyValue); // action var diagMat = NdArrayOperator <int> .DiagMat(input); }
public void DiagMat() { // arrange var input = NdArray <int> .Arange(HostDevice.Instance, 0, 3, 1); // action var diagMat = NdArrayOperator <int> .DiagMat(input); // assert CollectionAssert.AreEqual(new[] { 3, 3 }, diagMat.Shape); }