Automatic Differentiation
 
Loading...
Searching...
No Matches
to_soa_sparse_matrix.hpp File Reference
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/rev/core.hpp>
#include <stan/math/rev/meta.hpp>
#include <stan/math/prim/meta.hpp>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<int Options = Eigen::ColMajor, typename VarMatrix , typename Vec1 , typename Vec2 , require_var_t< VarMatrix > * = nullptr, require_eigen_dense_base_t< value_type_t< VarMatrix > > * = nullptr, require_all_std_vector_vt< std::is_integral, Vec1, Vec2 > * = nullptr>
auto stan::math::to_soa_sparse_matrix (int m, int n, VarMatrix &&w, Vec1 &&u, Vec2 &&v)
 Create a sparse matrix from the given SoA matrix and indexes.
 
template<int Options = Eigen::ColMajor, typename MatrixVar , typename Vec1 , typename Vec2 , require_eigen_dense_base_vt< is_var, MatrixVar > * = nullptr, require_all_std_vector_vt< std::is_integral, Vec1, Vec2 > * = nullptr>
auto stan::math::to_soa_sparse_matrix (int m, int n, MatrixVar &&w, Vec1 &&u, Vec2 &&v)
 Create a sparse matrix from the given AoS matrix of vars and indexes.
 
template<int Options = Eigen::ColMajor, typename Mat , typename Vec1 , typename Vec2 , require_eigen_dense_base_vt< std::is_arithmetic, Mat > * = nullptr, require_all_std_vector_vt< std::is_integral, Vec1, Vec2 > * = nullptr>
auto stan::math::to_soa_sparse_matrix (int m, int n, Mat &&w, Vec1 &&u, Vec2 &&v)
 Create a sparse matrix from the given matrix of floats and indexes.