Ignore:
Timestamp:
Sep 21, 2009, 11:48:42 AM (16 years ago)
Author:
Saskia Metzler <metzler@…>
Children:
14db08, 39d983
Parents:
bc3953
Message:

Ticket 11: use templates and/or traits to fix Malloc/ReAlloc-Free warnings in a clean manner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/vector.cpp

    rbc3953 r390a2b  
    88#include "defs.hpp"
    99#include "helpers.hpp"
     10#include "memoryallocator.hpp"
    1011#include "leastsquaremin.hpp"
    1112#include "vector.hpp"
     
    674675double * Vector::InverseMatrix(double *A)
    675676{
    676   double *B = (double *) Malloc(sizeof(double)*NDIM*NDIM, "Vector::InverseMatrix: *B");
     677  double *B = Malloc<double>(NDIM * NDIM, "Vector::InverseMatrix: *B");
    677678  double detA = RDET3(A);
    678679  double detAReci;
Note: See TracChangeset for help on using the changeset viewer.