legate_sparse.dia_matrix#
- legate_sparse.dia_matrix#
Methods
__init__(arg[, shape, dtype, copy])Initialize a DIA array.
arcsin()Element-wise arcsin.
arcsinh()Element-wise arcsinh.
arctan()Element-wise arctan.
arctanh()Element-wise arctanh.
asformat(format[, copy])Convert the matrix to a specified format.
astype(dtype[, casting, copy])ceil()Element-wise ceil.
copy()Returns a copy of this matrix.
deg2rad()Element-wise deg2rad.
expm1()Element-wise expm1.
floor()Element-wise floor.
log1p()Element-wise log1p.
nnz_to_pos(q_nnz)Convert non-zero counts to position arrays for this instance.
nnz_to_pos_cls(q_nnz)Convert non-zero counts to position arrays.
rad2deg()Element-wise rad2deg.
rint()Element-wise rint.
sign()Element-wise sign.
sin()Element-wise sin.
sinh()Element-wise sinh.
sqrt()Element-wise sqrt.
sum([axis, dtype, out])Sum the matrix elements over a given axis.
tan()Element-wise tan.
tanh()Element-wise tanh.
tocsr([copy])Convert this matrix to a CSR matrix.
transpose([axes, copy])Reverses the dimensions of the sparse matrix.
trunc()Element-wise trunc.
Attributes
TTranspose of the matrix
dataGet the data array of the DIA matrix.
nnzNumber of stored values, including explicit zeros.
offsetsGet the offsets array of the DIA matrix.
sizeshapeposdtypeformatcrdalias of
dia_array