ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
ModuleBase::matrix_mul_vector_op< T, Device > Struct Template Reference

#include <math_kernel_op.h>

Collaboration diagram for ModuleBase::matrix_mul_vector_op< T, Device >:

Public Types

using Real = typename GetTypeReal< T >::type
 

Public Member Functions

void operator() (const int &m, const int &n, T *a, const int &lda, const Real *b, const Real alpha, T *c, const int &ldc)
 a * b * beta by each column
 

Member Typedef Documentation

◆ Real

template<typename T , typename Device >
using ModuleBase::matrix_mul_vector_op< T, Device >::Real = typename GetTypeReal<T>::type

Member Function Documentation

◆ operator()()

template<typename T , typename Device >
void ModuleBase::matrix_mul_vector_op< T, Device >::operator() ( const int &  m,
const int &  n,
T a,
const int &  lda,
const Real b,
const Real  alpha,
T c,
const int &  ldc 
)

a * b * beta by each column

Input Parameters

Parameters
m: row number
n: column number
a: input matrix
lda: leading dimension of matrix a
b: input vector
alpha: factor
ldc: leading dimension of matrix c

Output Parameters

Parameters
c: output matrix

The documentation for this struct was generated from the following file: