numerical

Solvers

descent_numpy

A gradient descent optimisation solver.

devo_numpy

Call the Differential Evolution solver.

dr

Implementation of dynamic relaxation with RK integration scheme in pure Python.

dr_numpy

Implementation of the dynamic relaxation method for form findong and analysis of articulated networks of axial-force members.

fd_numpy

Implementation of the force density method to compute equilibrium of axial force networks.

ga

Genetic Algorithm optimisation.

moga

Multi-objective Genetic Algorithm optimisation.

pca_numpy

Compute the principle components of a set of data points.

topop_numpy

Topology optimisation in 2D.

Isolines

scalarfield_contours_numpy

Compute the contour lines of a scalarfield.

Linalg

nullspace

Calculates the nullspace of the input matrix A.

rank

Calculates the rank of the input matrix A.

dof

Returns the degrees-of-freedom of the input matrix A.

pivots

Identify the pivots of input matrix U.

nonpivots

Identify the non-pivots of input matrix U.

rref

Reduced row-echelon form of matrix A.

rref_sympy

Reduced row-echelon form of matrix A.

rref_matlab

Reduced row-echelon form of matrix A.

chofactor

Returns the Cholesky factorisation/decomposition matrix.

lufactorized

Return a function for solving a sparse linear system (LU decomposition).

uvw_lengths

Calculates the lengths and co-ordinate differences.

normrow

Calculates the 2-norm of each row of matrix A.

normalizerow

Normalise the rows of matrix A.

rot90

Rotate an array of vectors through 90 degrees around an array of axes.

solve_with_known

Solve a system of linear equations with part of solution known.

spsolve_with_known

Solve (sparse) a system of linear equations with part of solution known.

Matrices

adjacency_matrix

Creates a vertex adjacency matrix.

connectivity_matrix

Creates a connectivity matrix from a list of vertex index pairs.

degree_matrix

Creates a matrix representing vertex degrees.

equilibrium_matrix

Construct the equilibrium matrix of a structural system.

face_matrix

Creates a face-vertex adjacency matrix.

laplacian_matrix

Creates a laplacian matrix from a list of edge topologies.

mass_matrix

Creates a network's nodal mass matrix.

stiffness_matrix

Operators

curl

div

grad

Construct the gradient operator of a trianglular mesh.

Utilities

float_formatter

Formats float to truncated string.

set_array_print_precision

Changes float precision of float_formatter.

unset_array_print_precision

Unchanges float precision of float_formatter back to default.