Hi,
I'm using Boost::uBLAS::m apped_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 (UInt32).
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? How/where?
I'm using VC 2005 (VC8) on Windows.
Thanks for your support.
Cheers,
Greg 5 3000 gr************* @gmail.com wrote:
I'm using Boost::uBLAS::m apped_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 (UInt32).
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?
Usually that's compiler-dependent. But what would be the point?
'unsigned long' is 32 bits on Windows.
How/where?
I'm using VC 2005 (VC8) on Windows.
You need to ask in 'microsoft.publ ic.vc.language' or other relevant
newsgroup. My suspicion is that you need to go 64 bits.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Can I use template arguments to force the use of std::map<double ,
unsigned long? gr************* @gmail.com wrote:
Hi,
I'm using Boost::uBLAS::m apped_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 (UInt32).
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? How/where?
I'm using VC 2005 (VC8) on Windows.
Thanks for your support.
Cheers,
Greg
Victor Bazarov wrote:
Can I force std::size_t to be defined as unsigned long?
Usually that's compiler-dependent. But what would be the point?
'unsigned long' is 32 bits on Windows.
Sorry, I meant to say 'unsigned long long' which is equivalent to
__uint64
Victor Bazarov wrote:
How/where?
I'm using VC 2005 (VC8) on Windows.
You need to ask in 'microsoft.publ ic.vc.language' or other relevant
newsgroup. My suspicion is that you need to go 64 bits.
Will try them. If anyone who sees this post who knows how to force
size_t to use __uint64 please post.
Greg
Victor Bazarov wrote:
Can I force std::size_t to be defined as unsigned long?
Usually that's compiler-dependent. But what would be the point?
'unsigned long' is 32 bits on Windows.
Sorry, I meant to say 'unsigned long long' which is equivalent to
__uint64
Victor Bazarov wrote:
How/where?
I'm using VC 2005 (VC8) on Windows.
You need to ask in 'microsoft.publ ic.vc.language' or other relevant
newsgroup. My suspicion is that you need to go 64 bits.
Will try them. If anyone who sees this post who knows how to force
size_t to use __uint64 please post.
Greg gr************* @gmail.com wrote:
Victor Bazarov wrote:
>>Can I force std::size_t to be defined as unsigned long?
Usually that's compiler-dependent. But what would be the point? 'unsigned long' is 32 bits on Windows.
Sorry, I meant to say 'unsigned long long' which is equivalent to
__uint64
There is no "unsigned long long" in C++.
Victor Bazarov wrote:
>>How/where? I'm using VC 2005 (VC8) on Windows.
You need to ask in 'microsoft.publ ic.vc.language' or other relevant newsgroup. My suspicion is that you need to go 64 bits.
Will try them. If anyone who sees this post who knows how to force
size_t to use __uint64 please post.
Whatever 'size_t' is defined to is governed by the implementation,
not by the programmer. You need to go to the newsgroup that deals
with your implementation.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Christopher |
last post by:
can someone refresh my meory on what std::size_t is used for? I am wondering
if my template container class should have it's capacity as a size_t or an
int?
,
Christopher
|
by: Guo Congbin |
last post by:
if size_t is a macro, where is the defination? i look it up in the stddef.h,
but i find nothing about size_t.
this is the content of stddef.h of my system,
#ifndef _LINUX_STDDEF_H
#define _LINUX_STDDEF_H
#undef NULL
#if defined(__cplusplus)
#define NULL 0
|
by: JKop |
last post by:
I'm writing a ".cpp" and ".hpp" combination.
The ".hpp" just contains one sole function declaration.
The ".cpp" makes use of the function "std::strlen" and the type
"std::size_t".
|
by: Pelle Beckman |
last post by:
Hi,
Honestly, what is this 'size_t'?
And while I'm at it - what is a 'mutable' var.?
I've understood it somehow makes a const a non-const,
but what's the point of that?
Short explanations? Links? FAQ?
|
by: earthwormgaz |
last post by:
I am trying to add the headers for a library I am using to a namespace
to avert issues with name clashes.
namespace Lib
{
#include <Lib/SomeFile.h>
};
I am finding though that statements to the following effect in that
code are then broken ...
| |
by: Axon |
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.
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...
|
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?
|
by: mike3 |
last post by:
Hi.
I can't believe I may have to use an array here.
I've got this bignum package I was making in C++ for a fractal
generator, and tried an approach that was suggested to me here a while
back, about using a "stack of vectors" instead of a static array.
Anyway, I put the suggestion into effect, and it seems the routine
that uses the stack of vectors (an in-place multiplication routine) is
|
by: Juha Nieminen |
last post by:
Unknownmat wrote:
VS2005 has a bug related to this. When you use size_t, it internally
converts it to 'unsigned int'. In some situations it forgets that the
type was actually size_t and only sees it's an 'unsigned int', so when
you eg. assign a size_t value to such a "unsigned int which was a size_t
but VS2005 has forgotten about it", it will give you a warning about
possible data loss (because it only sees that a size_t is being...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |