Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Num::SparseCOOTensor(T)
Inherits
Reference
<
Object
Constructors
new
(rows :
Tensor
(
Int32
,
CPU
(
Int32
)), cols :
Tensor
(
Int32
,
CPU
(
Int32
)), data :
Tensor
(
T
,
CPU
(
T
)), shape :
Array
(
Int32
))
Source
Instance methods
cols
Source
data
Source
matmul
(vec :
Tensor
(
T
,
CPU
(
T
))) :
Tensor
(
T
,
CPU
(
T
))
Performs sparse matrix-vector multiplication (y = A * x)
Source
rows
Source
shape
Source