Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6053503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:02:50+00:00 2026-05-23T08:02:50+00:00

I writen method which multiply 2 Matrix: [WebMethod] public void MultiplyMatrix(double[,] _A,double[,] _B,int _n,int

  • 0

I writen method which multiply 2 Matrix:

[WebMethod]
    public void MultiplyMatrix(double[,] _A,double[,] _B,int _n,int _m,int _r, out double[,] C)
    {
        int n, m, r;
        n = _n;
        m = _m;
        r = _r;
        double[,] A = new double[n,m];
        double[,] B = new double[m,r];
        C = new double[n,r];
        A = _A;
        B = _B;
        try 
        {
            for (int i = 0; i < n; i++)
            {
                for (int j = 0; j < r; j++)
                {
                    for (int k = 0; k < m; k++)
                    {
                        C[i, j] += A[i, k] * B[k, j];   
                    }
                }
            }
        }
            catch(IndexOutOfRangeException){}
    }

and I wonder that in method MultiplyMatrix should be parameters out double[,] C or maybe I make a mistake?

thanks for any sugestion:)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:02:51+00:00Added an answer on May 23, 2026 at 8:02 am

    If you are just returning one thing return a value.

    i.e.:

    public double[,]  MultiplyMatrix(
                                      double[,] _A,
                                      double[,] _B,
                                      int _n,
                                      int _m,
                                      int _r,)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The class mshtml.HTMLDocumentClass in Microsoft.mshtml.dll assembly has a method: public virtual void write(params object[]
I am getting this error when calling a web service method which writes to
I am trying to write a unit test for an action method which calls
I'd like to write an extension method for string, which appears as a static
I am new to Swing. I want to write a program which reads a
I've been profiling a method using the stopwatch class, which is sub-millisecond accurate. The
I have written a multithreaded program which does some thinking and prints out some
In vs2008, is it possible to write an extension methods which would apply to
serial.write() method in pyserial seems to only send string data. I have arrays like
I've written a method that returns the milisecond value of a string formatted date,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.