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 8347919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:31:43+00:00 2026-06-09T07:31:43+00:00

I am now writing a code to do matrix calculation in Xcode4.3. I could

  • 0

I am now writing a code to do matrix calculation in Xcode4.3.
I could build and run the code below, but I always get the warning saying, ” Incompatible pointer types passing ‘float (*)[3][2]’ to parameter of type ‘float *’ ”
Can someone explain what that means and how I can avoid the warning?

    float num1[3][2] = { {1,5},{2,6},{3,7} };
    float num2[3][2] = { {2,2},{2,6},{3,3} }; 
    float resA[3][2];

    vDSP_vadd(&num1, 1, &num2, 1, &resA, 1, 6);

    for (int i = 0; i<3; i++) {
        for (int j = 0; j<2; j++) {
            NSLog(@"resA[%d][%d]:%f",i,j,resA[i][j]);
        }
    }
  • 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-06-09T07:31:46+00:00Added an answer on June 9, 2026 at 7:31 am

    Well, technically, an array is not a pointer, is only decays to a pointer.
    If you want to avoid the warning, you can use:

             vDSP_vadd(&num1[0][0], 1, &num2[0][0], 1, &resA[0][0], 1, 6);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a programming experience with statically typed languages. Now writing code in Python
I'm going to write a CMS, but right now I'm writing down all my
I'm writing a PHP framework right now, and have run into somewhat of a
While writing code, I often run into the problem of addressing trivial dependancies. For
I am writing code that will build an oriented bounding box (obb) tree for
I'm back and now writing my own language and my OS, but as I'm
I've been writing code for a few years now and our backup strategy has
Well, now i have a new problem. Im writing code in C# I want
I am writing code in python that can not only read a xml but
I've encountered a problem while writing code in Delphi. Namely I can't get acces

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.