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

  • Home
  • SEARCH
  • 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 3440738
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:28:05+00:00 2026-05-18T08:28:05+00:00

I don’t think i could explain how pissed I am because i can’t find

  • 0

I don’t think i could explain how pissed I am because i can’t find where i missed here..

Images can explain everything:

Debug screenshot, with nxxx value (used to call it n, but that crappy variable doesn’t deserve such a cool name). Breakpoint was on first line of this method.

http://img202.imageshack.us/img202/5057/value.png

The code where the method is called, getA and getB are working.. EVERYTHING was working like 10 mins ago..

First comment is the method signature, second comment is the original code, which SHOULD work. (replaced n variable with 0 to see if it would change anything.. turned out it didn’t)

/*
    void HASAntData::init(float** A, 
        float** B, 
        int nxxx, 
        int R, 
        float q,
        float Q, 
        float q1, 
        float q2, 
        int S, 
        int maxrounds, 
        int nThreads, 
        int seed)
    */

    data->init( qap->getA(), 
                qap->getB(), 
                0, 
                1, 
                2, 
                3, 
                4, 
                5, 
                6, 
                7, 
                8, 
                9);

    /*
    data->init( qap->getA(), 
                qap->getB(), 
                0, 
                cudahas_R, 
                cudahas_q, 
                cudahas_Q, 
                cudahas_q1, 
                cudahas_q2, 
                cudahas_S, 
                cudahas_max_rounds, 
                cudahas_m, 
                Tools::randomInt(0, INT_MAX));
                */

edit:

Here’s the table with all variable values, the crossed one doesn’t matter for this problem.
See how some variables are OK, and some aren’t

http://img831.imageshack.us/img831/6224/valuestable.png

  • 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-18T08:28:06+00:00Added an answer on May 18, 2026 at 8:28 am

    It looks like all the values have shifted (Q is 2 instead of 3, q1 is 3 instead of 4, R is 0 instead of 1). Where an int is interpreted as float, weird values are expected.

    I guess nxxx must be seeing the value meant for B.

    Is there some mismatch between the definition and declaration of init?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don’t think I’ve grokked currying yet. I understand what it does, and how
I don't know why i can't match url when url is http://localhost:8000/home/CPM%201.6.1001 since i
I don't think this should be in my view, but instead handled by the
I don't understand why my output is not how I think it should be.
Don't have much to say, just can get into the event handler. XAML: <Grid>
I don't know how to ask this question properly. I think the title is
I don't know if the Title of this post makes sense, but here's a
I don't know why, I install Xcode 4.0.2 and I run debug on device
I don't think i phrased the question correctly. I am trying to grab all
I don't know when to add to a dataset a tableadapter or a query

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.