public static void ApplySigmoid(AlignedArray src, AlignedArray dst, int c) { Contracts.Assert(Compat(src)); Contracts.Assert(Compat(dst)); Contracts.Assert(src.Size == dst.Size); Contracts.Assert(0 < c && c <= dst.Size); unsafe { fixed(float *psrc = &src.Items[0]) fixed(float *pdst = &dst.Items[0]) Thunk.ApplySigmoidX(Ptr(src, psrc), Ptr(dst, pdst), c); } }