Skip to content

Commit 25bc2ad

Browse files
stephentoubmichaelgsharp
authored andcommitted
Start vectorizing TensorPrimitives (dotnet#91596)
* Start vectorizing TensorPrimitives Just does two functions to establish the files into which the rest of the implementations can be moved.
1 parent 4d23e8c commit 25bc2ad

File tree

7 files changed

+1591
-530
lines changed

7 files changed

+1591
-530
lines changed

src/libraries/System.Numerics.Tensors/src/Resources/Strings.resx

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,6 @@
121121
<value>Destination is too short.</value>
122122
</data>
123123
<data name="Argument_SpansMustHaveSameLength" xml:space="preserve">
124-
<value>Length of '{0}' must be same as length of '{1}'.</value>
124+
<value>Input span arguments must all have the same length.</value>
125125
</data>
126-
</root>
126+
</root>

src/libraries/System.Numerics.Tensors/src/System.Numerics.Tensors.csproj

+8
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
<Compile Include="System\ThrowHelper.cs" />
1717
</ItemGroup>
1818

19+
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
20+
<Compile Include="System\Numerics\Tensors\TensorPrimitives.netstandard.cs" />
21+
</ItemGroup>
22+
23+
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
24+
<Compile Include="System\Numerics\Tensors\TensorPrimitives.netcore.cs" />
25+
</ItemGroup>
26+
1927
<ItemGroup>
2028
<InternalsVisibleTo Include="System.Numerics.Tensors.Tests" Key="00240000048000009400000006020000002400005253413100040000010001004b86c4cb78549b34bab61a3b1800e23bfeb5b3ec390074041536a7e3cbd97f5f04cf0f857155a8928eaa29ebfd11cfbbad3ba70efea7bda3226c6a8d370a4cd303f714486b6ebc225985a638471e6ef571cc92a4613c00b8fa65d61ccee0cbe5f36330c9a01f4183559f1bef24cc2917c6d913e3a541333a1d05d9bed22b38cb" />
2129
</ItemGroup>

src/libraries/System.Numerics.Tensors/src/System/Numerics/Tensors/TensorPrimitives.cs

+31-241
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)