MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / inverse

Method inverse

SRC/element/PFEMElement/PFEMElement2D.cpp:591–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589}
590
591void
592PFEMElement2D::inverse(Matrix& mat) const
593{
594 double tmp = mat(0,0);
595 mat(0,0) = mat(1,1);
596 mat(1,1) = tmp;
597 mat(0,1) = -mat(0,1);
598 mat(1,0) = -mat(1,0);
599
600 tmp = mat(0,0)*mat(1,1)-mat(1,0)*mat(0,1);
601
602 mat /= tmp;
603}

Callers 1

updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected