예제 #1
0
 public static void UpdateBondaries(TArray Z)
 {
     Z[R.El(0), R.All]  = Z[R.El(1), R.All];
     Z[R.El(-1), R.All] = Z[R.El(-2), R.All];
     Z[R.All, R.El(0)]  = Z[R.All, R.El(1)];
     Z[R.All, R.El(-1)] = Z[R.All, R.El(-2)];
 }
예제 #2
0
        public static NdArray Create(long width, long height)
        {
            var res = Generate.Zeroes(height + 2, width + 2);

            res[R.All, R.El(0)]  = -273.5f;
            res[R.All, R.El(-1)] = -273.5f;
            res[R.El(0), R.All]  = 40f;
            res[R.El(-1), R.All] = -273.5f;

            return(res);
        }