![]() |
Blitz Support : |
From: Julian C. Cummings (cummings_at_[hidden])
Date: 2004-03-25 15:18:34
Hello Abhishek,
There is a .zip file containing project files for building the blitz library
and the testsuite applications, as well as a README file with instructions.
These project files are for VS .NET 2003 and unfortunately are not
backwards-compatible with the VC++ 6.0 IDE. If you know how to create your
own library and application project files for VC++ 6.0, you can probably do
this for blitz on your own without much trouble. Basically, you just need a
blitz library project that compiles the file src/globals.cpp and creates
blitz.lib. Then create an application project for each application code (for
example, the test codes in the testsuite subdirectory) and make it dependent
on the blitz library project. You will need to have a blitz/config.h file
set up for your compiler as discussed in the README file for VS .NET.
As for your question about passing arrays of different dimensions, you can
do this in exactly the same way as Fortran does it --- by cheating! In
Fortran, you pass a data pointer and it gets interpreted as an array having
the shape as described by the function argument. You can do the same thing
in blitz by passing a data pointer and then constructing a blitz Array of
the desired dimension and shape using the pre-existing data. Please have a
look at Section 2.3.7 of the blitz online manual at
http://www.oonumerics.org/blitz/manual/blitz.html. Let me know if this does
not answer your question.
Regards, Julian C.
Dr. Julian C. Cummings
Staff Scientist, CACR/Caltech
(626) 395-2543
cummings_at_[hidden]
-----Original Message-----
From: blitz-support-bounces_at_[hidden]
[mailto:blitz-support-bounces_at_[hidden]] On Behalf Of vkchopra
Sent: Saturday, March 20, 2004 3:40 AM
To: blitz-support_at_[hidden]
Subject: [Blitz-support] Query on Blitz usage in windows
Hi Everybody!
We have very basic problem in using Blitz in our project which provides
FORTRAN equivalent code in C++. I have downloaded Blitz++-7.0.tar.gz and I
want to use in VC++(Windows) using cl or INTEL C++ compiler. I want to know
how to configure the library in VC++6.0 IDE.
One more serious problem in Blitz library I found is in argument matching
across function calls. I can't pass 2D array and recieve it in 3D or any
other dimension array, as we can do it in FORTRAN.
If anybody of you have solution to my problems please reply soon at:
apv_at_[hidden]
Thanks in advance,
Abhishek