MOOCHO (Single Doxygen Collection) Version of the Day
AbstractLinAlgPack_AssertOp.hpp
Go to the documentation of this file.
00001 // @HEADER
00002 // ***********************************************************************
00003 // 
00004 // Moocho: Multi-functional Object-Oriented arCHitecture for Optimization
00005 //                  Copyright (2003) Sandia Corporation
00006 // 
00007 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
00008 // license for use of this work by or on behalf of the U.S. Government.
00009 // 
00010 // This library is free software; you can redistribute it and/or modify
00011 // it under the terms of the GNU Lesser General Public License as
00012 // published by the Free Software Foundation; either version 2.1 of the
00013 // License, or (at your option) any later version.
00014 //  
00015 // This library is distributed in the hope that it will be useful, but
00016 // WITHOUT ANY WARRANTY; without even the implied warranty of
00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018 // Lesser General Public License for more details.
00019 //  
00020 // You should have received a copy of the GNU Lesser General Public
00021 // License along with this library; if not, write to the Free Software
00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00023 // USA
00024 // Questions? Contact Roscoe A. Bartlett (rabartl@sandia.gov) 
00025 // 
00026 // ***********************************************************************
00027 // @HEADER
00028 
00029 #ifndef ABSTRACT_LIN_ALG_PACK_ASSERT_OP_H
00030 #define ABSTRACT_LIN_ALG_PACK_ASSERT_OP_H
00031 
00032 #include "AbstractLinAlgPack_Types.hpp"
00033 
00034 namespace AbstractLinAlgPack {
00035 
00045 
00049 
00050 void Vp_V_assert_compatibility(VectorMutable* v_lhs, const Vector& v_rhs);
00052 void Vp_V_assert_compatibility(VectorMutable* v_lhs, const SpVectorSlice& sv_rhs);
00054 void VopV_assert_compatibility(const Vector& v_rhs1, const Vector& v_rhs2);
00056 void VopV_assert_compatibility(const Vector& v_rhs1, const SpVectorSlice& sv_rhs2);
00058 void VopV_assert_compatibility(const SpVectorSlice& sv_rhs1, const Vector& v_rhs2);
00060 void Mp_M_assert_compatibility(
00061   MatrixOp* m_lhs, BLAS_Cpp::Transp trans_lhs
00062   ,const MatrixOp& m_rhs, BLAS_Cpp::Transp trans_rhs );
00064 void MopM_assert_compatibility(
00065   const MatrixOp& m_rhs1, BLAS_Cpp::Transp trans_rhs1
00066   ,const MatrixOp& m_rhs2, BLAS_Cpp::Transp trans_rhs2 );
00068 
00072 
00073 void MtV_assert_compatibility(
00074   const MatrixOp& m_rhs1, BLAS_Cpp::Transp trans_rhs1, const Vector& v_rhs2 );
00076 void MtV_assert_compatibility(
00077   const MatrixOp& m_rhs1, BLAS_Cpp::Transp trans_rhs1, const SpVectorSlice& sv_rhs2 );
00079 void Vp_MtV_assert_compatibility(
00080   VectorMutable* v_lhs
00081   ,const MatrixOp& m_rhs1, BLAS_Cpp::Transp trans_rhs1, const Vector& v_rhs2 );
00083 void Vp_MtV_assert_compatibility(
00084   VectorMutable* v_lhs
00085   ,const MatrixOp& m_rhs1, BLAS_Cpp::Transp trans_rhs1, const SpVectorSlice& sv_rhs2 );
00087 
00091 
00092 void MtM_assert_compatibility(
00093   const MatrixOp& m_rhs1, BLAS_Cpp::Transp trans_rhs1
00094   ,const MatrixOp& m_rhs2, BLAS_Cpp::Transp trans_rhs2 );
00096 void Mp_MtM_assert_compatibility(
00097   MatrixOp* m_lhs, BLAS_Cpp::Transp trans_lhs
00098   ,const MatrixOp& m_rhs1, BLAS_Cpp::Transp trans_rhs1
00099   ,const MatrixOp& m_rhs2, BLAS_Cpp::Transp trans_rhs2 );
00101 
00103 
00104 #ifndef ABSTRACTLINALGPACK_ASSERT_COMPATIBILITY
00105 
00106 // inline definitions that do nothing
00107 
00108 inline
00109 void Vp_V_assert_compatibility(VectorMutable* v_lhs, const Vector& v_rhs)
00110 {} 
00111 inline
00112 void Vp_V_assert_compatibility(VectorMutable* v_lhs, const SpVectorSlice& sv_rhs)
00113 {} 
00114 inline
00115 void VopV_assert_compatibility(const Vector& v_rhs1, const Vector&  v_rhs2)
00116 {}
00117 inline
00118 void VopV_assert_compatibility(const Vector& v_rhs1, const SpVectorSlice& sv_rhs2)
00119 {} 
00120 inline
00121 void VopV_assert_compatibility(const SpVectorSlice& sv_rhs1, const Vector& v_rhs2)
00122 {} 
00123 inline
00124 void Mp_M_assert_compatibility(
00125   MatrixOp* m_lhs, BLAS_Cpp::Transp trans_lhs
00126   ,const MatrixOp& m_rhs, BLAS_Cpp::Transp trans_rhs )
00127 {}
00128 inline
00129 void MopM_assert_compatibility(
00130   const MatrixOp& m_rhs1, BLAS_Cpp::Transp trans_rhs1
00131   ,const MatrixOp& m_rhs2, BLAS_Cpp::Transp trans_rhs2 )
00132 {}
00133 inline
00134 void MtV_assert_compatibility(
00135   const MatrixOp& m_rhs1, BLAS_Cpp::Transp trans_rhs1, const Vector& v_rhs2 )
00136 {}
00137 inline
00138 void MtV_assert_compatibility(
00139   const MatrixOp& m_rhs1, BLAS_Cpp::Transp trans_rhs1, const SpVectorSlice& sv_rhs2 )
00140 {} 
00141 inline
00142 void Vp_MtV_assert_compatibility(
00143   VectorMutable* v_lhs
00144   ,const MatrixOp& m_rhs1, BLAS_Cpp::Transp trans_rhs1, const Vector& v_rhs2 )
00145 {}
00146 inline
00147 void Vp_MtV_assert_compatibility(
00148   VectorMutable* v_lhs
00149   ,const MatrixOp& m_rhs1, BLAS_Cpp::Transp trans_rhs1, const SpVectorSlice& sv_rhs2 )
00150 {}
00151 inline
00152 void MtM_assert_compatibility(
00153   const MatrixOp& m_rhs1, BLAS_Cpp::Transp trans_rhs1
00154   ,const MatrixOp& m_rhs2, BLAS_Cpp::Transp trans_rhs2 )
00155 {}
00156 inline
00157 void Mp_MtM_assert_compatibility(
00158   MatrixOp* m_lhs, BLAS_Cpp::Transp trans_lhs
00159   ,const MatrixOp& m_rhs1, BLAS_Cpp::Transp trans_rhs1
00160   ,const MatrixOp& m_rhs2, BLAS_Cpp::Transp trans_rhs2 )
00161 {}
00162 
00163 #endif // ABSTRACTLINALGPACK_ASSERT_COMPATIBILITY
00164 
00165 } // end namespace AbstractLinAlgPack
00166 
00167 #endif  // ABSTRACT_LIN_ALG_PACK_ASSERT_OP_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines