Commit 8a084ad8 authored by Manuel Günther's avatar Manuel Günther

Removed the last occurrences of ..._ and ..._nocheck functions (now hopefully really)

parent 21c0c84a
Pipeline #10435 passed with stages
in 7 minutes and 54 seconds
......@@ -220,7 +220,7 @@ void bob::math::gsvd( blitz::Array<double,2>& A,
// A - Identity part
if (K>0){
blitz::Array<double,2> I (K,K); I= 0;
bob::math::eye_(I);
bob::math::eye(I);
C(blitz::Range(0, K-1), blitz::Range(0, K-1)) = I;
}
// B - diag(C) part. Here the C is LxL
......@@ -267,7 +267,7 @@ void bob::math::gsvd( blitz::Array<double,2>& A,
// A - Identity part
if (K>0){
blitz::Array<double,2> I (K,K); I = 0;
bob::math::eye_(I);
bob::math::eye(I);
C(blitz::Range(0, K-1), blitz::Range(0, K-1)) = I;
}
......@@ -290,7 +290,7 @@ void bob::math::gsvd( blitz::Array<double,2>& A,
// A - Identity part
if (K+L-M>0){
blitz::Array<double,2> I (K+L-M,K+L-M); I= 0;
bob::math::eye_(I);
bob::math::eye(I);
S(blitz::Range(M-K,L-1), blitz::Range(M,K+L-1)) = I;
}
......@@ -320,7 +320,7 @@ void bob::math::gsvd( blitz::Array<double,2>& A,
bob::math::swap_(V, iwork.get(), K, std::min(M,r));
//Computing X
bob::math::prod_(zeroR, Q, X);
bob::math::prod(zeroR, Q, X);
blitz::Array<double,2> Xt(
bob::core::array::ccopy(const_cast<blitz::Array<double,2>&>(X).transpose(1,0)));
X = Xt;
......
......@@ -283,7 +283,7 @@ void bob::math::linsolveCGSympos(const blitz::Array<double,2>& A,
while (n_iter < max_iter && delta > acc*acc*delta0)
{
// q = A*d
bob::math::prod_(A, d, q);
bob::math::prod(A, d, q);
// alpha = delta/(d'*q);
double alpha = delta / bob::math::dot(d,q);
......
......@@ -46,5 +46,5 @@ void bob::math::sqrtSymReal(const blitz::Array<double,2>& A,
blitz::firstIndex i;
blitz::secondIndex j;
tmp = V(i,j) * D(j); // tmp = V.sqrt(D)
bob::math::prod_(tmp, Vt, B); // B = V.sqrt(D).V^T
bob::math::prod(tmp, Vt, B); // B = V.sqrt(D).V^T
}
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment