MatrixBerryCore
createparamlist.m
Go to the documentation of this file.
1 function SParam=createparamlist(mapFactory,formatList,isHashedVec)
2 import mxberry.core.cont.*;
3 import mxberry.core.cont.test.*;
4 %
5 %
6 nHashVals=numel(isHashedVec);
7 %
8 nFormats=numel(formatList);
9 argList=cell(nFormats,nHashVals);
10 markerList=cell(nFormats,nHashVals);
11 %
12 for iFormat=1:nFormats
13  for iVal=1:nHashVals
14  isHashed=isHashedVec(iVal);
15  %
16  argList{iFormat,iVal}={mapFactory,...
17  'storageFormat',formatList{iFormat},...
18  'useHashedKeys',isHashed};
19  %
20  %
21  markerList{iFormat,iVal}=[formatList{iFormat},...
22  sprintf('_useHashedKeys%d',isHashed)];
23  end
24 end
25 argList=argList(:).';
26 markerList=markerList(:).';
27 defCMat=[markerList;num2cell(argList)];
28 SParam=struct(defCMat{:});
function num2cell(in inpArray, in varargin)
NUM2CELL is an extension of Matlab built-in function "num2cell" designed to work correctly with empty...
function createparamlist(in mapFactory, in formatList, in isHashedVec)