source: branches/devel-1/ClpMatrixBase.cpp @ 15

Last change on this file since 15 was 2, checked in by forrest, 18 years ago

Adding Clp to development branch

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