-
Notifications
You must be signed in to change notification settings - Fork 4.1k
ARROW-6508: [C++] Add Tensor and SparseTensor factory function with validations #5862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
5aa0e63
Add Tensor::Make functions
mrkn b9fc3c9
Extract internal::ValidateTensorParameters
mrkn aec0ac5
Remove Tensor::Make without strides
mrkn 9a2bfaf
Add NumericTensor::Make functions
mrkn a7ac21d
Add SparseTensorImpl<T>::Make
mrkn 1a2b5ca
Reject negative items in shape
mrkn bf1a474
SparseCOOIndex::Make and SparseCSRIndex::Make
mrkn 9cbe5d8
Use Result<T>
mrkn aa8017b
Rname to MakeSafe
mrkn 0c69d60
Refactoring
mrkn 03ce831
Fix error messages
mrkn 16fd011
Rename MakeSafe to Make
mrkn 32ef792
Use appropriate macros
mrkn 4801c3f
Make ValidateShape inline
mrkn 29913bd
Remove a needless condition
mrkn 195cd92
Fix SparseTensorImpl::Make
mrkn 6130d25
Simplify Tensor::Make and NumericTensor::Make declarations
mrkn e03f1f7
Fix tests of Tensor and SparseTensor more appropriately
mrkn 40a723b
Let Tensor::Make support 0-dim tensors
mrkn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.