This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define STAN_OPENCL | |
#define STAN_OPENCL_CACHE | |
#define OPENCL_PLATFORM_ID 0 | |
#define OPENCL_DEVICE_ID 0 | |
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS | |
#define __CL_ENABLE_EXCEPTIONS | |
#include <stan/math/prim/scal/meta/partials_return_type.hpp> | |
#include <stan/math.hpp> | |
#include <Eigen/Dense> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define STAN_OPENCL | |
#define STAN_OPENCL_CACHE | |
#define OPENCL_PLATFORM_ID 0 | |
#define OPENCL_DEVICE_ID 0 | |
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS | |
#define __CL_ENABLE_EXCEPTIONS | |
#include <stan/math/prim/scal/meta/partials_return_type.hpp> | |
#include <stan/math.hpp> | |
#include <Eigen/Dense> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#define STAN_OPENCL | |
#define OPENCL_PLATFORM_ID 0 | |
#define OPENCL_DEVICE_ID 0 | |
#include <stan/math.hpp> | |
#include <stan/math/opencl/copy.hpp> | |
#include <stan/math/opencl/matrix_cl.hpp> | |
#include <stan/math/rev/mat/fun/gp_exp_quad_cov.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
//#define STAN_OPENCL | |
//#define OPENCL_PLATFORM_ID 0 | |
//#define OPENCL_DEVICE_ID 0 | |
#include <stan/math.hpp> | |
#include <stan/math/opencl/copy.hpp> | |
#include <stan/math/opencl/matrix_cl.hpp> | |
#include <stan/math/rev/mat/fun/gp_exp_quad_cov.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#define STAN_OPENCL | |
#define OPENCL_PLATFORM_ID 0 | |
#define OPENCL_DEVICE_ID 0 | |
#ifdef STAN_OPENCL | |
#include <stan/math.hpp> | |
#include <stan/math/opencl/add.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by tadej on 27. 07. 2018. | |
// | |
#define OPENCL_PLATFORM_ID 0 | |
#define OPENCL_DEVICE_ID 0 | |
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS | |
#define USE_TIMING_OUTPUTS | |
//#include <CL/cl.hpp> | |
#include <Eigen/Dense> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stan/math.hpp> | |
#include <stan/math/prim/mat/fun/symmetric_eigensolver.hpp> | |
#include <chrono> | |
#include <cstdio> | |
using namespace std; | |
using namespace Eigen; | |
using namespace stan::math; | |
double residual(const MatrixXd& a, const VectorXd& eigenvals, const MatrixXd& eigenvecs) { |
NewerOlder