Hi, I just found a mistake in one of my programs which reveals what I guess is an error in the PDL::IO::FastRaw.
$ pdl ... pdl> # create a small ndarray and map it to disk pdl> use PDL::IO::FastRaw; pdl> $a=mapfraw("rem.dat", {Datatype=>cdouble, Dims=>[10], Creat=>1}); pdl> q # quit pdl $ ... # do whatever $ pdl # and come back to pdl ... pdl> # Create a large ndarray and map it to the now existing file pdl> $b=mapfraw("rem.dat", {Datatype=>cdouble, Dims=>[1000]}); pdl> # There is no complain about incompatible dimensions pdl> p $b((-1)); # Try to print the last element Bus error $ mapfraw allowed me to create an ndarray and map it to an existing file even though the dimensions were incompatible, but then, there was a bus error with no diagnostic information about the cause. I guess mapfraw should died on the spot alerting me on the discrepancy instead of continuing with the execution. Best regards, Luis -- o W. Luis Mochán, | tel:(52)(777)329-1734 /<(*) Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `>/ /\ Av. Universidad s/n CP 62210 | (*)/\/ \ Cuernavaca, Morelos, México | moc...@fis.unam.mx /\_/\__/ GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16 C2DF 5F0A C52B 791E B9EB _______________________________________________ pdl-devel mailing list pdl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pdl-devel