SparseTensor<T>
Models & Types · AiDotNet.Tensors.LinearAlgebra
No summary documentation available yet.
Inheritance: TensorBase<T> → Tensor<T> → SparseTensor<T>
Constructors
| Constructor | Summary |
|---|---|
SparseTensor(int rows, int columns, int[] rowIndices, int[] columnIndices, T[] values) |
|
SparseTensor(int rows, int columns, int[] rowIndices, int[] columnIndices, Vector<T> valuesVector) |
Properties
| Property | Summary |
|---|---|
SparseStorageFormat Format { get; } |
|
T Item { get; set; } |
|
T[] Values { get; } |
|
int BlockColSize { get; } |
|
int BlockRowSize { get; } |
|
int Columns { get; set; } |
|
int NonZeroBlockCount { get; } |
|
int NonZeroCount { get; } |
|
int Rows { get; set; } |
|
int[] ColumnIndices { get; set; } |
|
int[] ColumnPointers { get; set; } |
|
int[] RowIndices { get; set; } |
|
int[] RowPointers { get; set; } |
Methods
| Method | Summary |
|---|---|
SparseTensor<T> CloneSparse() |
|
SparseTensor<T> Coalesce() |
|
SparseTensor<T> FromBsc(int rows, int columns, int blockRowSize, int blockColSize, int[] blockColumnPointers, int[] blockRowIndices, T[] values) |
|
SparseTensor<T> FromBsr(int rows, int columns, int blockRowSize, int blockColSize, int[] blockRowPointers, int[] blockColumnIndices, T[] values) |
|
SparseTensor<T> FromCsc(int rows, int columns, int[] columnPointers, int[] rowIndices, T[] values) |
|
SparseTensor<T> FromCsr(int rows, int columns, int[] rowPointers, int[] columnIndices, T[] values) |
|
SparseTensor<T> FromDense(Tensor<T> dense) |
|
SparseTensor<T> FromDense(Tensor<T> dense, T tolerance) |
|
SparseTensor<T> Hsmm(SparseTensor<T> sparse, Tensor<T> dense) |
|
SparseTensor<T> Hspmm(SparseTensor<T> sparse, Tensor<T> dense) |
|
SparseTensor<T> Saddmm(SparseTensor<T> input, SparseTensor<T> mat1, Tensor<T> mat2, T beta, T alpha) |
|
SparseTensor<T> Smm(SparseTensor<T> sparse, Tensor<T> dense) |
|
SparseTensor<T> SparseMask(Tensor<T> source, SparseTensor<T> mask) |
|
SparseTensor<T> Sspaddmm(SparseTensor<T> input, SparseTensor<T> mat1, Tensor<T> mat2, T beta, T alpha) |
|
SparseTensor<T> ToBsc(int blockRowSize, int blockColSize) |
|
SparseTensor<T> ToBsr(int blockRowSize, int blockColSize) |
|
SparseTensor<T> ToCoo() |
|
SparseTensor<T> ToCsc() |
|
SparseTensor<T> ToCsr() |
|
Tensor<T> ToDense() |
|
Tensor<T> Transpose() |
|
Tensor<int> Indices() |
|
void ResizeAsSparse(SparseTensor<T> other) |
|
void SparseResize(int rows, int columns) |
|
void SparseResizeAndClear(int rows, int columns) |