Skip to content

Commit

Permalink
Merge branch 'master' of https://code.google.com/p/stan
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Carpenter committed Feb 5, 2013
2 parents 7847beb + 009b117 commit c5e7afc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/docs/stan-reference/appendices.tex
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ \subsubsection{Boost C++ Library Source}
\begin{itemize}
\item Home: http://www.boost.org/users/license.html
\item License: Boost Software License
\item Tested Version: 1.51.0
\item Tested Version: 1.52.0
\end{itemize}
%
The Boost source code is distributed with \Stan.
Expand All @@ -444,7 +444,7 @@ \subsubsection{Eigen Matrix and Linear Algebra Library Source}
\begin{itemize}
\item Home: \url{http://eigen.tuxfamily.org}
\item License: Mozilla Public License, version 2.0
\item Tested Version: 3.1.1
\item Tested Version: 3.1.2
\end{itemize}
%
The Eigen source code is distributed with \Stan.
Expand Down
8 changes: 4 additions & 4 deletions src/docs/stan-reference/commands.tex
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ \subsection{Compiling a \Stan Model}
\begin{quote}
\begin{Verbatim}[fontshape=sl]
> cd <stan-home>
> g++ -O3 -Lbin -Isrc -Ilib/boost_1.51.0 \
-Ilib/eigen_3.1.0 my_model.cpp -o my_model -lstan
> g++ -O3 -Lbin -Isrc -Ilib/boost_1.52.0 \
-Ilib/eigen_3.1.2 my_model.cpp -o my_model -lstan
\end{Verbatim}
\end{quote} %
The backslash (\Verb|\|) is used to indicate that the command is
Expand All @@ -457,9 +457,9 @@ \subsection{Compiling a \Stan Model}
directory,
\item[\code{-Isrc}] specifies that the directory \code{src} should be
searched for code (it contains the top-level \Stan headers),
\item[\code{-Ilib/eigen\_3.1.0}] specifies the directory for
\item[\code{-Ilib/eigen\_3.1.2}] specifies the directory for
the Eigen library,
\item[\code{-Ilib/boost\_1.51.0}] specifies the directory for the
\item[\code{-Ilib/boost\_1.52.0}] specifies the directory for the
Boost library,
\item[\code{my\_model.cpp}] specifies the name of the source file to
compile, and
Expand Down
1 change: 1 addition & 0 deletions src/stan/gm/generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,7 @@ namespace stan {
o << INDENT << " std::ostream* pstream__ = 0) {" << EOL2;

// use this dummy for inits
o << INDENT2 << "// Note: this is not a memory leak. Memory will be cleaned up with the arena allocator" << EOL;
o << INDENT2 << "stan::agrad::vari* DUMMY_VARI_PTR__ = new vari(std::numeric_limits<double>::quiet_NaN(),false);" << EOL;
o << INDENT2 << "stan::agrad::var DUMMY_VAR__ = var(DUMMY_VARI_PTR__);" << EOL2;

Expand Down

0 comments on commit c5e7afc

Please sign in to comment.