public NDArray reshape(params int[] shape) { var count = shape.Length; var idx = NDArray.FindNegativeIndex(shape); var pufferShape = this.Storage.Shape.Dimensions; if (idx == -1) { this.Storage.Reshape(shape); } else { this.Storage.Reshape(CalculateNegativeShape(idx, this.shape.ToList(), shape)); } return(this); }