473,395 Members | 2,151 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 2823
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jerry | last post by:
Hi people: Can somebody show me a quick code snippet to reliably extract an email-address form a text file ? Any help greatly appreciated! Jerry
0
by: blitz-dev-bounces | last post by:
Your mail to 'Blitz-dev' with the subject Re: Your archive Is being held until the list moderator can review it for approval. The reason it is being held: Post by non-member to a...
6
by: Steven T. Hatton | last post by:
I bought Josuttis's book on the repeated recommendations of people in this newsgroup. http://www.josuttis.com/libbook/ One of the first things I looked up was the std::valarray<>. And what I...
0
by: Florian | last post by:
Hi, My first experiences with Blitz++ http://sourceforge.net/projects/blitz/ show both flexibility and high performance. But I also need a good Iterative solver library like Gmm++ for...
0
by: monkeyboy | last post by:
Hello, I'm a new scipy user, and I'm trying to speed up some array code with weave. I'm running xp with gcc from cgywin, and scipy.weave.test() returns an OK status. I'm trying to speed up...
2
by: dss | last post by:
I'm trying to compile some code that I downloaded. The code uses Blitz++ and tvmet to manipulate arrays. I have never worked with either of these, and I am having trouble getting both of these to...
5
by: =?Utf-8?B?aWxy?= | last post by:
Hi This is probably fairly simple but I am newish at programming and was wondering if someone can give me some advice on handling the following. I have an array with a large number of elements...
1
by: manishabh77 | last post by:
I will be obliged if anybody can help me with this problem: I am trying to extract data from an excel sheet that matches IDs given in column 4 of the excel sheet.I have stored those query IDs in an...
1
by: Rob | last post by:
How would I do this? I want to be able to handle vectors of many different types of data and vectors that can contain any number of other vectors of data. Currently, I have a templated...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.