Changeset 9c0b20a in git for factory/cf_hnf.cc


Ignore:
Timestamp:
Nov 25, 2010, 4:11:10 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
488872b51cd1fa36918b12c9c2476c1edff62026
Parents:
c512d93f75cc91a718679d4a03b14439936966e2
Message:
LLL via system("LLL",M) for matrix (char 0)/intmat


git-svn-id: file:///usr/local/Singular/svn/trunk@13670 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_hnf.cc

    rc512d9 r9c0b20a  
    1919#include <NTL/mat_ZZ.h>
    2020#include <NTL/HNF.h>
     21#include <NTL/LLL.h>
    2122
    2223// The input matrix A is an n x m matrix of rank m (so n >= m), and D
     
    4041  return convertNTLmat_ZZ2FacCFMatrix(WW);
    4142}
     43CFMatrix* cf_LLL(CFMatrix& A)
     44{
     45  mat_ZZ *AA=convertFacCFMatrix2NTLmat_ZZ(A);
     46  LLL_RR(*AA);
     47  delete AA;
     48  CFMatrix *r= convertNTLmat_ZZ2FacCFMatrix(*AA);
     49  delete AA;
     50  return r;
     51}
    4252#endif
Note: See TracChangeset for help on using the changeset viewer.