コード例 #1
0
 public Stencil(Stencil model)
 {
     this.W           = model.W;
     this.H           = model.H;
     this.inputArray  = model.inputArray.Clone();
     this.outputArray = model.outputArray.Clone();
 }
コード例 #2
0
        public override List <NotifyingArr <float> > Arrays()
        {
            inputArray = new NotifyingArr <float>(W, H, 0);
            for (int i = 0; i < inputArray.Size; i++)
            {
                inputArray[i] = i;
            }

            outputArray = new NotifyingArr <float>(W, H, 0);

            return(new List <NotifyingArr <float> >()
            {
                inputArray, outputArray
            });
        }