numerics
Loading...
Searching...
No Matches
impl.hpp
Go to the documentation of this file.
1/// @file core/backends/blas/impl.hpp
2/// @brief Private declarations for the BLAS 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);
13real norm(const Vector& x);
14
15void matmul(const Matrix& A, const Matrix& B, Matrix& C);
16void matvec(const Matrix& A, const Vector& x, Vector& y);
17void matadd(real alpha, const Matrix& A, real beta, const Matrix& B, Matrix& C);
18
19} // namespace num::backends::blas
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:50
void axpy(real alpha, const Vector &x, Vector &y)
Definition vector.cpp:41
void matmul(const Matrix &A, const Matrix &B, Matrix &C)
Definition matrix.cpp:35
void matadd(real alpha, const Matrix &A, real beta, const Matrix &B, Matrix &C)
Definition matrix.cpp:64
real norm(const Vector &x)
Definition vector.cpp:59
void scale(Vector &v, real alpha)
Definition vector.cpp:32
void matvec(const Matrix &A, const Vector &x, Vector &y)
Definition matrix.cpp:50
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.