Loading...
Searching...
No Matches
TrainingProduct.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3#pragma once
4
5#include <Eigen/Core>
6#include <memory>
7#include <string>
8
9namespace gpr::linalg {
10
11namespace schemeii {
12class Context;
13}
14
16 Eigen::Ref<const Eigen::MatrixXd, 0, Eigen::OuterStride<>>;
17using ProductMatrix = Eigen::Ref<Eigen::MatrixXd, 0, Eigen::OuterStride<>>;
18
25void configureTrainingProductLibrary(const std::string& library);
32std::shared_ptr<const schemeii::Context> schemeIIContext();
33
40 ProductMatrix c, bool transpose_a = false,
41 bool transpose_b = false, double alpha = 1.0,
42 double beta = 0.0, bool partitioned = false);
43
46 bool transpose_a = false,
47 bool transpose_b = false);
48
49} // namespace gpr::linalg
Dense and structured linear algebra behind the GP: Cholesky and eigen solvers, linear operators,...
Eigen::Ref< const Eigen::MatrixXd, 0, Eigen::OuterStride<> > ConstProductMatrix
Eigen::MatrixXd trainingProduct(ConstProductMatrix a, ConstProductMatrix b, bool transpose_a, bool transpose_b)
Allocating form with a native Eigen product when no device product runs.
Eigen::Ref< Eigen::MatrixXd, 0, Eigen::OuterStride<> > ProductMatrix
bool trainingProductLibraryLoaded()
A device library (not an in-process engine) is configured.
void configureTrainingProductLibrary(const std::string &library)
bool tryTrainingProduct(ConstProductMatrix a, ConstProductMatrix b, ProductMatrix c, bool transpose_a, bool transpose_b, double alpha, double beta, bool partitioned)
std::shared_ptr< const schemeii::Context > schemeIIContext()
bool trainingProductConfigured()
A device library or an in-process engine is configured.