You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>> a=MappedTensor(1);
>> a([])
Error using mapped_tensor_shim
*** mapped_tensor_shim: Could not allocate data buffer.
Error in MappedTensor>mt_read_data (line 1763)
tData = hShimFunc('read_chunks', hDataFile, mnFileChunkIndices, vnLinearIndices,
vnReverseSort, vnDataSize, strClass, nHeaderBytes, double(bBigEndian));
Error in MappedTensor/my_subsref (line 466)
tfData = mtVar.fRealFactor .* mt_read_data(mtVar.hShimFunc,
mtVar.hRealContent, S, vnReferencedTensorSize, mtVar.strStorageClass,
mtVar.nHeaderBytes, mtVar.bBigEndian, mtVar.hRepSumFunc,
Error in MappedTensor/subsref (line 375)
[varargout{1}] = my_subsref(mtVar, subs);
As compared to a standard matrix:
>> b=zeros(1);
>> b([])
ans =
[]
Also the empty matrix is not caught in the constructor:
>> a=MappedTensor([]);
Attempted to access vnTensorSize(0); index must be a positive integer or logical.
Error in MappedTensor (line 312)
if (vnTensorSize(end) == 1) && (numel(vnTensorSize) > 2)
Sorry for all these nit-picky bugs, I'm just putting them up here as I run into them.
The text was updated successfully, but these errors were encountered:
As compared to a standard matrix:
Also the empty matrix is not caught in the constructor:
Sorry for all these nit-picky bugs, I'm just putting them up here as I run into them.
The text was updated successfully, but these errors were encountered: