MatrixΒΆ

Here the main matrix class engine definition.

cmatrix.Matrix.ij_2_ind

Convert (i,j) values to raw ribbon index.

cmatrix.Matrix.ind_2_ij

Convert ribbon index to (i,j) values.

cmatrix.Matrix.size_r

Getters : size of rows

cmatrix.Matrix.size_c

Getters : size of columns

cmatrix.Matrix.get_ij

Getters : get the (i,j) value

cmatrix.Matrix.set_ij

Setters : set the (i,j) value

cmatrix.Matrix.get_ind

Getters : get the index value from raw data vector

cmatrix.Matrix.same_size

Assertion : same size

cmatrix.Matrix.mult_compatible

Assertion : multiplication compatibility

cmatrix.Matrix.Print

Screen Printer

cmatrix.Matrix.clone

Object Cloner.

cmatrix.Matrix.xtract_sub_matrix

Extract the [from_ij] [to_ij] matrix in the self object (if exists)

cmatrix.Matrix.insert_sub_matrix

Insert the givven sub-matrix in the self matrix if and only if to_insert is smaller.

cmatrix.Matrix.find_sub_matrix

Search the sub)matrix in the self matrix.

cmatrix.Matrix.op

Standard operators factorization

cmatrix.Matrix.sqrt

Compute the self sqrt matrix Not Fixed : Do Not Use

cmatrix.Matrix.converter

Convert the self matrix values into a string base converted values.

cmatrix.Matrix.mand

Realize a big and between self matrix and mat

cmatrix.Matrix.mor

Realize a big or between self matrix and mat

cmatrix.Matrix.mnand

Realize a big nand between self matrix and mat

cmatrix.Matrix.mnor

Realize a big nor between self matrix and mat

cmatrix.Matrix.mxor

Realize a big xor between self matrix and mat

cmatrix.Matrix.column

Xtract the ind column of the self Matrix object.

cmatrix.Matrix.line

Extract the ind line of the self Matrix object.

cmatrix.Matrix.swap_col

Swap the two given columns of the self matrix object from the given a and b index

cmatrix.Matrix.swap_line

Swap the two given lines of the self matrix object from the given a and b index

cmatrix.Matrix.mirror_mat

Create the mirror matrix from the self matrix object from the given mode argument

cmatrix.Matrix.nth_diagonal

Get the nth diagonal from the current matrix and given n as a list.

cmatrix.Matrix.get_coef

Return the coefficient to mean a filter mask

cmatrix.Matrix.mul_coef

cmatrix.Matrix.resize

Resize the self matrix from given float ratio.

cmatrix.Matrix.accumulate

Sum accumulator function ruled by mode argument.

cmatrix.Matrix.square

Test the square propriety of the matrix.

cmatrix.Matrix.transpose

Transpose the self Matrix.

cmatrix.Matrix.permut

Do the permutation of the self matrix with the given signed permutation.

cmatrix.Matrix.triangle

Get the triangle (respectively up or down) of the self matrix

cmatrix.Matrix.strassen

Compute the multiply using the Strassen algorithm to get faster multiplication(not necessary on small matrix).

cmatrix.Matrix.tensorial_product

Compute the tensorial product between self Matrix and the mat argument.

cmatrix.Matrix.trace

Trace the current matrix

cmatrix.Matrix.convolve

Convolve filtering data matrix using the given mask.

cmatrix.Matrix.convolve_signal

Convolve self object (as a 1D signal) with given convolution mask (also as 1D signal)

cmatrix.Matrix.AtoB

Compute the meaned matrix between self and given mat.

cmatrix.Matrix.gap

Compute the absolute gap between self matrix and given mat.

cmatrix.Matrix.map

Map a function (as parameter) to each element of the self matrix

cmatrix.Matrix.normalize

Normalize the self matrix.

cmatrix.Matrix.UX_B

Compute the UX=B system wher U is an upper matrix and B the result matrix.

cmatrix.Matrix.LX_B

Compute the LX=B system wher L is a lower matrix and B the result matrix.

cmatrix.Matrix.replace_zeros

Utilitary function to replace the null values with 1.

cmatrix.Matrix.LU

Realize a LU decomposition from the self Matrix.

cmatrix.Matrix.det

Compute the associated determinant of the self matrix.

cmatrix.Matrix.orthogonal

Boolean test to verify orthogonality

cmatrix.Matrix.symmetric

Boolean test to verify symmetricity

cmatrix.Matrix.hermitian

Boolean test to verify if the matrix is hermitian

cmatrix.Matrix.reversal

Boolean test to verify the reversability

cmatrix.Matrix.count_zero

Count the number of zeros in the self Matrix

cmatrix.Matrix.nilpotent

Boolean test to verify the nilpotence.

cmatrix.Matrix.diagonal

Test if the matrix have a diagonal profile.

cmatrix.Matrix.triangular

Test if the matrix have a triangulare profile.

cmatrix.Matrix.read_from_file

Read and convert a matrix from extern file.

cmatrix.Matrix.write_in_file

Write the current object to file (re-openable in any other Matrix object instance)

cmatrix.Matrix.pack

Pack the current matrix to 64bit regular float.