// Copyright (C) 2003, International Business Machines // Corporation and others. All Rights Reserved. #include #include "CoinPragma.hpp" #include "ClpSimplex.hpp" #include "ClpDummyMatrix.hpp" #include "ClpFactorization.hpp" #include "ClpMessage.hpp" //############################################################################# // Constructors / Destructor / Assignment //############################################################################# //------------------------------------------------------------------- // Default Constructor //------------------------------------------------------------------- ClpDummyMatrix::ClpDummyMatrix () : ClpMatrixBase() { setType(14); numberRows_=0; numberColumns_=0; numberElements_=0; } /* Constructor from data */ ClpDummyMatrix::ClpDummyMatrix(int numberColumns, int numberRows, int numberElements) : ClpMatrixBase() { setType(14); numberRows_=numberRows; numberColumns_=numberColumns; numberElements_=numberElements; } //------------------------------------------------------------------- // Copy constructor //------------------------------------------------------------------- ClpDummyMatrix::ClpDummyMatrix (const ClpDummyMatrix & rhs) : ClpMatrixBase(rhs) { numberRows_=rhs.numberRows_; numberColumns_=rhs.numberColumns_; numberElements_=rhs.numberElements_; } ClpDummyMatrix::ClpDummyMatrix (const CoinPackedMatrix & rhs) : ClpMatrixBase() { std::cerr<<"Constructor from CoinPackedMatrix nnot supported - ClpDummyMatrix"<x * A + y in z. Squashes small elements and knows about ClpSimplex */ void ClpDummyMatrix::transposeTimes(const ClpSimplex * model, double scalar, const CoinIndexedVector * rowArray, CoinIndexedVector * y, CoinIndexedVector * columnArray) const { std::cerr<<"transposeTimes not supported - ClpDummyMatrix"<x *A in z but just for indices in y */ void ClpDummyMatrix::subsetTransposeTimes(const ClpSimplex * model, const CoinIndexedVector * rowArray, const CoinIndexedVector * y, CoinIndexedVector * columnArray) const { std::cerr<<"subsetTransposeTimes not supported - ClpDummyMatrix"<indDel. */ void ClpDummyMatrix::deleteCols(const int numDel, const int * indDel) { std::cerr<<"deleteCols not supported - ClpDummyMatrix"<indDel. */ void ClpDummyMatrix::deleteRows(const int numDel, const int * indDel) { std::cerr<<"deleteRows not supported - ClpDummyMatrix"<