source: trunk/ClpMatrixBase.cpp @ 63

Last change on this file since 63 was 63, checked in by jpfasano, 17 years ago

-modified to use CoinPragma?.h
-modified to compile w/MS Visual C++ and gcc (on cygwin) without errors or warnings.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1// Copyright (C) 2002, International Business Machines
2// Corporation and others.  All Rights Reserved.
3
4#include "CoinPragma.hpp"
5
6#include <iostream>
7
8#include "ClpMatrixBase.hpp"
9
10//#############################################################################
11// Constructors / Destructor / Assignment
12//#############################################################################
13
14//-------------------------------------------------------------------
15// Default Constructor
16//-------------------------------------------------------------------
17ClpMatrixBase::ClpMatrixBase () :
18  type_(-1)
19{
20
21}
22
23//-------------------------------------------------------------------
24// Copy constructor
25//-------------------------------------------------------------------
26ClpMatrixBase::ClpMatrixBase (const ClpMatrixBase & source) :
27  type_(source.type_)
28{ 
29
30}
31
32//-------------------------------------------------------------------
33// Destructor
34//-------------------------------------------------------------------
35ClpMatrixBase::~ClpMatrixBase ()
36{
37
38}
39
40//----------------------------------------------------------------
41// Assignment operator
42//-------------------------------------------------------------------
43ClpMatrixBase &
44ClpMatrixBase::operator=(const ClpMatrixBase& rhs)
45{
46  if (this != &rhs) {
47    type_ = rhs.type_;
48  }
49  return *this;
50}
51// And for scaling - default aborts for when scaling not supported
52void 
53ClpMatrixBase::times(double scalar,
54                     const double * x, double * y,
55                     const double * rowScale, 
56                     const double * columnScale) const
57{
58  std::cerr<<"Scaling not supported - ClpMatrixBase"<<std::endl;
59  abort();
60}
61// And for scaling - default aborts for when scaling not supported
62void 
63ClpMatrixBase::transposeTimes(double scalar,
64                                const double * x, double * y,
65                                const double * rowScale, 
66                                const double * columnScale) const
67{
68  std::cerr<<"Scaling not supported - ClpMatrixBase"<<std::endl;
69  abort();
70}
71
Note: See TracBrowser for help on using the repository browser.