Subclassed by arrow::NumericTensor< TYPE >
Public Functions
Constructor with no dimension names or strides, data assumed to be row-major.
Constructor with non-negative strides.
Constructor with non-negative strides and dimension names.
Total number of value cells in the tensor.
Return true if the underlying data buffer is mutable.
Either row major or column major.
AKA âC orderâ.
AKA âFortran orderâ.
Compute the number of non-zero values in the tensor.
Returns the value at the given index without data-type and bounds checks.
Public Static Functions
Create a Tensor with full parameters.
This factory function will return Status::Invalid when the parameters are inconsistent
type â [in] The data type of the tensor values
data â [in] The buffer of the tensor content
shape â [in] The shape of the tensor
strides â [in] The strides of the tensor (if this is empty, the data assumed to be row-major)
dim_names â [in] The names of the tensor dimensions
Return the offset of the given index on the given strides.
Public Functions
Constructor with non-negative strides and dimension names.
Constructor with no dimension names or strides, data assumed to be row-major.
Constructor with non-negative strides.
Public Static Functions
Create a NumericTensor with full parameters.
This factory function will return Status::Invalid when the parameters are inconsistent
data â [in] The buffer of the tensor content
shape â [in] The shape of the tensor
strides â [in] The strides of the tensor (if this is empty, the data assumed to be row-major)
dim_names â [in] The names of the tensor dimensions
EXPERIMENTAL: The index format type of SparseTensor.
Values:
Coordinate list (COO) format.
Compressed sparse row (CSR) format.
Compressed sparse column (CSC) format.
Compressed sparse fiber (CSF) format.
EXPERIMENTAL: The base class for the index of a sparse tensor.
SparseIndex describes where the non-zero elements are within a SparseTensor.
There are several ways to represent this. The format_id is used to distinguish what kind of representation is used. Each possible value of format_id must have only one corresponding concrete subclass of SparseIndex.
Subclassed by arrow::internal::SparseIndexBase< SparseCOOIndex >, arrow::internal::SparseIndexBase< SparseCSCIndex >, arrow::internal::SparseIndexBase< SparseCSFIndex >, arrow::internal::SparseIndexBase< SparseCSRIndex >, arrow::internal::SparseIndexBase< SparseIndexType >
Public Functions
Return the identifier of the format type.
Return the number of non zero values in the sparse tensor related to this sparse index.
Return the string representation of the sparse index.
EXPERIMENTAL: The index data for a COO sparse tensor.
A COO sparse index manages the location of its non-zero values by their coordinates.
Public Functions
Construct SparseCOOIndex from column-major NumericTensor.
Return a tensor that has the coordinates of the non-zero values.
The returned tensor is a N x D tensor where N is the number of non-zero values and D is the number of dimensions in the logical data. The column at index i
is a D-tuple of coordinates indicating that the logical value at those coordinates should be found at physical index i
.
Return the number of non zero values in the sparse tensor related to this sparse index.
Return whether a sparse tensor index is canonical, or not.
If a sparse tensor index is canonical, it is sorted in the lexicographical order, and the corresponding sparse tensor doesnât have duplicated entries.
Return a string representation of the sparse index.
Return whether the COO indices are equal.
Public Static Functions
Make SparseCOOIndex from a coords tensor and canonicality.
Make SparseCOOIndex from a coords tensor with canonicality auto-detection.
Make SparseCOOIndex from raw properties with canonicality auto-detection.
Make SparseCOOIndex from raw properties.
Make SparseCOOIndex from sparse tensorâs shape properties and data with canonicality auto-detection.
The indices_data should be in row-major (C-like) order. If not, use the raw properties constructor.
Make SparseCOOIndex from sparse tensorâs shape properties and data.
The indices_data should be in row-major (C-like) order. If not, use the raw properties constructor.
EXPERIMENTAL: The index data for a CSR sparse matrix.
A CSR sparse index manages the location of its non-zero values by two vectors.
The first vector, called indptr, represents the range of the rows; the i-th row spans from indptr[i] to indptr[i+1] in the corresponding value vector. So the length of an indptr vector is the number of rows + 1.
The other vector, called indices, represents the column indices of the corresponding non-zero values. So the length of an indices vector is same as the number of non-zero-values.
EXPERIMENTAL: The base class of sparse tensor container.
Subclassed by arrow::SparseTensorImpl< SparseIndexType >
Public Functions
Return a value type of the sparse tensor.
Return a buffer that contains the value vector of the sparse tensor.
Return an immutable raw data pointer.
Return a mutable raw data pointer.
Return a shape vector of the sparse tensor.
Return a sparse index of the sparse tensor.
Return a number of dimensions of the sparse tensor.
Return a vector of dimension names.
Return the name of the i-th dimension.
Total number of value cells in the sparse tensor.
Return true if the underlying data buffer is mutable.
Total number of non-zero cells in the sparse tensor.
Return whether sparse tensors are equal.
Return dense representation of sparse tensor as tensor.
The returned Tensor has row-major order (C-like).
EXPERIMENTAL: Concrete sparse tensor implementation classes with sparse index type.
Public Functions
Construct a sparse tensor from physical data buffer and logical index.
Construct an empty sparse tensor.
Public Static Functions
Create a SparseTensor with full parameters.
Create a sparse tensor from a dense tensor.
The dense tensor is re-encoded as a sparse index and a physical data buffer for the non-zero value.
EXPERIMENTAL: Type alias for COO sparse tensor.
EXPERIMENTAL: Type alias for CSC sparse matrix.
EXPERIMENTAL: Type alias for CSF sparse matrix.
EXPERIMENTAL: Type alias for CSR sparse matrix.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4