Changeset c6d5b9e in tol


Ignore:
Timestamp:
Nov 24, 2008, 1:00:38 PM (18 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
50d9df2
Parents:
a4e4255
Message:

Using MatReadDimensions to avoid full reading of too large matrices

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@218 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/math/stat/models/bayesian/bysMcmc/_inference_functions.tol

    ra4e4255 rc6d5b9e  
    475475////////////////////////////////////////////////////////////////////////////
    476476{
    477   Matrix aux = MatReadRows(path, burnin, length*thinning);
    478   SubRow(aux,Range(1,length*thinning,thinning))
     477  MatReadRows(path, burnin, length, thinning)
    479478};
    480479
    … …  
    484483/////////////////////////////////////////////////////////////////////////////
    485484{
    486   Matrix mcmc.full = MatReadFile(path);
    487   Real max = (Rows(mcmc.full)-burnin)/thinning;
     485  Set mcmc.dim = MatReadDimensions(path);
     486  Real max = (mcmc.dim::Rows-burnin)/thinning;
    488487  Real length = Min(max,length_);
    489488  Matrix mcmc_ = BysMcmc::Inference::loadMcmc(path, burnin, length, thinning);
Note: See TracChangeset for help on using the changeset viewer.