diff --git a/DotMP/GPU/Buffer.cs b/DotMP/GPU/Buffer.cs index 6bb149a..2683216 100644 --- a/DotMP/GPU/Buffer.cs +++ b/DotMP/GPU/Buffer.cs @@ -88,29 +88,10 @@ public sealed class Buffer : IDisposable /// private T[,,] data3d; - /// - /// Handler int for the number of dimensions in the array. - /// - private int dims; - /// /// The number of dimensions in the array. /// - internal int Dimensions - { - get - { - return dims; - } - - private set - { - if (value < 1 || value > 3) - throw new ArgumentOutOfRangeException("Number of dimensions must be between 1 and 3."); - - dims = value; - } - } + internal int Dimensions { get; private set; } /// /// Constructor for buffer object. Allocates a 1D array on the GPU and makes it available for the next GPU kernel.