Changeset 00439c7 in tol


Ignore:
Timestamp:
May 9, 2013, 1:40:11 PM (13 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
23f035c
Parents:
8d7ceaf
Message:

New method void BlasRDense (int nrow, int ncol, const double* ptr);

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@5798 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol/btol/vmatrix_type
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/vmatrix_type/tol_bvmat.h

    r8d7ceaf r00439c7  
    279279  void BlasRDense  (int nrow, int ncol);
    280280  void BlasRDense  (int nrow, int ncol, double value);
     281  void BlasRDense  (int nrow, int ncol, const double* ptr);
    281282  void ChlmRSparse (int nrow, int ncol, int nzmax);
    282283  void ChlmRTriplet(int nrow, int ncol, int nzmax);
  • tol/btol/vmatrix_type/vmat.cpp

    r8d7ceaf r00439c7  
    966966    }
    967967  }
     968  CheckDefined("BlasRDense");
     969} 
     970
     971////////////////////////////////////////////////////////////////////////////////
     972  void BVMat::BlasRDense(int nrow, int ncol, const double* ptr)
     973////////////////////////////////////////////////////////////////////////////////
     974{
     975  BlasRDense(nrow, ncol);
     976  if(!s_.blasRdense_) { return; }
     977  double* x = (double*)s_.blasRdense_->x;
     978  memcpy(x, ptr, nrow*ncol*sizeof(double));
    968979  CheckDefined("BlasRDense");
    969980} 
Note: See TracChangeset for help on using the changeset viewer.