 | | Re: Another matrix inverse question
|
|
(...) Sorry about that. I wrote that code so long ago that I forgot that it wasn't a fully general-purpose matrix inversion routine. (Note that it is the way it is so that it will perform better, not because I was too lazy to do the whole shebang.) (...) (20 years ago, 10-Apr-07, to lugnet.cad)
|
| |
 | | Re: Another matrix inverse question
|
|
(...) I think you've converted Travis' code properly, but just looking at the code, I'd say it's only intended to produce the inverse of the upper-left 3x3 matrix. None of the other rows or the determinant depend in any way on the 4th row, and it's (...) (20 years ago, 10-Apr-07, to lugnet.cad)
|
| |
 | | Another matrix inverse question
|
|
Hello, I read James Reynolds' question about inverse matrices and the responses with interest since I similar questions about matrix inverses. I used Travis's TCVector::invertMatrix code as the base for a Java function. Other than the change to Java (...) (20 years ago, 10-Apr-07, to lugnet.cad)
|
| |
 | | Re: how does a line ends?
|
|
(...) Now that I'm at work, I'm able to look at Microsoft's implementation of fgets for Visual Studio 2005. They do a lock on the file prior to their loop, then call _fgetc_nolock to get each character, instead of fgetc or fread. (That's an (...) (20 years ago, 9-Apr-07, to lugnet.cad, FTX)
|
| |
 | | Re: how does a line ends?
|
|
(...) I thought about using a static instead of ungetc() in the first version of readLine() that I posted. This means that you can only read from one open file at a time, but that is usually an OK restriction as long as the programmer is aware of (...) (20 years ago, 8-Apr-07, to lugnet.cad, FTX)
|