numerics
Loading...
Searching...
No Matches
num::backends::seq Namespace Reference

Functions

void scale (Vector &v, real alpha)
 
void add (const Vector &x, const Vector &y, Vector &z)
 
void axpy (real alpha, const Vector &x, Vector &y)
 
real dot (const Vector &x, const Vector &y)
 
real norm (const Vector &x)
 
void matmul (const Matrix &A, const Matrix &B, Matrix &C)
 
void matmul_blocked (const Matrix &A, const Matrix &B, Matrix &C, idx block_size)
 
void matmul_register_blocked (const Matrix &A, const Matrix &B, Matrix &C, idx block_size, idx reg_size)
 
void matvec (const Matrix &A, const Vector &x, Vector &y)
 
void matadd (real alpha, const Matrix &A, real beta, const Matrix &B, Matrix &C)
 

Function Documentation

◆ add()

void num::backends::seq::add ( const Vector x,
const Vector y,
Vector z 
)

Definition at line 13 of file vector.cpp.

References num::ipow(), and num::BasicVector< T >::size().

Referenced by num::add().

◆ axpy()

void num::backends::seq::axpy ( real  alpha,
const Vector x,
Vector y 
)

◆ dot()

real num::backends::seq::dot ( const Vector x,
const Vector y 
)

◆ matadd()

void num::backends::seq::matadd ( real  alpha,
const Matrix A,
real  beta,
const Matrix B,
Matrix C 
)

◆ matmul()

void num::backends::seq::matmul ( const Matrix A,
const Matrix B,
Matrix C 
)

Definition at line 14 of file matrix.cpp.

References num::ipow().

Referenced by num::backends::gpu::matmul(), num::backends::omp::matmul(), and num::matmul().

◆ matmul_blocked()

void num::backends::seq::matmul_blocked ( const Matrix A,
const Matrix B,
Matrix C,
idx  block_size 
)

◆ matmul_register_blocked()

void num::backends::seq::matmul_register_blocked ( const Matrix A,
const Matrix B,
Matrix C,
idx  block_size,
idx  reg_size 
)

Definition at line 107 of file matrix.cpp.

References num::ipow().

Referenced by num::matmul_register_blocked().

◆ matvec()

void num::backends::seq::matvec ( const Matrix A,
const Vector x,
Vector y 
)

◆ norm()

real num::backends::seq::norm ( const Vector x)

◆ scale()

void num::backends::seq::scale ( Vector v,
real  alpha 
)