Cannot find the Vector<T>(Span<T>) constructor

百般思念 提交于 2021-02-10 14:35:53

问题


I'm giving a try to SIMD in c# and trying to initialize a Vector from a Span ( var myVector = new Vector<T>(myTSpan);) as promised in: https://docs.microsoft.com/en-us/dotnet/api/system.numerics.vector-1?redirectedfrom=MSDN&view=netstandard-2.1

I'm using Visual Studio 2019, C# 7.3; targeting to .NET Framework 4.7.2. I'm using the System.Numerics 4.0.0.0, System.Numerics.Vectors 4.1.4.0 from NuGet, and System.Memory 4.0.1.0

I have also downloaded the NETStandard.Library 2.0.3 from NuGet and set the PackageReference Option but still cannot find it (I only get constructors from managed arrays).

What am I missing?

来源:https://stackoverflow.com/questions/57327520/cannot-find-the-vectortspant-constructor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!