<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d6002933\x26blogName\x3dsmrties\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dSILVER\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://manjingo.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://manjingo.blogspot.com/\x26vt\x3d7369077520920648333', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

How's this linear?

So I'm currently working on C code translated from Fortran that finds the inverse of a 17x17 matrix using Guassian Elimination. However, the output has two rows that are tranposed for some strange reason. I'm stuck trying to determine if the indeces being used to increment through the 17x17 matrix to create the indentity matrix are incrementing correctly despite the C to Fortran translation.

Index numbers for matrices in Fortran start at one whereas in C they start at zero. In addition, the way in which C references rows and columns is opposite of Fortran. So where C calls Row then Column with the rightmost index incrementing the fastest, Fortran calls Column then Row with the leftmost index incrementing the fastest. It's a bit of challenge trying to sort through this code in my head.
« Home | Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »

» Post a Comment