MBDyn-1.7.3
|
#include <submat.h>
Classes | |
class | ErrResize |
Private Member Functions | |
SparseSubMatrixHandler (const SparseSubMatrixHandler &) | |
Private Attributes | |
bool | bOwnsMemory |
integer | iIntSize |
integer | iDoubleSize |
integer | iNumItems |
integer * | piRowm1 |
integer * | piColm1 |
doublereal * | pdMatm1 |
Friends | |
class | SparseMatrixHandler |
class | FullMatrixHandler |
class | NaiveMatrixHandler |
class | NaivePermMatrixHandler |
Additional Inherited Members | |
Public Types inherited from MatrixHandler | |
enum | Norm_t { NORM_1, NORM_INF } |
Protected Member Functions inherited from MatrixHandler | |
virtual MatrixHandler & | MatMatMul_base (void(MatrixHandler::*op)(integer iRow, integer iCol, const doublereal &dCoef), MatrixHandler &out, const MatrixHandler &in) const |
virtual MatrixHandler & | MatTMatMul_base (void(MatrixHandler::*op)(integer iRow, integer iCol, const doublereal &dCoef), MatrixHandler &out, const MatrixHandler &in) const |
virtual VectorHandler & | MatVecMul_base (void(VectorHandler::*op)(integer iRow, const doublereal &dCoef), VectorHandler &out, const VectorHandler &in) const |
virtual VectorHandler & | MatTVecMul_base (void(VectorHandler::*op)(integer iRow, const doublereal &dCoef), VectorHandler &out, const VectorHandler &in) const |
|
private |
SparseSubMatrixHandler::SparseSubMatrixHandler | ( | integer | iTmpInt, |
integer * | piTmpIndex, | ||
integer | iTmpDouble, | ||
doublereal * | pdTmpMat | ||
) |
SparseSubMatrixHandler::SparseSubMatrixHandler | ( | integer | iTmpInt | ) |
Definition at line 993 of file submat.cc.
References bOwnsMemory, iIntSize, iNumItems, pdMatm1, piColm1, piRowm1, and SAFENEWARR.
|
virtual |
Definition at line 1011 of file submat.cc.
References bOwnsMemory, pdMatm1, piRowm1, and SAFEDELETEARR.
|
virtual |
Implements SubMatrixHandler.
Reimplemented in VariableSubMatrixHandler.
Definition at line 1415 of file submat.cc.
References ASSERT, MatrixHandler::iGetNumCols(), MatrixHandler::iGetNumRows(), iNumItems, pdMatm1, piColm1, and piRowm1.
Referenced by VariableSubMatrixHandler::AddTo().
MatrixHandler & SparseSubMatrixHandler::AddTo | ( | FullMatrixHandler & | MH | ) | const |
Definition at line 1459 of file submat.cc.
References ASSERT, FullMatrixHandler::iGetNumCols(), FullMatrixHandler::iGetNumRows(), iNumItems, pdMatm1, piColm1, piRowm1, and FullMatrixHandler::ppdColsm1.
|
virtual |
Implements SubMatrixHandler.
Reimplemented in VariableSubMatrixHandler.
Definition at line 1437 of file submat.cc.
References ASSERT, MatrixHandler::iGetNumCols(), MatrixHandler::iGetNumRows(), iNumItems, pdMatm1, piColm1, and piRowm1.
Referenced by VariableSubMatrixHandler::AddToT().
MatrixHandler & SparseSubMatrixHandler::AddToT | ( | FullMatrixHandler & | MH | ) | const |
Definition at line 1483 of file submat.cc.
References ASSERT, FullMatrixHandler::iGetNumCols(), FullMatrixHandler::iGetNumRows(), iNumItems, pdMatm1, piColm1, piRowm1, and FullMatrixHandler::ppdColsm1.
void SparseSubMatrixHandler::Attach | ( | int | iNumEntr, |
doublereal * | pdTmpMat, | ||
integer * | piTmpIndx | ||
) |
Definition at line 1095 of file submat.cc.
References ASSERT, bOwnsMemory, iDoubleSize, iIntSize, iNumItems, pdMatm1, piColm1, piRowm1, and SAFEDELETEARR.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from MatrixHandler.
Definition at line 897 of file submat.h.
References ASSERT, iNumItems, and pdMatm1.
Referenced by testSubVecAss(), and testSubVecAssMatVec().
Implements SubMatrixHandler.
Definition at line 979 of file submat.h.
References ASSERT, iNumItems, and piColm1.
Referenced by testSubVecAss(), and testSubVecAssMatVec().
|
inlinevirtual |
|
inlinevirtual |
Implements MatrixHandler.
Definition at line 812 of file submat.h.
References iNumItems.
Referenced by testSubVecAss(), and testSubVecAssMatVec().
Implements SubMatrixHandler.
Definition at line 965 of file submat.h.
References ASSERT, iNumItems, and piRowm1.
Referenced by testSubVecAss(), and testSubVecAssMatVec().
|
inlinevirtual |
|
inlinevirtual |
Implements MatrixHandler.
Reimplemented in VariableSubMatrixHandler.
Definition at line 911 of file submat.h.
References ASSERT, iNumItems, and pdMatm1.
|
inlinevirtual |
Implements MatrixHandler.
Reimplemented in VariableSubMatrixHandler.
Definition at line 925 of file submat.h.
References ASSERT, iNumItems, and pdMatm1.
|
inlinevirtual |
void SparseSubMatrixHandler::PutCross | ( | integer | iSubIt, |
integer | iFirstRow, | ||
integer | iFirstCol, | ||
const Vec3 & | v | ||
) |
Definition at line 1236 of file submat.cc.
References ASSERT, iNumItems, pdMatm1, Vec3::pGetVec(), piColm1, piRowm1, V1, V2, and V3.
Referenced by InLineJoint::AssJac(), SphericalHingeJoint::AssJac(), InPlaneJoint::AssJac(), ContactJoint::AssJac(), AutomaticStructDispElem::AssJac(), InLineWithOffsetJoint::AssJac(), AngularVelocityJoint::AssJac(), DistanceJointWithOffset::AssJac(), PinJoint::AssJac(), InPlaneWithOffsetJoint::AssJac(), AutomaticStructElem::AssJac(), PlanePinJoint::AssJac(), AutomaticStructElem::AssMats(), and AngularVelocityJoint::InitialAssJac().
void SparseSubMatrixHandler::PutDiag | ( | integer | iSubIt, |
integer | iFirstRow, | ||
integer | iFirstCol, | ||
const Vec3 & | v | ||
) |
Definition at line 1125 of file submat.cc.
References ASSERT, iNumItems, pdMatm1, Vec3::pGetVec(), piColm1, piRowm1, V1, V2, and V3.
Referenced by SphericalHingeJoint::AssJac().
void SparseSubMatrixHandler::PutDiag | ( | integer | iSubIt, |
integer | iFirstRow, | ||
integer | iFirstCol, | ||
const doublereal & | d | ||
) |
|
inline |
Definition at line 997 of file submat.h.
References ASSERT, iNumItems, pdMatm1, piColm1, and piRowm1.
Referenced by DispMeasure::AssJac(), Accelerometer::AssJac(), LinearAccelerationJoint::AssJac(), GenelClamp::AssJac(), InLineJoint::AssJac(), LinearVelocityJoint::AssJac(), DistanceJoint::AssJac(), DrivenElem::AssJac(), InPlaneJoint::AssJac(), ContactJoint::AssJac(), SwashPlate::AssJac(), TikhonovRegularization::AssJac(), RotorTrimBase::AssJac(), TranslAccel::AssJac(), GenelDistance::AssJac(), AutomaticStructDispElem::AssJac(), AngularAccelerationJoint::AssJac(), AngularVelocityJoint::AssJac(), ModuleNonsmoothNode::AssJac(), InLineWithOffsetJoint::AssJac(), DynamicRegularization::AssJac(), DistanceJointWithOffset::AssJac(), RotAccel::AssJac(), PinJoint::AssJac(), InPlaneWithOffsetJoint::AssJac(), JacobianRegularization::AssJac(), AutomaticStructElem::AssJac(), ClampJoint::AssJac(), GenelMass::AssJac(), PlanePinJoint::AssJac(), DynamicInflowRotor::AssJac(), PetersHeRotor::AssJac(), DrivenElem::AssMats(), AutomaticStructDispElem::AssMats(), AutomaticStructElem::AssMats(), DistanceJoint::InitialAssJac(), LinearVelocityJoint::InitialAssJac(), TikhonovRegularization::InitialAssJac(), DynamicRegularization::InitialAssJac(), AngularVelocityJoint::InitialAssJac(), JacobianRegularization::InitialAssJac(), and ClampJoint::InitialAssJac().
void SparseSubMatrixHandler::PutMat3x3 | ( | integer | iSubIt, |
integer | iFirstRow, | ||
integer | iFirstCol, | ||
const Mat3x3 & | m | ||
) |
Definition at line 1331 of file submat.cc.
References ASSERT, iNumItems, M11, M12, M13, M21, M22, M23, M31, M32, M33, pdMatm1, Mat3x3::pGetMat(), piColm1, and piRowm1.
Referenced by InLineJoint::AssJac(), SphericalHingeJoint::AssJac(), InPlaneJoint::AssJac(), InLineWithOffsetJoint::AssJac(), DistanceJointWithOffset::AssJac(), PinJoint::AssJac(), InPlaneWithOffsetJoint::AssJac(), and PlanePinJoint::AssJac().
|
virtual |
Implements MatrixHandler.
Definition at line 1307 of file submat.cc.
References ASSERT, iNumItems, and pdMatm1.
Referenced by ResizeReset().
Implements SubMatrixHandler.
Definition at line 1053 of file submat.cc.
References ASSERT, iDoubleSize, iIntSize, iNumItems, MBDYN_EXCEPT_ARGS, and piRowm1.
Referenced by LinearAccelerationJoint::AssJac(), GenelClamp::AssJac(), ContactJoint::AssJac(), RotorTrimBase::AssJac(), AngularAccelerationJoint::AssJac(), and ResizeReset().
Implements SubMatrixHandler.
Definition at line 1084 of file submat.cc.
References Reset(), and Resize().
Referenced by DispMeasure::AssJac(), Accelerometer::AssJac(), InLineJoint::AssJac(), LinearVelocityJoint::AssJac(), DistanceJoint::AssJac(), DrivenElem::AssJac(), SphericalHingeJoint::AssJac(), InPlaneJoint::AssJac(), SwashPlate::AssJac(), TikhonovRegularization::AssJac(), TranslAccel::AssJac(), GenelDistance::AssJac(), AutomaticStructDispElem::AssJac(), ModuleNonsmoothNode::AssJac(), InLineWithOffsetJoint::AssJac(), AngularVelocityJoint::AssJac(), DynamicRegularization::AssJac(), DistanceJointWithOffset::AssJac(), RotAccel::AssJac(), PinJoint::AssJac(), InPlaneWithOffsetJoint::AssJac(), JacobianRegularization::AssJac(), AutomaticStructElem::AssJac(), ClampJoint::AssJac(), GenelMass::AssJac(), PlanePinJoint::AssJac(), DynamicInflowRotor::AssJac(), PetersHeRotor::AssJac(), DrivenElem::AssMats(), AutomaticStructDispElem::AssMats(), AutomaticStructElem::AssMats(), DistanceJoint::InitialAssJac(), LinearVelocityJoint::InitialAssJac(), TikhonovRegularization::InitialAssJac(), DynamicRegularization::InitialAssJac(), AngularVelocityJoint::InitialAssJac(), JacobianRegularization::InitialAssJac(), and ClampJoint::InitialAssJac().
|
virtual |
Implements SubMatrixHandler.
Reimplemented in VariableSubMatrixHandler.
Definition at line 1507 of file submat.cc.
References ASSERT, MatrixHandler::iGetNumCols(), MatrixHandler::iGetNumRows(), iNumItems, pdMatm1, piColm1, and piRowm1.
Referenced by VariableSubMatrixHandler::SubFrom().
MatrixHandler & SparseSubMatrixHandler::SubFrom | ( | FullMatrixHandler & | MH | ) | const |
Definition at line 1551 of file submat.cc.
References ASSERT, FullMatrixHandler::iGetNumCols(), FullMatrixHandler::iGetNumRows(), iNumItems, pdMatm1, piColm1, piRowm1, and FullMatrixHandler::ppdColsm1.
|
virtual |
Implements SubMatrixHandler.
Reimplemented in VariableSubMatrixHandler.
Definition at line 1529 of file submat.cc.
References ASSERT, MatrixHandler::iGetNumCols(), MatrixHandler::iGetNumRows(), iNumItems, pdMatm1, piColm1, and piRowm1.
Referenced by VariableSubMatrixHandler::SubFromT().
MatrixHandler & SparseSubMatrixHandler::SubFromT | ( | FullMatrixHandler & | MH | ) | const |
Definition at line 1574 of file submat.cc.
References ASSERT, FullMatrixHandler::iGetNumCols(), FullMatrixHandler::iGetNumRows(), iNumItems, pdMatm1, piColm1, piRowm1, and FullMatrixHandler::ppdColsm1.
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 759 of file submat.h.
Referenced by Attach(), SparseSubMatrixHandler(), and ~SparseSubMatrixHandler().
|
private |
|
private |
Definition at line 761 of file submat.h.
Referenced by Attach(), Resize(), and SparseSubMatrixHandler().
|
private |
Definition at line 765 of file submat.h.
Referenced by AddTo(), AddToT(), Attach(), DecCoef(), dGetCoef(), iGetColIndex(), iGetNumRows(), iGetRowIndex(), IncCoef(), operator()(), NaiveMatrixHandler::operator+=(), NaiveMatrixHandler::operator-=(), PutCoef(), PutColIndex(), PutCross(), PutDiag(), PutItem(), PutMat3x3(), PutRowIndex(), Reset(), Resize(), SparseSubMatrixHandler(), SubFrom(), and SubFromT().
|
private |
Definition at line 772 of file submat.h.
Referenced by AddTo(), AddToT(), Attach(), DecCoef(), dGetCoef(), IncCoef(), operator()(), NaiveMatrixHandler::operator+=(), NaiveMatrixHandler::operator-=(), PutCoef(), PutCross(), PutDiag(), PutItem(), PutMat3x3(), Reset(), SparseSubMatrixHandler(), SubFrom(), SubFromT(), and ~SparseSubMatrixHandler().
|
private |
Definition at line 770 of file submat.h.
Referenced by AddTo(), AddToT(), Attach(), iGetColIndex(), NaiveMatrixHandler::operator+=(), NaiveMatrixHandler::operator-=(), PutColIndex(), PutCross(), PutDiag(), PutItem(), PutMat3x3(), SparseSubMatrixHandler(), SubFrom(), and SubFromT().
|
private |
Definition at line 768 of file submat.h.
Referenced by AddTo(), AddToT(), Attach(), iGetRowIndex(), NaiveMatrixHandler::operator+=(), NaiveMatrixHandler::operator-=(), PutCross(), PutDiag(), PutItem(), PutMat3x3(), PutRowIndex(), Resize(), SparseSubMatrixHandler(), SubFrom(), SubFromT(), and ~SparseSubMatrixHandler().