470,835 Members | 1,912 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,835 developers. It's quick & easy.

How to extract data of a Blitz++ Array ?

Array<unsigned char,2> A(10,10);

unsigned char* rawdata;
rawdata = new (unsinged char)[10*10];

Can I extract data in A to rawdata without using for loop?

Apr 10 '06 #1
7 2661
Besides, Can I read data from a file directly into a Blitz++ Array?

Apr 10 '06 #2
Guch Wu wrote:
Array<unsigned char,2> A(10,10);

unsigned char* rawdata;
rawdata = new (unsinged char)[10*10];

Can I extract data in A to rawdata without using for loop?


Yes. You can use a while loop.

Apr 10 '06 #3
Guch Wu wrote:
Array<unsigned char,2> A(10,10);

unsigned char* rawdata;
rawdata = new (unsinged char)[10*10];

Can I extract data in A to rawdata without using for loop?


Until you say what "Array" is, the answer is "don't know".

- J.
Apr 10 '06 #4
Have you ever used Blitz++? Array is type in Blitz++.

Apr 10 '06 #5

Guch Wu wrote:
Have you ever used Blitz++? Array is type in Blitz++.


no, we use only C++

Apr 11 '06 #6
Diego Martins wrote;
Guch Wu wrote:
Have you ever used Blitz++? Array is type in Blitz++.


no, we use only C++


Blitz++ is a C++ library.

;-)

--
Phlip
http://www.greencheese.org/ZeekLand <-- NOT a blog!!!
Apr 11 '06 #7
"Guch Wu" <gu****@gmail.comwrites:
Array<unsigned char,2A(10,10);

unsigned char* rawdata;
rawdata = new (unsinged char)[10*10];

Can I extract data in A to rawdata without using for loop?
Try using Array::data() which returns a pointer to the Array's
internal data.

Jason
Sep 3 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Jerry | last post: by
reply views Thread by blitz-dev-bounces | last post: by
6 posts views Thread by Steven T. Hatton | last post: by
reply views Thread by monkeyboy | last post: by
2 posts views Thread by dss | last post: by
5 posts views Thread by =?Utf-8?B?aWxy?= | last post: by
1 post views Thread by Rob | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.