diff --git a/inst/include/csr_matrix_times_vector2.hpp b/inst/include/csr_matrix_times_vector2.hpp index 9c708d10e..19678a657 100644 --- a/inst/include/csr_matrix_times_vector2.hpp +++ b/inst/include/csr_matrix_times_vector2.hpp @@ -1,9 +1,6 @@ -#ifndef RSTANARM__CSR_MATRIX_TIMES_VECTOR2_HPP -#define RSTANARM__CSR_MATRIX_TIMES_VECTOR2_HPP +#ifndef RSTANARM_CSR_MATRIX_TIMES_VECTOR2_HPP +#define RSTANARM_CSR_MATRIX_TIMES_VECTOR2_HPP -/* - * This works exactly like csr_matrix_times_vector but faster and less safe - */ template inline Eigen::Matrix::type, @@ -20,6 +17,19 @@ csr_matrix_times_vector2(const int& m, return sm * b; } +/* + * This works exactly like csr_matrix_times_vector but faster and less safe + */ + template + Eigen::Matrix, + stan::value_type_t>, -1, 1> + csr_matrix_times_vector2(const int& m, const int& n, const T2__& w_arg__, + const std::vector& v, + const std::vector& u, const T5__& b_arg__, + std::ostream* pstream__) { + return stan::math::csr_matrix_times_vector(m, n, w_arg__, v, u, b_arg__); +} + /* This specialization is slower than the above templated version stan::math::vector_v csr_matrix_times_vector2(const int& m,