Update System.Numerics.Tensors PACKAGE.md to reflect current library capabilities#118512
Merged
stephentoub merged 4 commits intomainfrom Aug 8, 2025
Merged
Conversation
ReadOnlySpan<float> but has many generic methods. And it's not just about `T...…capabilities Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update the PACKAGE.md file for the System.Numerics.Tensors library
Update System.Numerics.Tensors PACKAGE.md to reflect current library capabilities
Aug 8, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
Updates the System.Numerics.Tensors PACKAGE.md documentation to accurately reflect the library's current capabilities, expanding from a description focused solely on span-based primitives to include the comprehensive tensor types and operations now available.
- Updated library description to highlight both high-level tensor types and low-level primitives
- Enhanced examples to demonstrate both TensorPrimitives and high-level Tensor operations
- Expanded main types section to include all major tensor types and operations
Co-authored-by: Tanner Gooding <tagoo@outlook.com>
Contributor
|
Tagging subscribers to this area: @dotnet/area-system-numerics-tensors |
tannergooding
approved these changes
Aug 8, 2025
Member
|
@copilot, please fix the linting errors: |
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Contributor
Author
... Fixed trailing spaces linting error in commit 124e127. |
stephentoub
approved these changes
Aug 8, 2025
Member
|
/ba-g markdown only |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The PACKAGE.md file for System.Numerics.Tensors was outdated and no longer accurately described the library's current capabilities. The documentation incorrectly suggested the library only worked with
ReadOnlySpan<float>and only providedTensorPrimitives, when in fact the library has evolved to include a comprehensive set of generic tensor types and operations.Changes Made
Updated Library Description:
Enhanced Key Features:
Tensor<T>,TensorSpan<T>,ReadOnlyTensorSpan<T>Improved Example Code:
Updated Main Types Section:
TensorPrimitivesto include all major types:TensorPrimitives- Low-level span operationsTensor<T>- Generic tensor classTensorSpan<T>- Mutable span-like viewReadOnlyTensorSpan<T>- Read-only span-like viewTensor- Static class with high-level operationsThe updated documentation now accurately reflects the library's evolution from a simple span-based primitives library to a comprehensive tensor computation framework while maintaining backward compatibility information.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.