Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. matrix multiplication in c but my program is printing garbage value with correct dimension..

matrix multiplication in c but my program is printing garbage value with correct dimension..

Scheduled Pinned Locked Moved C / C++ / MFC
performance
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mybm1
    wrote on last edited by
    #1

    function.c

    Quote:

     float \*\*mult(float \*\*input1,float \*\*input2,int row1,int column1,int row2,int column2)
    

    {
    int i,j,k;
    float **mult1;
    mult1=memory_alloc_2D1(row1,column2);
    //mult1[i][j]=0;
    for(i=0;i

    main.c -program.

    float **deviation1;
    deviation1=memory_alloc_2D(waveframesize,NUM_OF_COEFFICIENTS);
    for(i=0;i

    Quote:

    float **trans1;
    trans1=memory_alloc_2D(waveframesize,NUM_OF_COEFFICIENTS);
    trans1=transpose(deviation1,waveframesize,NUM_OF_COEFFICIENTS);
    for(i=0;i

    float **multiplication;
    multiplication=memory_alloc_2D(waveframesize,NUM_OF_COEFFICIENTS);
    multiplication=mult(trans1,deviation1,waveframesize,NUM_OF_COEFFICIENTS,NUM_OF_COEFFICIENTS,waveframesize);

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups