61 Mat3x3(0., 0., 0., 0., 0., 0., 0., 0., 0.));
68 #ifdef MBDYN_SINGLE_PRECISION
135 return v.
Write(out, sFill);
162 << vec.
dGet(1) <<
" "
163 << vec.
dGet(2) <<
" "
164 << vec.
dGet(3) <<
" "
165 << mom.
dGet(1) <<
" "
166 << mom.
dGet(2) <<
" "
173 return v.
Write(out, sFill);
177 MatExp::Write(std::ostream& out,
const char* sFill,
const char* sFill2)
const
179 char* sF2 = (
char*)sFill2;
180 if (sFill2 == NULL) {
229 << vec.
dGet(1, 1) <<
" "
230 << vec.
dGet(1, 2) <<
" "
231 << vec.
dGet(1, 3) <<
" "
232 << mom.
dGet(1, 1) <<
" "
233 << mom.
dGet(1, 2) <<
" "
234 << mom.
dGet(1, 3) << std::endl
235 << vec.
dGet(2, 1) <<
" "
236 << vec.
dGet(2, 2) <<
" "
237 << vec.
dGet(2, 3) <<
" "
238 << mom.
dGet(2, 1) <<
" "
239 << mom.
dGet(2, 2) <<
" "
240 << mom.
dGet(2, 3) << std::endl
241 << vec.
dGet(3, 1) <<
" "
242 << vec.
dGet(3, 2) <<
" "
243 << vec.
dGet(3, 3) <<
" "
244 << mom.
dGet(3, 1) <<
" "
245 << mom.
dGet(3, 2) <<
" "
246 << mom.
dGet(3, 3) << std::endl
250 << vec.
dGet(1, 1) <<
" "
251 << vec.
dGet(1, 2) <<
" "
252 << vec.
dGet(1, 3) << std::endl
256 << vec.
dGet(2, 1) <<
" "
257 << vec.
dGet(2, 2) <<
" "
258 << vec.
dGet(2, 3) << std::endl
262 << vec.
dGet(3, 1) <<
" "
263 << vec.
dGet(3, 2) <<
" "
268 Write(std::ostream& out,
const MatExp& m,
const char* sFill,
const char* sFill2)
270 return m.
Write(out, sFill, sFill2);
const Vec3 & GetVec(void) const
Mat3x3 MultRMRt(const Mat3x3 &m, const Mat3x3 &R)
Mat3x3 MultRM(const Mat3x3 &m, const Mat3x3 &R)
ScalExp cos(const ScalExp &d)
const Mat3x3 & GetVec(void) const
Vec3 MultRV(const Vec3 &v, const Mat3x3 &R)
const doublereal & dGet(unsigned short int iRow, unsigned short int iCol) const
Mat3x3 MultMRt(const Mat3x3 &m, const Mat3x3 &R)
ScalExp pow(const ScalExp &d, const doublereal &e)
std::ostream & Write(std::ostream &out, const ScalExp &v, const char *sFill)
const Vec3 & GetMom(void) const
ScalExp sin(const ScalExp &d)
std::ostream & Write(std::ostream &out, const char *sFill=" ") const
std::ostream & Write(std::ostream &out, const char *sFill=" ") const
ScalExp exp(const ScalExp &d)
const doublereal & GetVec(void) const
std::ostream & operator<<(std::ostream &out, const ScalExp &v)
const doublereal & GetMom(void) const
VecExp operator-(const VecExp &v)
const VecExp ZeroExp(0., 0., 0., 0., 0., 0.)
const doublereal & dGet(unsigned short int iRow) const
Mat3x3 Transpose(void) const
const MatExp EyeExp(Mat3x3(1., 0., 0., 0., 1., 0., 0., 0., 1.), Mat3x3(0., 0., 0., 0., 0., 0., 0., 0., 0.))
std::ostream & Write(std::ostream &out, const char *sFill=" ", const char *sFill2=NULL) const
ScalExp sqrt(const ScalExp &d)
const Mat3x3 & GetMom(void) const