All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
crossprod.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_MAT_FUN_CROSSPROD_HPP
#define STAN_MATH_PRIM_MAT_FUN_CROSSPROD_HPP
#include <stan/math/prim/mat/fun/typedefs.hpp>
#include <stan/math/prim/mat/fun/tcrossprod.hpp>
namespace stan {
namespace math {
inline matrix_d
crossprod(const matrix_d& M) {
return tcrossprod(static_cast<matrix_d>(M.transpose()));
}
}
}
#endif
tcrossprod.hpp
stan::math::tcrossprod
Eigen::Matrix< fvar< T >, R, R > tcrossprod(const Eigen::Matrix< fvar< T >, R, C > &m)
Definition: tcrossprod.hpp:17
stan::math::crossprod
Eigen::Matrix< fvar< T >, C, C > crossprod(const Eigen::Matrix< fvar< T >, R, C > &m)
Definition: crossprod.hpp:17
stan::math::matrix_d
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > matrix_d
Type for matrix of double values.
Definition: typedefs.hpp:23
typedefs.hpp

[ Stan Home Page ] © 2011–2015, Stan Development Team.