public void RandomMatrixTest() { var seed = new MCJIMatrix(2, 2); seed.setAt(0, 0, 1); seed.setAt(0, 1, 3); seed.setAt(1, 0, 5); seed.setAt(1, 1, 7); var nlib = new NLapackLib(); for (int i = 0; i < 10; i++) { var result = nlib.RandomMatrix(RandomDistributionType.Uniform_0_1, seed, 2, 2); Console.WriteLine(result); } }
/// <summary> /// /// </summary> /// <param name="distrubutionType"></param> /// <param name="seed"></param> /// <param name="m"></param> /// <param name="n"></param> public NRealMatrix RandomMatrix(RandomDistributionType distrubutionType, MCJIMatrix seed, int m, int n) { return(new NRealMatrix(_lib.randomMatrix(Convert.ToUInt16(distrubutionType), seed, m, n))); }
/// <summary> /// /// </summary> /// <param name="distrubutionType"></param> /// <param name="seed"></param> /// <param name="m"></param> /// <param name="n"></param> public NRealMatrix RandomMatrix(RandomDistributionType distrubutionType, MCJIMatrix seed, int m,int n) { return new NRealMatrix(_lib.randomMatrix(Convert.ToUInt16(distrubutionType), seed, m, n)); }