|
AbstractLinAlgPack: C++ Interfaces For Vectors, Matrices And Related Linear Algebra Objects Version of the Day
|
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 GEN_PERM_MATRIX_SLICE_OP_H 00030 #define GEN_PERM_MATRIX_SLICE_OP_H 00031 00032 #include "AbstractLinAlgPack_Types.hpp" 00033 #include "AbstractLinAlgPack_GenPermMatrixSlice.hpp" 00034 00035 namespace AbstractLinAlgPack { 00036 00042 00054 void V_StMtV( 00055 SpVector* sv_lhs, value_type alpha, const GenPermMatrixSlice& P_rhs1 00056 ,BLAS_Cpp::Transp P_rhs1_trans, const DVectorSlice& vs_rhs2 00057 ); 00058 00059 inline 00061 void V_MtV( 00062 SpVector* sv_lhs, const GenPermMatrixSlice& P_rhs1 00063 ,BLAS_Cpp::Transp P_rhs1_trans, const DVectorSlice& vs_rhs2 00064 ) 00065 { 00066 V_StMtV(sv_lhs,1.0,P_rhs1,P_rhs1_trans,vs_rhs2); 00067 } 00068 00101 void V_StMtV( 00102 SpVector* sv_lhs, value_type alpha, const GenPermMatrixSlice& P_rhs1 00103 ,BLAS_Cpp::Transp P_rhs1_trans, const SpVectorSlice& sv_rhs2 00104 ); 00105 00106 inline 00108 void V_MtV( 00109 SpVector* sv_lhs, const GenPermMatrixSlice& P_rhs1 00110 ,BLAS_Cpp::Transp P_rhs1_trans, const SpVectorSlice& sv_rhs2 00111 ) 00112 { 00113 V_StMtV(sv_lhs,1.0,P_rhs1,P_rhs1_trans,sv_rhs2); 00114 } 00115 00116 00129 void Vp_StMtV( 00130 SpVector* sv_lhs, value_type alpha, const GenPermMatrixSlice& P_rhs1 00131 ,BLAS_Cpp::Transp P_rhs1_trans, const DVectorSlice& vs_rhs2 00132 ); 00133 00134 inline 00137 void Vp_MtV( 00138 SpVector* sv_lhs, const GenPermMatrixSlice& P_rhs1 00139 ,BLAS_Cpp::Transp P_rhs1_trans, const DVectorSlice& vs_rhs2 00140 ) 00141 { 00142 Vp_StMtV(sv_lhs,1.0,P_rhs1,P_rhs1_trans,vs_rhs2); 00143 } 00144 00146 void Vp_StMtV( 00147 DVectorSlice* vs_lhs, value_type alpha, const GenPermMatrixSlice& P_rhs1 00148 ,BLAS_Cpp::Transp P_rhs1_trans, const DVectorSlice& vs_rhs2, value_type beta = 1.0 00149 ); 00150 00152 void Vp_StMtV( 00153 DVectorSlice* vs_lhs, value_type alpha, const GenPermMatrixSlice& P_rhs1 00154 ,BLAS_Cpp::Transp P_rhs1_trans, const SpVectorSlice& sv_rhs2, value_type beta = 1.0) 00155 ; 00156 00197 void intersection( 00198 const GenPermMatrixSlice &P1 00199 ,BLAS_Cpp::Transp P1_trans 00200 ,const GenPermMatrixSlice &P2 00201 ,BLAS_Cpp::Transp P2_trans 00202 ,size_type *Q_nz 00203 ,const size_type Q_max_nz = 0 00204 ,size_type Q_row_i[] = NULL 00205 ,size_type Q_col_j[] = NULL 00206 ,GenPermMatrixSlice *Q = NULL 00207 ); 00208 00210 00211 } // end namespace AbstractLinAlgPack 00212 00213 #endif // GEN_PERM_MATRIX_SLICE_OP_H
1.7.4