473,387 Members | 1,863 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,387 software developers and data experts.

Visual Basic.net Passing arrays in procedures

Is there a way to pass only a sub-matrix (part of a larger) matrix in a
procedure by identifying the leading row/column element similar to what is
done in Fortran

I am trying to convert several linear algebra fortran routines over to VB
net and this is a problem area. I realize that i can copy the required
elements into a new array , pass it thru the routine and on return copy the
new elements back but this seems very inefficient.

Is ther a better way to do this in net. Have looked everywher but can't
find anything

Thanks
Nov 21 '05 #1
2 2490
"Michael" <mc********@houston.rr.com> schrieb:
Is there a way to pass only a sub-matrix (part of a larger) matrix in a
procedure by identifying the leading row/column element similar to what is
done in Fortran


You can pass additional start/end indices to the procedure.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
"Michael" <mc********@houston.rr.com> wrote in message
news:c3*******************@tornado.texas.rr.com...
:
: Is there a way to pass only a sub-matrix (part of a larger) matrix in
: a procedure by identifying the leading row/column element similar to
: what is done in Fortran
:
: I am trying to convert several linear algebra fortran routines over to
: VB net and this is a problem area. I realize that i can copy the
: required elements into a new array, pass it thru the routine and on
: return copy the new elements back but this seems very inefficient.
:
: Is ther a better way to do this in net. Have looked everywher but
: can't find anything
:
: Thanks
I'm not aware of anyway you could pass a partial array in a function
call. Your only two options are to manually create the smaller array as
you've suggested above (which is terribly inefficient as you've noted)
or take Herfried's suggestion and pass in start and finish indices.
Ralf

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robin Powers | last post by:
PROCESS CONTROLS/VISUAL BASIC PROGRAMMERS SALARY: TO $100,000 LOCATION: LOS ANGELES AREA Our Client has recently acquired process automation systems used to monitor and control their...
2
by: sfgsdfg | last post by:
Hello, is there a way to pass a control array to a function? i tried the following which works with normal arrays but not control arrays:( Private Sub Click1_Click() Calc txtControlArray,...
54
by: seberino | last post by:
Many people I know ask why Python does slicing the way it does..... Can anyone /please/ give me a good defense/justification??? I'm referring to why mystring gives me elements 0, 1, 2 and 3...
58
by: jr | last post by:
Sorry for this very dumb question, but I've clearly got a long way to go! Can someone please help me pass an array into a function. Here's a starting point. void TheMainFunc() { // Body of...
4
by: Cyde Weys | last post by:
I'm currently working on converting a simulator program from Visual Basic 6.0 to Visual C++ .NET. I've figured out most of the stuff, but there's still one thing I haven't gotten to and I've never...
5
by: Rank Novice | last post by:
I'm a developer, not a DB admin. I'm writing a .NET app that uses crystal reports. The table I need to output is built inside a stored procedure. No choice, it makes use of some temporary...
3
by: rgb | last post by:
I've got Visual Studio 6.0 and I'm working on a Visual Basic applicaiton. There a couple parts that really require C. I've done C programming on a mainframe but nothing on a PC. So I'm trying to...
3
by: Mark | last post by:
Hi From what I understand, you can pass arrays from classic ASP to .NET using interop, but you have to change the type of the.NET parameter to object. This seems to be because classic ASP passes...
11
by: John Pass | last post by:
Hi, In the attached example, I do understand that the references are not changed if an array is passed by Val. What I do not understand is the result of line 99 (If one can find this by line...
0
by: Gloria | last post by:
Hi all, I created a DTS package in SQL Server 2000 that creates several stored procedures. I need to run this package as part of an installation program for an application that uses the stored...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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,...

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.