SimPEG.utils.speye#
- SimPEG.utils.speye(n)[source]#
Generate sparse identity matrix.
- Parameters
- n
int
The dimensions of the sparse identity matrix.
- n
- Returns
- (
n
,n
)scipy.sparse.csr_matrix
The sparse identity matrix.
- (
You are reading an old version of the documentation (v0.18.1). For the latest version see https://docs.simpeg.xyz/latest
Site Navigation
Section Navigation
SimPEG.potential_fields.gravity
)SimPEG.potential_fields.magnetics
)SimPEG.potential_fields
)
SimPEG.electromagnetics.static.induced_polarization
)
SimPEG.electromagnetics.static.resistivity
)SimPEG.electromagnetics.static.induced_polarization
)SimPEG.electromagnetics.frequency_domain
)SimPEG.electromagnetics.natural_source
)SimPEG.electromagnetics.time_domain
)SimPEG.electromagnetics.viscous_remanent_magnetization
)SimPEG.electromagnetics.utils
)SimPEG.electromagnetics.utils
)SimPEG.electromagnetics
)SimPEG.flow.richards
)SimPEG
)SimPEG.regularization
)SimPEG.utils
)Generate sparse identity matrix.
int
The dimensions of the sparse identity matrix.
n
, n
) scipy.sparse.csr_matrix
The sparse identity matrix.