GeneralBrokenLines V03-01-02
gblpy
Classes | Functions | Variables
gblpy.gblnum Namespace Reference

Classes

class  BorderedBandMatrix
 (Symmetric) Bordered Band Matrix. More...
 

Functions

def decomposeBand ()
 
def solveBand (aRightHandSide)
 Solve linear equation system for band part. More...
 
def invertBand ()
 Invert band part. More...
 
def bandOfAVAT (anArray, aSymArray)
 Calculate band part of A*V*A^T. More...
 

Variables

 nBorder = self.__numBorder
 
 nCol = self.__numCol
 
 aSolution = np.empty(nBorder + nCol)
 
 auxMat = np.empty((nBorder, nCol))
 
 auxMatT = auxMat.T
 
 auxVec = aRightHandSide[:nBorder] - np.dot(auxMat, aRightHandSide[nBorder:])
 
 invBorder = np.linalg.inv(self.__border - np.dot(self.__mixed, auxMatT))
 
 __border
 
 __mixed
 
 __band
 

Detailed Description

Algebra for linear equation system with bordered band matrix.  

Created on Jul 27, 2011

@author: kleinwrt

Function Documentation

◆ bandOfAVAT()

def gblpy.gblnum.bandOfAVAT (   anArray,
  aSymArray 
)

Calculate band part of A*V*A^T.

Parameters
anArraymatrix A; matrix(float)
aSymArraysymmetric matrix V; matrix(float)
Returns
band part; matrix(float)

Definition at line 245 of file gblnum.py.

◆ decomposeBand()

def gblpy.gblnum.decomposeBand ( )

from Dbandmatrix.F (MillePede-II by V. Blobel, Univ. Hamburg)

(root free) Cholesky decomposition of band part: C=LDL^T

Note
band part (C) is replaced by its decomposition (D,L)

Definition at line 188 of file gblnum.py.

◆ invertBand()

def gblpy.gblnum.invertBand ( )

Invert band part.

Returns
band part; matrix(float)

Definition at line 226 of file gblnum.py.

◆ solveBand()

def gblpy.gblnum.solveBand (   aRightHandSide)

Solve linear equation system for band part.

Parameters
aRightHandSideright hand side; aRightHandSide vector(float)
Returns
solution; vector(float)

Definition at line 208 of file gblnum.py.

Variable Documentation

◆ __band

gblpy.gblnum.__band
private

Definition at line 280 of file gblnum.py.

◆ __border

gblpy.gblnum.__border
private

Definition at line 278 of file gblnum.py.

◆ __mixed

gblpy.gblnum.__mixed
private

Definition at line 279 of file gblnum.py.

◆ aSolution

def gblpy.gblnum.aSolution = np.empty(nBorder + nCol)

Definition at line 258 of file gblnum.py.

◆ auxMat

gblpy.gblnum.auxMat = np.empty((nBorder, nCol))

Definition at line 265 of file gblnum.py.

◆ auxMatT

gblpy.gblnum.auxMatT = auxMat.T

Definition at line 269 of file gblnum.py.

◆ auxVec

gblpy.gblnum.auxVec = aRightHandSide[:nBorder] - np.dot(auxMat, aRightHandSide[nBorder:])

Definition at line 271 of file gblnum.py.

◆ invBorder

gblpy.gblnum.invBorder = np.linalg.inv(self.__border - np.dot(self.__mixed, auxMatT))

Definition at line 272 of file gblnum.py.

◆ nBorder

gblpy.gblnum.nBorder = self.__numBorder

Definition at line 255 of file gblnum.py.

◆ nCol

gblpy.gblnum.nCol = self.__numCol

Definition at line 257 of file gblnum.py.