|
DenseLinAlgPack: Concreate C++ Classes for Dense Blas-Compatible Linear Algebra 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 // These are assignment functions that used to be in GenMatrixOp but because of 00030 // some circular dependency problems their declarations where moved into a seprate 00031 // file. 00032 00033 #ifndef GEN_MATRIX_ASSIGN_H 00034 #define GEN_MATRIX_ASSIGN_H 00035 00036 #include "DenseLinAlgPack_Types.hpp" 00037 00038 namespace DenseLinAlgPack { 00039 00040 // /////////////////////////////////////////////////////////////////////////////////// 00041 /* * @name {\bf DMatrix/DMatrixSlice Assignment Fucntions}. 00042 * 00043 * These are functions for assigning one matrix to another. The rhs matrices 00044 * can be transposed (op(rhs) = rhs) or non-transposed (op(rhs) = trans(rhs). 00045 * The assignment operators for 00046 * DMatrix and DMatrixSlice use these functions to implement their 00047 * assignment operator functions. The assignmet functions for triangular 00048 * matrices are ment to be called from the assignment operator functions 00049 * for wrapper classes for triangular (upper and lower) and sysmetric 00050 * (upper and lower storage). 00051 * 00052 * These assignment functions check for aliasing and assignment to self 00053 * and create any needed temporaries if needed. 00054 */ 00055 // @{ 00056 00058 void assign(DMatrix* gm_lhs, value_type alpha); 00059 00061 void assign(DMatrix* gm_lhs, const DMatrixSlice& gms_rhs, BLAS_Cpp::Transp trans_rhs); 00062 00064 void assign(DMatrixSlice* gms_lhs, value_type alpha); 00065 00067 void assign(DMatrixSlice* gms_lhs, const DMatrixSlice& gms_rhs, BLAS_Cpp::Transp trans_rhs); 00068 00070 void assign(DMatrixSliceTriEle* tri_gms_lhs, value_type alpha); 00071 00073 void assign(DMatrixSliceTriEle* tri_ele_gms_lhs, const DMatrixSliceTriEle& tri_ele_gms_rhs); 00074 00075 // end Assignment Fucntions 00076 // @} 00077 00078 } // end namespace DenseLinAlgPack 00079 00080 #endif // GEN_MATRIX_ASSIGN_H
1.7.4