correct vector initialization within Eigen implemetation; delete useless asserts
This commit is contained in:
parent
f405973736
commit
b0cbdf41ba
1 changed files with 6 additions and 3 deletions
|
|
@ -194,16 +194,19 @@ public:
|
||||||
// Be sure that the symmetric matrix got the good size
|
// Be sure that the symmetric matrix got the good size
|
||||||
assert(var.innerSize() == s_size);
|
assert(var.innerSize() == s_size);
|
||||||
assert(var.outerSize() == s_size);
|
assert(var.outerSize() == s_size);
|
||||||
assert(var.innerSize() == _varcovar.innerSize());
|
|
||||||
assert(var.outerSize() == _varcovar.outerSize());
|
|
||||||
|
|
||||||
_varcovar = var / p_size;
|
_varcovar = var / p_size;
|
||||||
|
|
||||||
|
// assert(var.innerSize() == _varcovar.innerSize());
|
||||||
|
// assert(var.outerSize() == _varcovar.outerSize());
|
||||||
|
|
||||||
|
|
||||||
// _mean.resize(s_size); // FIXME: check if it is really used because of the assignation below
|
// _mean.resize(s_size); // FIXME: check if it is really used because of the assignation below
|
||||||
|
|
||||||
// unit vector
|
// unit vector
|
||||||
// ublas::scalar_vector< AtomType > u( p_size, 1 );
|
// ublas::scalar_vector< AtomType > u( p_size, 1 );
|
||||||
Vector u( p_size, 1);
|
Vector u( p_size);
|
||||||
|
u = Vector::Constant(p_size, 1);
|
||||||
|
|
||||||
// sum over columns
|
// sum over columns
|
||||||
// _mean = ublas::prod( ublas::trans( sample ), u );
|
// _mean = ublas::prod( ublas::trans( sample ), u );
|
||||||
|
|
|
||||||
Reference in a new issue