Skip to content

DREAM crashes if nChains = 1 #376

@alexhroom

Description

@alexhroom

To reproduce: I found this on two different projects, but try standardLayersDSPCScript with procedure "dream" and nChains = 1.

I get the following Coder error:

Warning: A variable-size array input to FIND reduced to a row vector at run time. In code generation, the outputs of FIND are column vectors. 
> In RAT (line 75)
In standardLayersDSPCScript (line 111) 
Warning: A variable-size array input to FIND reduced to a row vector at run time. In code generation, the outputs of FIND are column vectors. 
> In RAT (line 75)
In standardLayersDSPCScript (line 111) 
The orientations of the vectors supplied at run time are incompatible with the variable-size inputs that were specified at code generation time. To perform this indexing
operation, either force the run-time input vectors to have the same orientation or regenerate the code specifying fixed-sized inputs.
More information

Error in coder.internal.indexShapeCheck>errOrWarnIf (line 122)
    coder.internal.errorIf(c,varargin{:});
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in coder.internal.indexShapeCheck (line 33)
            errOrWarnIf(c,'Coder:FE:PotentialMatrixMatrix_MV');
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in boundaryHandling (line 27)
% Bound
^
Error in initializeDREAM (line 46)
% Calculate the log-likelihood and log-prior of x (fx)
^
Error in ratDREAM (line 152)


Error in runDREAM (line 97)


Error in RATMain (line 50)
                [problemStruct,results,bayesResults] = runDREAM(problemStruct,problemLimits,controls);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in RAT (line 75)
[problemStruct,result,bayesResults] = RATMain_mex(problemStruct,problemLimits,controls);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in standardLayersDSPCScript (line 111)
[problem,results] = RAT(problem,controls);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions