/// <summary> /// /// </summary> /// <param name="data"></param> public VectorOfDouble(IEnumerable <double> data) { if (data == null) { throw new ArgumentNullException(nameof(data)); } double[] array = EnumerableEx.ToArray(data); ptr = NativeMethods.vector_double_new3(array, new IntPtr(array.Length)); }