/// <summary> /// Assert the compatibility of the underlying AlignedArray for the input vector in terms of alignment amount. /// </summary> /// <param name="values">The input vector</param> public static void AssertCompatible(ICpuVector values) { #if DEBUG CpuAlignedVector vec = values as CpuAlignedVector; Contracts.AssertValue(vec); Contracts.Assert((vec.Items.CbAlign % CpuMathUtils.GetVectorAlignment()) == 0); #endif }
/// <summary> /// Copy the values of src vector into this vector. The src vector must have the same size as this vector. /// </summary> /// <param name="src">The source vector</param> public void CopyFrom(CpuAlignedVector src) { Contracts.AssertValue(src); Contracts.Assert(src._size == _size); _items.CopyFrom(src._items); }