473,513 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How I to do 3000x100 2d float matrix ?

2 New Member
Hi !


I have a little problem.
I cant to do 3000x100 float matrix with a calloc or malloc why ?

Thanks !
May 12 '07 #1
3 2101
JosAH
11,448 Recognized Expert MVP
Hi !


I have a little problem.
I cant to do 3000x100 float matrix with a calloc or malloc why ?

Thanks !
What platform are you running your process on? 100*3000*sizeof(float) is just
1.2M bytes which isn't *that* much.

kind regards,

Jos
May 12 '07 #2
zenit
2 New Member
What platform are you running your process on? 100*3000*sizeof(float) is just
1.2M bytes which isn't *that* much.

kind regards,

Jos
Hi!

Platform:UHU linux,Uc linux / GCC compiller
The problem is the calloc ,malloc .
If I made with calloc or malloc , the answare :Segment error !

Thanks, Bye !
May 14 '07 #3
AdrianH
1,251 Recognized Expert Top Contributor
Hi!

Platform:UHU linux,Uc linux / GCC compiller
The problem is the calloc ,malloc .
If I made with calloc or malloc , the answare :Segment error !

Thanks, Bye !
I think that the problem is unlikely to be with calloc/malloc (possible but doubtful).

Have you used a debugger? How far did you get?


Adrian
May 14 '07 #4

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

Similar topics

21
4614
by: =?UTF-8?B?TWFydGluIFDDtnBwaW5n?= | last post by:
Hello, I´m using a very large 2-dimensional double matrix (45.000x45.000) in my program. At the initialization of the matrix: double matrix = new double I am getting an out of memory...
6
3862
by: hvmclrhu | last post by:
Hi I have a big problem. When we compile serial.c with gcc, I get this error program is generating the sparse matrix Segmentation fault I think ı have to use malloc() but I don't know how to...
0
2794
by: DarrenWeber | last post by:
# Copyright (C) 2007 Darren Lee Weber # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free...
3
4994
by: LolaT | last post by:
I am making a program that deals with matrices in Java. I keep getting an error and I don't know how to fix it my code so far is import java.io.*; import java.util.*; import...
1
3842
by: Thomas Bauer | last post by:
Hello, how can I make the transformation matrix? Zero point Left top Left bottom Right top Right bottom
14
9090
by: Thomas Bauer | last post by:
Hello, I search a example like that. (1,0,0,1,4,5 ) -- moving (1,0,0,1,0,0 ) -- normal matrix (-1,0,0,1,0,0 ) -- Mirror Y-Axis (0,-1,0,1,0,0 ) -- Mirror X-Axis I caluculate all in mm.
10
5398
by: Babak | last post by:
Hi, I've developed a C program which contains a large number of vectors and matrices operations. Throughout my code, I used the template from the Numerical Recipes book to define vectors and...
1
9134
by: Sozos | last post by:
Hi guys. I have a problem with writing the base case for the following matrix multiplication function I have implemented. Please help. #define index(i,j,power) (((i)<<(power))+(j)) void...
29
13830
by: curiously enough | last post by:
I am having trouble making this recursive C function work for square matrices of size greater than 3 rows and columns. #include<stdio.h> #include<conio.h> #include<math.h> int M; float...
0
7260
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
7161
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...
0
7539
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
7525
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
5686
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,...
1
5089
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...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
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...

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.