/usr/include/trilinos/AbstractLinAlgPack_MatrixOpSerial.hpp is in libtrilinos-dev 10.4.0.dfsg-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 | // @HEADER
// ***********************************************************************
//
// Moocho: Multi-functional Object-Oriented arCHitecture for Optimization
// Copyright (2003) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of this work by or on behalf of the U.S. Government.
//
// 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
// Questions? Contact Roscoe A. Bartlett (rabartl@sandia.gov)
//
// ***********************************************************************
// @HEADER
#ifndef SPARSE_LINALG_PACK_MATRIX_WITH_OP_SERIAL_H
#define SPARSE_LINALG_PACK_MATRIX_WITH_OP_SERIAL_H
#include <iosfwd>
#include "AbstractLinAlgPack_Types.hpp"
#include "AbstractLinAlgPack_MatrixOp.hpp"
#include "AbstractLinAlgPack_VectorSpaceSerial.hpp"
namespace AbstractLinAlgPack {
/** \brief Base class for all matrices implemented in a shared memory address space.
*
* This base class inherites from <tt>AbstractLinAlgPack::MatrixOp</tt> and
* provides a means of transition from purely abstract (i.e. parallel, out-of-core)
* linear algebra to serial linear algebra (with explicit dense vectors and
* matrices.
*
* This matrix subclass simply uses <tt>dynamic_cast<></tt> to map from the abstract interfaces
* <tt>AbstractLinAlgPack::Vector</tt>, <tt>AbstractLinAlgPack::VectorMutable</tt>,
* <tt>AbstractLinAlgPack::MatrixOp</tt> to a concreate types using a few standarized serial
* interfaces <tt>VectorGetSparse</tt>, <tt>VectorMutableDense</tt> ...
* If these interfaces are not supported by the vector and matrix arguments, then exceptions may
* be thrown.
*
* Note that every method from \c MatrixOp is not overridden here. Specifically, the methods
* <tt>MatrixOp::zero_out()</tt> and <tt>MatrixOp::sub_view()</tt>
* are not overridden. These methods have default implementations that should be sufficient
* for most uses but subclasses may want to provide specialized implementations anyway.
*
* These methods should not be called directly but instead through a set of
* \ref MatrixWithOpSerial_funcs "provided nonmember functions".
*
* ToDo: Finish documentation!
*/
class MatrixOpSerial
: virtual public AbstractLinAlgPack::MatrixOp // doxygen needs full name
{
public:
/** \brief . */
using MatrixOp::Mp_StM;
/** \brief . */
using MatrixOp::Mp_StMtP;
/** \brief . */
using MatrixOp::Mp_StPtM;
/** \brief . */
using MatrixOp::Mp_StPtMtP;
/** \brief . */
using MatrixOp::Vp_StMtV;
/** \brief . */
using MatrixOp::Mp_StMtM;
/** @name Level-1 BLAS */
//@{
/// gms_lhs += alpha * op(M_rhs) (BLAS xAXPY)
virtual void Mp_StM(DMatrixSlice* gms_lhs, value_type alpha
, BLAS_Cpp::Transp trans_rhs) const;
/// gms_lhs += alpha * op(M_rhs) * op(P_rhs)
virtual void Mp_StMtP(DMatrixSlice* gms_lhs, value_type alpha
, BLAS_Cpp::Transp M_trans
, const GenPermMatrixSlice& P_rhs, BLAS_Cpp::Transp P_rhs_trans
) const;
/// gms_lhs += alpha * op(P) * op(M_rhs)
virtual void Mp_StPtM(DMatrixSlice* gms_lhs, value_type alpha
, const GenPermMatrixSlice& P_rhs, BLAS_Cpp::Transp P_rhs_trans
, BLAS_Cpp::Transp M_trans
) const;
/// gms_lhs += alpha * op(P_rhs1) * op(M_rhs) * op(P_rhs2)
virtual void Mp_StPtMtP(DMatrixSlice* gms_lhs, value_type alpha
, const GenPermMatrixSlice& P_rhs1, BLAS_Cpp::Transp P_rhs1_trans
, BLAS_Cpp::Transp M_trans
, const GenPermMatrixSlice& P_rhs2, BLAS_Cpp::Transp P_rhs2_trans
) const;
//@}
/** @name Level-2 BLAS */
//@{
/// vs_lhs = alpha * op(M_rhs1) * vs_rhs2 + beta * vs_lhs (BLAS xGEMV)
virtual void Vp_StMtV(DVectorSlice* vs_lhs, value_type alpha, BLAS_Cpp::Transp trans_rhs1
, const DVectorSlice& vs_rhs2, value_type beta) const = 0;
/// vs_lhs = alpha * op(M_rhs1) * sv_rhs2 + beta * vs_lhs (BLAS xGEMV)
virtual void Vp_StMtV(DVectorSlice* vs_lhs, value_type alpha, BLAS_Cpp::Transp trans_rhs1
, const SpVectorSlice& sv_rhs2, value_type beta) const;
/// vs_lhs = alpha * op(P_rhs1) * op(M_rhs2) * vs_rhs3 + beta * vs_rhs
virtual void Vp_StPtMtV(DVectorSlice* vs_lhs, value_type alpha
, const GenPermMatrixSlice& P_rhs1, BLAS_Cpp::Transp P_rhs1_trans
, BLAS_Cpp::Transp M_rhs2_trans
, const DVectorSlice& vs_rhs3, value_type beta) const;
/// vs_lhs = alpha * op(P_rhs1) * op(M_rhs2) * sv_rhs3 + beta * vs_rhs
virtual void Vp_StPtMtV(DVectorSlice* vs_lhs, value_type alpha
, const GenPermMatrixSlice& P_rhs1, BLAS_Cpp::Transp P_rhs1_trans
, BLAS_Cpp::Transp M_rhs2_trans
, const SpVectorSlice& sv_rhs3, value_type beta) const;
/// result = vs_rhs1' * op(M_rhs2) * vs_rhs3
virtual value_type transVtMtV(const DVectorSlice& vs_rhs1, BLAS_Cpp::Transp trans_rhs2
, const DVectorSlice& vs_rhs3) const;
/** \brief Perform a specialized rank-2k update of a dense symmetric matrix of the form:
*
* #sym_lhs += alpha*op(P1')*op(M)*op(P2) + alpha*op(P2')*op(M')*op(P1) + beta*sym_lhs#
*
* The reason that this operation is being classified as a level-2 operation is that the
* total flops should be of O(n^2) and not O(n^2*k).
*
* The default implementation is based on #Mp_StMtP(...)# and #Mp_StPtM(...)#. Of course
* in situations where this default implemention is inefficient the subclass should
* override this method.
*/
virtual void syr2k(
BLAS_Cpp::Transp M_trans, value_type alpha
, const GenPermMatrixSlice& P1, BLAS_Cpp::Transp P1_trans
, const GenPermMatrixSlice& P2, BLAS_Cpp::Transp P2_trans
, value_type beta, DMatrixSliceSym* sym_lhs ) const;
//@}
/** @name Level-3 BLAS */
//@{
/// gms_lhs = alpha * op(M_rhs1) * op(gms_rhs2) + beta * gms_lhs (right) (xGEMM)
virtual void Mp_StMtM(DMatrixSlice* gms_lhs, value_type alpha
, BLAS_Cpp::Transp trans_rhs1, const DMatrixSlice& gms_rhs2
, BLAS_Cpp::Transp trans_rhs2, value_type beta) const;
/// gms_lhs = alpha * op(gms_rhs1) * op(M_rhs2) + beta * gms_lhs (left) (xGEMM)
virtual void Mp_StMtM(DMatrixSlice* gms_lhs, value_type alpha, const DMatrixSlice& gms_rhs1
, BLAS_Cpp::Transp trans_rhs1, BLAS_Cpp::Transp trans_rhs2, value_type beta) const;
/// gms_lhs = alpha * op(M_rhs1) * op(mwo_rhs2) + beta * gms_lhs (right) (xGEMM)
virtual void Mp_StMtM(DMatrixSlice* gms_lhs, value_type alpha
, BLAS_Cpp::Transp trans_rhs1, const MatrixOpSerial& mwo_rhs2
, BLAS_Cpp::Transp trans_rhs2, value_type beta) const;
/// gms_lhs = alpha * op(M_rhs1) * op(sym_rhs2) + beta * gms_lhs (right) (xSYMM)
virtual void Mp_StMtM(DMatrixSlice* gms_lhs, value_type alpha
, BLAS_Cpp::Transp trans_rhs1, const DMatrixSliceSym& sym_rhs2
, BLAS_Cpp::Transp trans_rhs2, value_type beta) const;
/// gms_lhs = alpha * op(sym_rhs1) * op(M_rhs2) + beta * gms_lhs (left) (xSYMM)
virtual void Mp_StMtM(DMatrixSlice* gms_lhs, value_type alpha, const DMatrixSliceSym& sym_rhs1
, BLAS_Cpp::Transp trans_rhs1, BLAS_Cpp::Transp trans_rhs2, value_type beta) const;
/// gms_lhs = alpha * op(M_rhs1) * op(tri_rhs2) + beta * gms_lhs (right) (xTRMM)
virtual void Mp_StMtM(DMatrixSlice* gms_lhs, value_type alpha
, BLAS_Cpp::Transp trans_rhs1, const DMatrixSliceTri& tri_rhs2
, BLAS_Cpp::Transp trans_rhs2, value_type beta) const;
/// gms_lhs = alpha * op(tri_rhs1) * op(M_rhs2) + beta * gms_lhs (left) (xTRMM)
virtual void Mp_StMtM(DMatrixSlice* gms_lhs, value_type alpha, const DMatrixSliceTri& tri_rhs1
, BLAS_Cpp::Transp trans_rhs1, BLAS_Cpp::Transp trans_rhs2, value_type beta) const;
/** \brief Perform a rank-k update of a dense symmetric matrix of the form:
*
* #sym_lhs += op(M)*op(M') + beta*sym_lhs#
*
* The default implementation is based on #Vp_StMtV(...)#. Of course
* in situations where this default implemention is inefficient
* the subclass should override this method.
*/
virtual void syrk(
BLAS_Cpp::Transp M_trans, value_type alpha
, value_type beta, DMatrixSliceSym* sym_lhs ) const;
//@}
/** @name Overridden from MatrixOp */
//@{
/** \brief . */
const VectorSpace& space_cols() const;
/** \brief . */
const VectorSpace& space_rows() const;
/** \brief . */
std::ostream& output(std::ostream& out) const;
/** \brief . */
bool Mp_StM(
MatrixOp* mwo_lhs, value_type alpha
,BLAS_Cpp::Transp trans_rhs
) const;
/** \brief . */
bool Mp_StMtP(
MatrixOp* mwo_lhs, value_type alpha
, BLAS_Cpp::Transp M_trans
, const GenPermMatrixSlice& P_rhs, BLAS_Cpp::Transp P_rhs_trans
) const;
/** \brief . */
bool Mp_StPtM(
MatrixOp* mwo_lhs, value_type alpha
, const GenPermMatrixSlice& P_rhs, BLAS_Cpp::Transp P_rhs_trans
, BLAS_Cpp::Transp M_trans
) const;
/** \brief . */
bool Mp_StPtMtP(
MatrixOp* mwo_lhs, value_type alpha
,const GenPermMatrixSlice& P_rhs1, BLAS_Cpp::Transp P_rhs1_trans
,BLAS_Cpp::Transp M_trans
,const GenPermMatrixSlice& P_rhs2, BLAS_Cpp::Transp P_rhs2_trans
) const;
/** \brief . */
void Vp_StMtV(
VectorMutable* v_lhs, value_type alpha, BLAS_Cpp::Transp trans_rhs1
, const Vector& v_rhs2, value_type beta) const;
/** \brief . */
void Vp_StMtV(
VectorMutable* v_lhs, value_type alpha, BLAS_Cpp::Transp trans_rhs1
, const SpVectorSlice& sv_rhs2, value_type beta) const;
/** \brief . */
void Vp_StPtMtV(
VectorMutable* v_lhs, value_type alpha
, const GenPermMatrixSlice& P_rhs1, BLAS_Cpp::Transp P_rhs1_trans
, BLAS_Cpp::Transp M_rhs2_trans
, const Vector& v_rhs3, value_type beta) const;
/** \brief . */
void Vp_StPtMtV(
VectorMutable* v_lhs, value_type alpha
, const GenPermMatrixSlice& P_rhs1, BLAS_Cpp::Transp P_rhs1_trans
, BLAS_Cpp::Transp M_rhs2_trans
, const SpVectorSlice& sv_rhs3, value_type beta) const;
/** \brief . */
value_type transVtMtV(
const Vector& v_rhs1, BLAS_Cpp::Transp trans_rhs2
, const Vector& v_rhs3) const;
/** \brief . */
value_type transVtMtV(
const SpVectorSlice& sv_rhs1, BLAS_Cpp::Transp trans_rhs2
, const SpVectorSlice& sv_rhs3) const;
/** \brief . */
void syr2k(
BLAS_Cpp::Transp M_trans, value_type alpha
, const GenPermMatrixSlice& P1, BLAS_Cpp::Transp P1_trans
, const GenPermMatrixSlice& P2, BLAS_Cpp::Transp P2_trans
, value_type beta, MatrixSymOp* symwo_lhs ) const;
/** \brief . */
bool Mp_StMtM(
MatrixOp* mwo_lhs, value_type alpha
,BLAS_Cpp::Transp trans_rhs1
,const MatrixOp& mwo_rhs2, BLAS_Cpp::Transp trans_rhs2
,value_type beta ) const;
/** \brief . */
bool syrk(
BLAS_Cpp::Transp M_trans, value_type alpha
,value_type beta, MatrixSymOp* sym_lhs ) const;
//@}
private:
// ////////////////////////////////////
// Private data members
mutable VectorSpaceSerial space_cols_;
mutable VectorSpaceSerial space_rows_;
// ////////////////////////////////////
// Private member functions
}; // end class MatrixOpSerial
/** \defgroup MatrixWithOpSerial_funcs MatrixOpSerial nonmember inline functions.
*
* These nonmember functions allow operations to be called on \c MatrixOpSerial objects
* in similar manner to those in \c DenseLinAlgPack.
*/
//@{
/** @name Level-1 BLAS */
//@{
/// gms_lhs += alpha * op(M_rhs) (BLAS xAXPY)
inline void Mp_StM(DMatrixSlice* gms_lhs, value_type alpha, const MatrixOpSerial& M_rhs
, BLAS_Cpp::Transp trans_rhs)
{
M_rhs.Mp_StM(gms_lhs,alpha,trans_rhs);
}
/// gms_lhs += alpha * op(M_rhs) * op(P_rhs)
inline void Mp_StMtP(DMatrixSlice* gms_lhs, value_type alpha
, const MatrixOpSerial& M_rhs, BLAS_Cpp::Transp M_trans
, const GenPermMatrixSlice& P_rhs, BLAS_Cpp::Transp P_rhs_trans
)
{
M_rhs.Mp_StMtP(gms_lhs,alpha,M_trans,P_rhs,P_rhs_trans);
}
/// gms_lhs += alpha * op(P) * op(M_rhs)
inline void Mp_StPtM(DMatrixSlice* gms_lhs, value_type alpha
, const GenPermMatrixSlice& P_rhs, BLAS_Cpp::Transp P_rhs_trans
, const MatrixOpSerial& M_rhs, BLAS_Cpp::Transp M_trans
)
{
M_rhs.Mp_StPtM(gms_lhs,alpha,P_rhs,P_rhs_trans,M_trans);
}
/// gms_lhs += alpha * op(P_rhs1) * op(M_rhs) * op(P_rhs2)
inline void Mp_StPtMtP(DMatrixSlice* gms_lhs, value_type alpha
, const GenPermMatrixSlice& P_rhs1, BLAS_Cpp::Transp P_rhs1_trans
, const MatrixOpSerial& M_rhs, BLAS_Cpp::Transp trans_rhs
, const GenPermMatrixSlice& P_rhs2, BLAS_Cpp::Transp P_rhs2_trans
)
{
M_rhs.Mp_StPtMtP(gms_lhs,alpha,P_rhs1,P_rhs1_trans,trans_rhs,P_rhs2,P_rhs2_trans);
}
//@}
/** @name Level-2 BLAS */
//@{
/// vs_lhs = alpha * op(M_rhs1) * vs_rhs2 + beta * vs_lhs (BLAS xGEMV)
inline void Vp_StMtV(DVectorSlice* vs_lhs, value_type alpha, const MatrixOpSerial& M_rhs1
, BLAS_Cpp::Transp trans_rhs1, const DVectorSlice& vs_rhs2, value_type beta = 1.0)
{
M_rhs1.Vp_StMtV(vs_lhs,alpha,trans_rhs1,vs_rhs2,beta);
}
/// vs_lhs = alpha * op(M_rhs1) * sv_rhs2 + beta * vs_lhs (BLAS xGEMV)
inline void Vp_StMtV(DVectorSlice* vs_lhs, value_type alpha, const MatrixOpSerial& M_rhs1
, BLAS_Cpp::Transp trans_rhs1, const SpVectorSlice& sv_rhs2, value_type beta = 1.0)
{
M_rhs1.Vp_StMtV(vs_lhs,alpha,trans_rhs1,sv_rhs2,beta);
}
/// vs_lhs = alpha * op(P_rhs1) * op(M_rhs2) * vs_rhs3 + beta * vs_rhs
inline void Vp_StPtMtV(DVectorSlice* vs_lhs, value_type alpha
, const GenPermMatrixSlice& P_rhs1, BLAS_Cpp::Transp P_rhs1_trans
, const MatrixOpSerial& M_rhs2, BLAS_Cpp::Transp M_rhs2_trans
, const DVectorSlice& vs_rhs3, value_type beta = 1.0)
{
M_rhs2.Vp_StPtMtV(vs_lhs,alpha,P_rhs1,P_rhs1_trans,M_rhs2_trans,vs_rhs3,beta);
}
/// vs_lhs = alpha * op(P_rhs1) * op(M_rhs2) * sv_rhs3 + beta * vs_rhs
inline void Vp_StPtMtV(DVectorSlice* vs_lhs, value_type alpha
, const GenPermMatrixSlice& P_rhs1, BLAS_Cpp::Transp P_rhs1_trans
, const MatrixOpSerial& M_rhs2, BLAS_Cpp::Transp M_rhs2_trans
, const SpVectorSlice& sv_rhs3, value_type beta = 1.0)
{
M_rhs2.Vp_StPtMtV(vs_lhs,alpha,P_rhs1,P_rhs1_trans,M_rhs2_trans,sv_rhs3,beta);
}
/// result = vs_rhs1' * op(M_rhs2) * vs_rhs3
inline value_type transVtMtV(const DVectorSlice& vs_rhs1, const MatrixOpSerial& M_rhs2
, BLAS_Cpp::Transp trans_rhs2, const DVectorSlice& vs_rhs3)
{
return M_rhs2.transVtMtV(vs_rhs1,trans_rhs2,vs_rhs3);
}
/// result = sv_rhs1' * op(M_rhs2) * sv_rhs3
inline value_type transVtMtV(const SpVectorSlice& sv_rhs1, const MatrixOpSerial& M_rhs2
, BLAS_Cpp::Transp trans_rhs2, const SpVectorSlice& sv_rhs3)
{
return M_rhs2.transVtMtV(sv_rhs1,trans_rhs2,sv_rhs3);
}
//@}
/** @name Level-3 BLAS */
//@{
/// gms_lhs = alpha * op(M_rhs1) * op(gms_rhs2) + beta * gms_lhs (right) (xGEMM)
inline void Mp_StMtM(DMatrixSlice* gms_lhs, value_type alpha, const MatrixOpSerial& M_rhs1
, BLAS_Cpp::Transp trans_rhs1, const DMatrixSlice& gms_rhs2
, BLAS_Cpp::Transp trans_rhs2, value_type beta = 1.0)
{
M_rhs1.Mp_StMtM(gms_lhs,alpha,trans_rhs1,gms_rhs2,trans_rhs2,beta);
}
/// gms_lhs = alpha * op(gms_rhs1) * op(M_rhs2) + beta * gms_lhs (left) (xGEMM)
inline void Mp_StMtM(DMatrixSlice* gms_lhs, value_type alpha, const DMatrixSlice& gms_rhs1
, BLAS_Cpp::Transp trans_rhs1, const MatrixOpSerial& M_rhs2, BLAS_Cpp::Transp trans_rhs2
, value_type beta = 1.0)
{
M_rhs2.Mp_StMtM(gms_lhs,alpha,gms_rhs1,trans_rhs1,trans_rhs2,beta);
}
/// gms_lhs = alpha * op(mwo_rhs1) * op(mwo_rhs2) + beta * gms_lhs (right) (xGEMM)
inline void Mp_StMtM(DMatrixSlice* gms_lhs, value_type alpha, const MatrixOpSerial& mwo_rhs1
, BLAS_Cpp::Transp trans_rhs1, const MatrixOpSerial& gms_rhs2
, BLAS_Cpp::Transp trans_rhs2, value_type beta = 1.0)
{
mwo_rhs1.Mp_StMtM(gms_lhs,alpha,trans_rhs1,gms_rhs2,trans_rhs2,beta);
}
/// gms_lhs = alpha * op(M_rhs1) * op(sym_rhs2) + beta * gms_lhs (right) (xSYMM)
inline void Mp_StMtM(DMatrixSlice* gms_lhs, value_type alpha, const MatrixOpSerial& M_rhs1
, BLAS_Cpp::Transp trans_rhs1, const DMatrixSliceSym& sym_rhs2
, BLAS_Cpp::Transp trans_rhs2, value_type beta = 1.0)
{
M_rhs1.Mp_StMtM(gms_lhs,alpha,trans_rhs1,sym_rhs2,trans_rhs2,beta);
}
/// gms_lhs = alpha * op(sym_rhs1) * op(M_rhs2) + beta * gms_lhs (left) (xSYMM)
inline void Mp_StMtM(DMatrixSlice* gms_lhs, value_type alpha, const DMatrixSliceSym& sym_rhs1
, BLAS_Cpp::Transp trans_rhs1, const MatrixOpSerial& M_rhs2, BLAS_Cpp::Transp trans_rhs2
, value_type beta = 1.0)
{
M_rhs2.Mp_StMtM(gms_lhs,alpha,sym_rhs1,trans_rhs1,trans_rhs2,beta);
}
/// gms_lhs = alpha * op(M_rhs1) * op(tri_rhs2) + beta * gms_lhs (right) (xTRMM)
inline void Mp_StMtM(DMatrixSlice* gms_lhs, value_type alpha, const MatrixOpSerial& M_rhs1
, BLAS_Cpp::Transp trans_rhs1, const DMatrixSliceTri& tri_rhs2, BLAS_Cpp::Transp trans_rhs2
, value_type beta = 1.0)
{
M_rhs1.Mp_StMtM(gms_lhs,alpha,trans_rhs1,tri_rhs2,trans_rhs2,beta);
}
/// gms_lhs = alpha * op(tri_rhs1) * op(M_rhs2) + beta * gms_lhs (left) (xTRMM)
inline void Mp_StMtM(DMatrixSlice* gms_lhs, value_type alpha, const DMatrixSliceTri& tri_rhs1
, BLAS_Cpp::Transp trans_rhs1, const MatrixOpSerial& M_rhs2, BLAS_Cpp::Transp trans_rhs2
, value_type beta = 1.0)
{
M_rhs2.Mp_StMtM(gms_lhs,alpha,tri_rhs1,trans_rhs1,trans_rhs2,beta);
}
//@}
//@}
} // end namespace AbstractLinAlgPack
#endif // SPARSE_LINALG_PACK_MATRIX_WITH_OP_SERIAL_H
|