legate_sparse.csr_matrix#

legate_sparse.csr_matrix#

Methods

__init__(arg[, shape, dtype, copy])

Initialize a CSR array.

arcsin()

Element-wise arcsin.

arcsinh()

Element-wise arcsinh.

arctan()

Element-wise arctan.

arctanh()

Element-wise arctanh.

asformat(format[, copy])

Convert this matrix to a specified format.

astype(dtype[, casting, copy])

ceil()

Element-wise ceil.

conj([copy])

Element-wise complex conjugate.

copy()

Returns a copy of this matrix.

deg2rad()

Element-wise deg2rad.

diagonal([k])

Return the k-th diagonal of the matrix.

dot(other[, out])

Ordinary dot product.

expm1()

Element-wise expm1.

floor()

Element-wise floor.

get_data()

Get the data array of the CSR matrix.

get_indices()

Get the column indices array of the CSR matrix.

get_indptr()

Get the index pointer array of the CSR matrix.

has_canonical_format()

Determine whether the matrix is in canonical format.

has_sorted_indices()

Determine whether the matrix has sorted indices.

log1p()

Element-wise log1p.

multiply(other)

Point-wise multiplication by another matrix, vector, or scalar.

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.

nonzero()

Return the indices of the non-zero elements.

rad2deg()

Element-wise rad2deg.

rint()

Element-wise rint.

set_data(data)

Set the data array of the CSR matrix.

set_indices(indices)

Set the column indices array of the CSR matrix.

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.

todense([order, out])

Return a dense matrix representation of this matrix.

transpose([axes, copy])

Reverses the dimensions of the sparse matrix.

trunc()

Element-wise trunc.

Attributes

T

Transpose of the matrix

data

CSR format data array of the matrix

dim

Number of dimensions (always 2 for CSR arrays).

dtype

Data type of the array.

indices

CSR format index array of the matrix

indptr

CSR format index pointer array of the matrix

nnz

Number of stored values, including explicit zeros.

size

Number of stored values

shape

pos

format

crd

alias of csr_array