numerics
Loading...
Searching...
No Matches
impl.hpp
Go to the documentation of this file.
1/// @file core/backends/omp/impl.hpp
2/// @brief Private declarations for the OpenMP backend.
3/// Only included by src/core/vector.cpp and src/core/matrix.cpp.
4#pragma once
5#include "core/vector.hpp"
6#include "core/matrix.hpp"
7
9
10void scale(Vector& v, real alpha);
11void axpy(real alpha, const Vector& x, Vector& y);
12real dot(const Vector& x, const Vector& y);
13
14void matmul(const Matrix& A, const Matrix& B, Matrix& C);
15void matvec(const Matrix& A, const Vector& x, Vector& y);
16void matadd(real alpha, const Matrix& A, real beta, const Matrix& B, Matrix& C);
17
18} // namespace num::backends::omp
Dense row-major matrix with optional GPU storage.
Definition matrix.hpp:12
Matrix operations.
real dot(const Vector &x, const Vector &y)
Definition vector.cpp:29
void matvec(const Matrix &A, const Vector &x, Vector &y)
Definition matrix.cpp:42
void matadd(real alpha, const Matrix &A, real beta, const Matrix &B, Matrix &C)
Definition matrix.cpp:56
void scale(Vector &v, real alpha)
Definition vector.cpp:9
void matmul(const Matrix &A, const Matrix &B, Matrix &C)
Definition matrix.cpp:14
void axpy(real alpha, const Vector &x, Vector &y)
Definition vector.cpp:19
double real
Definition types.hpp:10
real beta(real a, real b)
B(a, b) – beta function.
Definition math.hpp:242
constexpr T ipow(T x) noexcept
Compute x^N at compile time via repeated squaring.
Vector operations.