📄 dense_submatrix.c
字号:
// $Id: dense_submatrix.C 2501 2007-11-20 02:33:29Z benkirk $// The libMesh Finite Element Library.// Copyright (C) 2002-2007 Benjamin S. Kirk, John W. Peterson // This library is free software; you can redistribute it and/or// modify it under the terms of the GNU Lesser General Public// License as published by the Free Software Foundation; either// version 2.1 of the License, or (at your option) any later version. // This library is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU// Lesser General Public License for more details. // You should have received a copy of the GNU Lesser General Public// License along with this library; if not, write to the Free Software// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA// Local Includes#include "dense_submatrix.h"// // ------------------------------------------------------------// // Dense Matrix member functionstemplate<typename T>void DenseSubMatrix<T>::left_multiply (const DenseMatrixBase<T>& M2){ // (*this) <- M2 * M3 // Where: // (*this) = (m x n), // M2 = (m x p), // M3 = (p x n) // M3 is a simply a copy of *this DenseSubMatrix<T> M3(*this); // Call the multiply function in the base class this->multiply(*this, M2, M3);}template<typename T>void DenseSubMatrix<T>::right_multiply (const DenseMatrixBase<T>& M3){ // (*this) <- M2 * M3 // Where: // (*this) = (m x n), // M2 = (m x p), // M3 = (p x n) // M2 is simply a copy of *this DenseSubMatrix<T> M2(*this); // Call the multiply function in the base class this->multiply(*this, M2, M3);}//--------------------------------------------------------------// Explicit instantiationstemplate class DenseSubMatrix<Real>;#ifdef USE_COMPLEX_NUMBERStemplate class DenseSubMatrix<Complex>;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -