MBDyn-1.7.3
|
#include <submat.h>
Public Member Functions | |
MySubVectorHandler (integer iSize) | |
MySubVectorHandler (integer iSize, integer *piTmpRow, doublereal *pdTmpVec) | |
virtual | ~MySubVectorHandler (void) |
virtual doublereal * | pdGetVec (void) const |
virtual integer | iGetSize (void) const |
virtual void | Resize (integer iSize) |
virtual void | Reset (void) |
void | Detach (void) |
void | Attach (integer iSize, doublereal *pd, integer *pi, integer iMSize=0) |
virtual void | PutCoef (integer i, const doublereal &d) |
virtual void | IncCoef (integer i, const doublereal &d) |
virtual void | DecCoef (integer i, const doublereal &d) |
virtual const doublereal & | dGetCoef (integer i) const |
virtual const doublereal & | operator() (integer iRow) const |
virtual doublereal & | operator() (integer iRow) |
virtual void | PutRowIndex (integer iSubRow, integer iRow) |
virtual integer | iGetRowIndex (integer iSubRow) const |
virtual void | PutItem (integer iSubRow, integer iRow, const doublereal &dCoef) |
virtual VectorHandler & | AddTo (VectorHandler &VH) const |
virtual VectorHandler & | AddTo (MyVectorHandler &VH) const |
Public Member Functions inherited from SubVectorHandler | |
virtual | ~SubVectorHandler (void) |
Public Member Functions inherited from VectorHandler | |
virtual | ~VectorHandler (void) |
virtual void | ResizeReset (integer) |
virtual VectorHandler & | operator+= (const SubVectorHandler &SubVH) |
virtual doublereal | Norm (void) const |
virtual doublereal | InnerProd (const VectorHandler &VH) const |
Public Member Functions inherited from MyVectorHandler | |
MyVectorHandler (const MyVectorHandler &) | |
MyVectorHandler (integer iSize=0, doublereal *pdTmpVec=NULL) | |
virtual | ~MyVectorHandler (void) |
void | Detach (void) |
void | Attach (integer iSize, doublereal *pd, integer iMSize=0) |
virtual void | Add (integer iRow, const Vec3 &v) |
virtual void | Sub (integer iRow, const Vec3 &v) |
virtual void | Put (integer iRow, const Vec3 &v) |
virtual VectorHandler & | ScalarAddMul (const VectorHandler &VH, const VectorHandler &VH1, const doublereal &d) |
virtual VectorHandler & | ScalarAddMul (const VectorHandler &VH, const doublereal &d) |
virtual VectorHandler & | ScalarMul (const VectorHandler &VH, const doublereal &d) |
virtual VectorHandler & | operator+= (const VectorHandler &VH) |
virtual MyVectorHandler & | operator+= (const MyVectorHandler &VH) |
virtual VectorHandler & | operator-= (const VectorHandler &VH) |
virtual VectorHandler & | operator*= (const doublereal &d) |
virtual MyVectorHandler & | operator-= (const MyVectorHandler &VH) |
virtual VectorHandler & | operator= (const VectorHandler &VH) |
virtual MyVectorHandler & | operator= (const MyVectorHandler &VH) |
doublereal | Dot (void) const |
Protected Attributes | |
integer * | piRowm1 |
Protected Attributes inherited from MyVectorHandler | |
bool | bOwnsMemory |
integer | iMaxSize |
integer | iCurSize |
doublereal * | pdVecm1 |
Private Member Functions | |
MySubVectorHandler (const MySubVectorHandler &) | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const SubVectorHandler &v) |
|
private |
MySubVectorHandler::MySubVectorHandler | ( | integer | iSize | ) |
MySubVectorHandler::MySubVectorHandler | ( | integer | iSize, |
integer * | piTmpRow, | ||
doublereal * | pdTmpVec | ||
) |
Definition at line 1605 of file submat.cc.
References ASSERT, MyVectorHandler::bOwnsMemory, MBDYN_EXCEPT_ARGS, piRowm1, and SAFENEWARR.
|
inlinevirtual |
|
virtual |
Implements SubVectorHandler.
Definition at line 1747 of file submat.cc.
References iGetSize(), VectorHandler::IncCoef(), MyVectorHandler::pdVecm1, and piRowm1.
|
virtual |
Definition at line 1766 of file submat.cc.
References iGetSize(), MyVectorHandler::pdGetVec(), MyVectorHandler::pdVecm1, and piRowm1.
void MySubVectorHandler::Attach | ( | integer | iSize, |
doublereal * | pd, | ||
integer * | pi, | ||
integer | iMSize = 0 |
||
) |
Definition at line 1714 of file submat.cc.
References MyVectorHandler::bOwnsMemory, Detach(), MyVectorHandler::iCurSize, MyVectorHandler::iMaxSize, MyVectorHandler::pdVecm1, and piRowm1.
|
inlinevirtual |
Reimplemented from MyVectorHandler.
Definition at line 1581 of file submat.h.
References MyVectorHandler::DecCoef().
void MySubVectorHandler::Detach | ( | void | ) |
Definition at line 1694 of file submat.cc.
References MyVectorHandler::bOwnsMemory, MyVectorHandler::iCurSize, MyVectorHandler::iMaxSize, MyVectorHandler::pdVecm1, piRowm1, and SAFEDELETEARR.
Referenced by Attach(), and ~MySubVectorHandler().
|
inlinevirtual |
Reimplemented from MyVectorHandler.
Definition at line 1588 of file submat.h.
References MyVectorHandler::dGetCoef().
Referenced by Modal::AssRes(), testSubVecAss(), and testSubVecAssMatVec().
Implements SubVectorHandler.
Definition at line 1645 of file submat.h.
References ASSERT, MyVectorHandler::iCurSize, and piRowm1.
Referenced by Modal::AssRes(), and testSubVecAssMatVec().
|
inlinevirtual |
Reimplemented from MyVectorHandler.
Definition at line 1523 of file submat.h.
References MyVectorHandler::iGetSize().
Referenced by AddTo(), Modal::AssRes(), testSubVecAss(), and testSubVecAssMatVec().
|
inlinevirtual |
Reimplemented from MyVectorHandler.
Definition at line 1574 of file submat.h.
References MyVectorHandler::IncCoef().
|
inlinevirtual |
Reimplemented from MyVectorHandler.
Definition at line 1592 of file submat.h.
References MyVectorHandler::operator()().
|
inlinevirtual |
Reimplemented from MyVectorHandler.
Definition at line 1596 of file submat.h.
References MyVectorHandler::operator()().
|
inlinevirtual |
Reimplemented from MyVectorHandler.
Definition at line 1516 of file submat.h.
References MyVectorHandler::pdGetVec().
|
inlinevirtual |
Reimplemented from MyVectorHandler.
Definition at line 1567 of file submat.h.
References MyVectorHandler::PutCoef().
|
inlinevirtual |
Reimplemented from SubVectorHandler.
Definition at line 1656 of file submat.h.
References ASSERT, MyVectorHandler::iCurSize, MyVectorHandler::pdVecm1, and piRowm1.
Implements SubVectorHandler.
Definition at line 1633 of file submat.h.
References ASSERT, MyVectorHandler::iCurSize, and piRowm1.
|
inlinevirtual |
Reimplemented from MyVectorHandler.
Definition at line 1537 of file submat.h.
References MyVectorHandler::Reset().
Referenced by Modal::AssRes().
|
virtual |
Reimplemented from MyVectorHandler.
Definition at line 1628 of file submat.cc.
References ASSERT, MyVectorHandler::bOwnsMemory, MyVectorHandler::iCurSize, MyVectorHandler::iMaxSize, MBDYN_EXCEPT_ARGS, MyVectorHandler::pdVecm1, piRowm1, SAFEDELETEARR, and SAFENEWARR.
Referenced by Modal::AssRes(), and MySubVectorHandler().
|
friend |
|
protected |
Definition at line 1474 of file submat.h.
Referenced by AddTo(), Attach(), Detach(), iGetRowIndex(), MySubVectorHandler(), PutItem(), PutRowIndex(), and Resize().