473,407 Members | 2,598 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,407 software developers and data experts.

Boost::uBLAS::mapped_matrix max size too small. typedef size_t ulong

Axon
7
Hi,

I'm using Boost::uBLAS::mapped_matrix for working with sparse matrices. At the moment, the maximum dimension of mapped_matrix is 65535x65535 since std::size_t compiles as unsigned int.

I'm looking for a way of increasing this limit. The best way I can think of would be to ensure that size_t uses a bigger (64-bit) type rather than the current UInt32.

Can I force std::size_t to be defined as unsigned long?
I'm using VC 2005 (VC8) on Windows.

Thanks for your support.

Cheers,
Greg
Jan 23 '07 #1
3 2797
Banfa
9,065 Expert Mod 8TB
You don't need 2, the maximum dimension is not 65535, this is the maximum for an unsigned 16 bit integer but on VC++ version 8 std:size which is unsigned int is an unsigned 32 bit value and therefore has a maximum of 4294967295.
Jan 23 '07 #2
Axon
7
You don't need 2, the maximum dimension is not 65535
Please re-read the original post:
the maximum dimension of mapped_matrix is 65535x65535
So I need a way of forcing the use of __uint64 so that my max matrix dimension (limited by the size_t type) is bigger than 65535x65535.

Thanks anyways... Anyone?
Jan 24 '07 #3
Banfa
9,065 Expert Mod 8TB
It rather depends on whether you have the library as binary or source code.

If you have the source code of the classes then you may be able to recompile them with an alternately sized size_t, or another variable type used in it's place.

If you only have the binary then the classes have already been compiled with a 32 bit size_t, altering the size of size_t externally to the class is not going to alter its size used internally to the class.
Jan 24 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: christopher diggins | last post by:
Here is some code I wrote for Matrix multiplication for arbitrary dimensionality known at compile-time. I am curious how practical it is. For instance, is it common to know the dimensionality of...
5
by: jimmy | last post by:
I am trying to simulate typedef template similar to the suggestion of Herb Sutter in the following article: http://www.gotw.ca/gotw/079.htm However when implementing typedef templates according...
5
by: dvir | last post by:
Hi I want to declare a variable which is pointer to a class at my header. here is my header: base_functions.H ----------------------------- #ifndef BASE_FUNCTIONS_H #define...
9
by: Gerard Kramer | last post by:
Presently I have some difficulties with the following type of code which is understandably causing a segfault: //---- begin code ---- #include <valarray> #include <iostream> using...
13
by: RS | last post by:
Hi all, I am looking for a fast, efficient (tuned for speed, not size) and mature C++ code to do some numerical work with. I have looked at the Template Numerical Toolkit, which the...
5
by: greg.ruthenbeck | last post by:
Hi, I'm using Boost::uBLAS::mapped_matrix for working with sparse matrices. At the moment, the maximum dimension of mapped_matrix is 65535x65535 since std::size_t compiles as unsigned int...
7
Axon
by: Axon | last post by:
Is there a way to force std::size_t to be compiled as __uint64 (before STL etc are compiled). Where is size_t defined?
1
by: toton | last post by:
Hi, I am using vector and similar containers extensively for my project, as well as boost circular_buffer_space_optimized (and adobe circular_queue which is built over vector ). They all work with...
2
by: pallav | last post by:
I'm using an old sparse matrix C library in my C++ code and I'd like to know how to downcast a boost::shared_ptr to char *. The sparse matrix data structure is like this: struct...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.