Esempio n. 1
0
        public NDArray reshape(params int[] shape)
        {
            var count = shape.Length;
            var idx   = NDArray.FindNegativeIndex(shape);

            if (idx == -1)
            {
                this.Storage.Shape = new Shape(shape);
            }
            else
            {
                this.Storage.Shape = new Shape(CalculateNegativeShape(idx, this.shape.Shapes.ToList(), shape));
            }

            return(this);
        }