9#include "../seq/impl.hpp"
14#ifdef NUMERICS_HAS_CUDA
16 A.rows(),
A.cols(),
B.cols());
23#ifdef NUMERICS_HAS_CUDA
Dense row-major matrix with optional GPU storage.
void matmul(const Matrix &A, const Matrix &B, Matrix &C)
void matvec(const Matrix &A, const Vector &x, Vector &y)
void matmul(const Matrix &A, const Matrix &B, Matrix &C)
void matvec(const Matrix &A, const Vector &x, Vector &y)
void matmul(const real *A, const real *B, real *C, idx m, idx k, idx n)
C = A * B.
void matvec(const real *A, const real *x, real *y, idx rows, idx cols)
y = A * x (row-major A)
constexpr T ipow(T x) noexcept
Compute x^N at compile time via repeated squaring.