Google Groups Home
Help | Sign in
Message from discussion Pointers question
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
tomgu...@hotmail.com  
View profile  
 More options May 15 2008, 10:32 am
Newsgroups: comp.lang.fortran
From: tomgu...@hotmail.com
Date: Thu, 15 May 2008 07:32:49 -0700 (PDT)
Local: Thurs, May 15 2008 10:32 am
Subject: Pointers question
This is a follow on from an earlier post of mine regarding sorting.

I've never used pointers before and I'm finding the lingo a bit heavy.

Here's my problem.

I have a potentially very large matrix that looks like

1 2 3 4 5 6
2 3 4 5 6 7
3 4 5 6 7 8
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0

For my largest problem the matrix will have 11 columns and about
10,000,000 rows.

I'm only interested in the section that is nonzero but am not aware of
how to change the matrix size quickly and efficiently as more rows are
needed.  I was told that pointers maybe the way to go.  The example I
was shown was to declare a single column vector which represents my
first column i.e.

1
2
3
0
0
0
0

and then use a pointer that is 11 columns wide but grows to have the
same nunmber of rows as nonzero elements in the vector.

I'm not too sure how this can be done.  If anyone has any ideas or
sample code that would be great.

Thanks


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google