Revision 1261 trunk/src/linad99/dmat3.cpp

dmat3.cpp (revision 1261)
82 82
*/
83 83
dmatrix inv(const dmatrix& m1,const double& _ln_det, const int& _sgn)
84 84
{
85
  double d;
85
  double d = 0.0;
86 86
  double& ln_det=(double&)(_ln_det);
87 87
  ln_det=0.0;
88 88
  int& sgn=(int&)(_sgn);
......
430 430
*/
431 431
double det(const dmatrix& m1)
432 432
{
433
  double d;
433
  double d = 0.0;
434 434
  dmatrix a(m1.rowmin(),m1.rowmax(),m1.rowmin(),m1.rowmax());
435 435

  
436 436
  if (m1.rowmin()!=m1.colmin()||m1.rowmax()!=m1.colmax())
......
469 469
*/
470 470
double ln_det(const dmatrix& m1, const int& _sgn)
471 471
{
472
  double d;
472
  double d = 0.0;
473 473
  int& sgn=(int&)_sgn;
474 474
  dmatrix a(m1.rowmin(),m1.rowmax(),m1.rowmin(),m1.rowmax());
475 475

  

Also available in: Unified diff