You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

LinearAlgebra.Test.cs 678 B

4 years ago
12345678910111213141516171819202122232425262728293031
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using Tensorflow;
  7. using Tensorflow.NumPy;
  8. namespace TensorFlowNET.UnitTest.NumPy
  9. {
  10. /// <summary>
  11. /// https://numpy.org/doc/stable/reference/generated/numpy.prod.html
  12. /// </summary>
  13. [TestClass]
  14. public class LinearAlgebraTest : EagerModeTestBase
  15. {
  16. [TestMethod]
  17. public void lstsq()
  18. {
  19. }
  20. [TestMethod]
  21. public void norm()
  22. {
  23. var x = np.arange(9) - 4;
  24. var y = x.reshape((3, 3));
  25. var norm = np.linalg.norm(y);
  26. }
  27. }
  28. }