190 return SubVH.
AddTo(*
this);
235 for (
integer i = nr; i > 0; i--) {
290 out << std::setw(16) << VH(i) << std::endl;
301 : bOwnsMemory(
false),
302 iMaxSize(iSize), iCurSize(iSize), pdVecm1(0)
308 if (pdTmpVec == NULL) {
322 : bOwnsMemory(
false),
323 iMaxSize(VH.iCurSize), iCurSize(VH.iCurSize), pdVecm1(0)
350 silent_cerr(
"Negative size!" << std::endl);
387 silent_cerr(
"Can't resize to " << iSize
389 "max size " <<
iMaxSize << std::endl);
396 silent_cerr(
"internal error!" << std::endl);
427 if (iMSize >= iSize) {
430 }
else if (iMSize < iSize) {
440 MyVectorHandler::IsValid(
void)
const
446 #ifdef DEBUG_MEMMANAGER
467 #if defined HAVE_MEMSET
virtual void Reset(void)=0
#define MBDYN_EXCEPT_ARGS
virtual void ResizeReset(integer)
virtual VectorHandler & operator*=(const doublereal &d)
virtual const doublereal & operator()(integer iRow) const =0
virtual VectorHandler & operator=(const VectorHandler &VH)
virtual void Sub(integer iRow, const Vec3 &v)
#define SAFEDELETEARR(pnt)
virtual doublereal InnerProd(const VectorHandler &VH) const
virtual VectorHandler & ScalarAddMul(const VectorHandler &VH, const VectorHandler &VH1, const doublereal &d)
virtual void Put(integer iRow, const Vec3 &v)
virtual doublereal Dot(void) const
virtual integer iGetSize(void) const =0
virtual doublereal Norm(void) const
virtual VectorHandler & operator-=(const VectorHandler &VH)
virtual ~VectorHandler(void)
virtual VectorHandler & operator+=(const VectorHandler &VH)
virtual VectorHandler & ScalarMul(const VectorHandler &VH, const doublereal &d)
virtual ~MyVectorHandler(void)
virtual void Resize(integer iSize)
virtual integer iGetSize(void) const
doublereal Dot(void) const
virtual VectorHandler & operator-=(const VectorHandler &VH)
virtual void Add(integer iRow, const Vec3 &v)
virtual VectorHandler & operator=(const VectorHandler &VH)
const doublereal & dGet(unsigned short int iRow) const
virtual VectorHandler & ScalarMul(const VectorHandler &VH, const doublereal &d)
MyVectorHandler(const MyVectorHandler &)
std::ostream & operator<<(std::ostream &out, const VectorHandler &VH)
virtual VectorHandler & AddTo(VectorHandler &VH) const =0
#define ASSERT(expression)
GradientExpression< UnaryExpr< FuncSqrt, Expr > > sqrt(const GradientExpression< Expr > &u)
virtual void Add(integer iRow, const Vec3 &v)
#define defaultMemoryManager
virtual VectorHandler & ScalarAddMul(const VectorHandler &VH, const doublereal &d)
virtual void Put(integer iRow, const Vec3 &v)
virtual VectorHandler & operator*=(const doublereal &d)
#define SAFENEWARR(pnt, item, sz)
virtual VectorHandler & operator+=(const VectorHandler &VH)
void Attach(integer iSize, doublereal *pd, integer iMSize=0)
virtual doublereal * pdGetVec(void) const
virtual void Resize(integer iNewSize)=0
virtual void Sub(integer iRow, const Vec3 &v)