Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

sdynpy.Matrix

Signature

class sdynpy.Matrix(shape, nrows, ncols, is_complex=False, buffer=None, offset=0, strides=None, order=None)

Matrix with degrees of freedom stored for better bookkeeping.

Use the matrix helper function to create the object.

Attributes

NameSummary
coordinateReturns the full coordinate array for the matrix
H
num_coordinate_columnsReturns the number of coordinate columns
num_coordinate_rowsReturns the number of coordinate rows
TView of the transposed array.

coordinate

Returns the full coordinate array for the matrix

H

num_coordinate_columns

Returns the number of coordinate columns

num_coordinate_rows

Returns the number of coordinate rows

T

Methods

NameSummary
argsort_coordinateReturns indices used to sort the coordinates on the rows and columns
data_dtypeData type of the underlying numpy structured array for real shapes
eyeCreates an identity matrix with the specified coordinates
pinvCreates the pseudoinverse of the matrix
plotPlots the matrix with coordinates labeled
sort_coordinateReturns a copy of the Matrix with coordinate sorted

argsort_coordinate

def sdynpy.Matrix.argsort_coordinate(self)

Returns indices used to sort the coordinates on the rows and columns

Returns

data_dtype

def sdynpy.Matrix.data_dtype(rows, columns, is_complex=False)

Data type of the underlying numpy structured array for real shapes

Parameters

Returns

eye

def sdynpy.Matrix.eye(cls, row_coordinate, column_coordinate=None)

Creates an identity matrix with the specified coordinates

Parameters

Returns

pinv

def sdynpy.Matrix.pinv(self, **pinv_params)

Creates the pseudoinverse of the matrix

Parameters

Returns

plot

def sdynpy.Matrix.plot(self, ax=None, show_colorbar=True, **imshow_args)

Plots the matrix with coordinates labeled

Parameters

Raises

sort_coordinate

def sdynpy.Matrix.sort_coordinate(self)

Returns a copy of the Matrix with coordinate sorted

Returns