/// <summary> /// Set the values of this vector to the given values. /// </summary> /// <param name="values">The array containing the values to use.</param> /// <exception cref="ArgumentNullException">If <paramref name="values"/> is <see langword="null" />.</exception> /// <exception cref="ArgumentException">If <paramref name="values"/> is not the same size as this vector.</exception> public void SetValues(T[] values) { var source = new DenseVectorStorage <T>(Count, values); source.CopyTo(Storage); }