Hi Fujinobu, Hmm, that sounds like a bug. Perhaps Gennaro can look into it? Cheers, Jeremy On Jul 5, 2005, at 3:45 PM, Fujinobu Takahashi wrote:
// cout << "bit26 "; cout << bit26 << endl<
// cout << "bit34 "; cout << bit34 << endl<
-------------------------------------- Using this code my integration works very well and fast but cout << bit26 or cout << bit32 do not work, they are empty!
If possible, would you please show me any concrete hint or a very introductory sample of the copy of binary file? Using them I can challenge again to explore a mystery of dynamic bitset.
Very thanks,
Fuji
On Thu, 30 Jun 2005 13:46:00 -0500 Jeremy Siek
wrote: Hi Fuji,
The dynamic_bitset construtor that takes a input iterator over blocks was meant for this kind of construction. It would be up to you to obtain/create the iterator.
template <typename BlockInputIterator> explicit dynamic_bitset(BlockInputIterator first, BlockInputIterator last, const Allocator& alloc = Allocator()); Effects: Constructs a bitset based on a range of blocks. Let *first be block number 0, *++first block number 1, etc. Block number b is used to initialize the bits of the dynamic_bitset in the position range [b*bits_per_block, (b+1)*bits_per_block). For each block number b with value bval, the bit (bval >> i) & 1 corresponds to the bit at position (b * bits_per_block + i) in the bitset (where i goes through the range [0, bits_per_block)). Requires: The type BlockInputIterator must be a model of Input Iterator and its value_type must be the same type as Block. Throws: An allocation error if memory is exhausted (std::bad_alloc if Allocator=std::allocator).
On Jun 30, 2005, at 10:16 AM, Fujinobu Takahashi wrote:
Hello,
I would like to try one-bit correlation between two one-bit sampling VLBI data files using powerful dynamic bitset library. (VLBI:Very Long Baseline Interferometer)
A binary file japan.dat includes one-bit sampling data of a quasar received at a Japanese antenna and another binary file usa.dat includes one-bit sampling data of a same quasar received simultaneously at a US antenna. The bitset block size should be more than 10Mbits
What kind of constructor codes should I write to copy the bit-pattern of each data file to each very long dynamic bitset? I am sorry but I could not find any good answer from Google search.
I am looking forward to helpful answer in this mail-list.
Very Thanks
fuji
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Jeremy Siek
http://www.osl.iu.edu/~jsiek Ph.D. Student, Indiana University Bloomington C++ Booster (http://www.boost.org) _______________________________________________ _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________
Jeremy Siek