Skip to content
Snippets Groups Projects
Commit 8baa5c32 authored by Mark Jenkinson's avatar Mark Jenkinson
Browse files

Changed getdiag() to diag()

parent b07ef123
No related branches found
No related tags found
No related merge requests found
......@@ -194,13 +194,15 @@ namespace SIGPROC {
// e is the estimate of the variance of the timeseries, sigma^2
Matrix varmat = (r.Columns(batch_pos, numTS).t()*r.Columns(batch_pos, numTS)/Trace(RV))*var_on_e;
ColumnVector vartemp;
getdiag(vartemp, varmat);
//getdiag(vartemp, varmat); // obsolete fn
vartemp = diag(varmat); // MJ NOTE: new fn
var.Rows(batch_pos, numTS) = vartemp;
}
else
{
varmatfull = (r.Columns(batch_pos, batch_pos+batch_size-1).t()*r.Columns(batch_pos, batch_pos+batch_size-1)/Trace(RV))*var_on_e;
getdiag(vartempfull, varmatfull);
//getdiag(vartempfull, varmatfull); // obsolete fn
vartempfull = diag(varmatfull); // MJ NOTE: new fn
var.Rows(batch_pos, batch_pos+batch_size-1) = vartempfull;
}
batch_pos += batch_size;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment