34 static const double HMatrixContent[5] = {0, 0, 0, 1, 0};
36 static const TMatrixD HMatrix(1,5, HMatrixContent);
43 assert (v.GetNrows() == 5);
45 double* retValArray =(
double *)alloca(
sizeof(
double) * 1);
47 retValArray[0] =
v(3);
49 return TVectorD(1, retValArray);
54 assert (M.GetNcols() == 5);
56 double* retValArray =(
double *)alloca(
sizeof(
double) * 5);
57 const double* MatArray = M.GetMatrixArray();
59 for (
unsigned int i=0;
i<5; ++
i) {
60 retValArray[
i] = MatArray[
i*5 + 3];
63 return TMatrixD(5,1, retValArray);
68 assert (M.GetNcols() == 5);
70 double* retValArray =(
double *)alloca(
sizeof(
double) * M.GetNrows());
71 const double* MatArray = M.GetMatrixArray();
73 for (
int i = 0;
i < M.GetNrows(); ++
i) {
74 retValArray[
i] = MatArray[
i*5 + 3];
77 return TMatrixD(M.GetNrows(),1, retValArray);
82 assert (M.GetNrows() == 5);