Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Francesco Brarda
stan-math-petsc
Commits
f45fe3c6
Commit
f45fe3c6
authored
7 years ago
by
Yi Zhang
Browse files
Options
Download
Email Patches
Plain Diff
per review: remove enable_if clause; cleanup doc
parent
3eb8b40f
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
stan/math/prim/mat/fun/matrix_exp_multiply.hpp
+0
-1
stan/math/prim/mat/fun/matrix_exp_multiply.hpp
stan/math/prim/mat/fun/scale_matrix_exp_multiply.hpp
+0
-1
stan/math/prim/mat/fun/scale_matrix_exp_multiply.hpp
stan/math/rev/mat/fun/matrix_exp_multiply.hpp
+1
-4
stan/math/rev/mat/fun/matrix_exp_multiply.hpp
stan/math/rev/mat/fun/scale_matrix_exp_multiply.hpp
+1
-4
stan/math/rev/mat/fun/scale_matrix_exp_multiply.hpp
with
2 additions
and
10 deletions
+2
-10
stan/math/prim/mat/fun/matrix_exp_multiply.hpp
View file @
f45fe3c6
...
...
@@ -9,7 +9,6 @@ namespace math {
/**
* Return product of exp(A) and B, where A is a NxN double matrix,
* B is a NxCb double matrix, and t is a double
* @tparam N Rows and cols matrix A, also rows of matrix B
* @tparam Cb Columns matrix B
* @param[in] A Matrix
* @param[in] B Matrix
...
...
This diff is collapsed.
Click to expand it.
stan/math/prim/mat/fun/scale_matrix_exp_multiply.hpp
View file @
f45fe3c6
...
...
@@ -9,7 +9,6 @@ namespace math {
/**
* Return product of exp(At) and B, where A is a NxN double matrix,
* B is a NxCb double matrix, and t is a double
* @tparam N Rows and cols matrix A, also rows of matrix B
* @tparam Cb Columns matrix B
* @param[in] A Matrix
* @param[in] B Matrix
...
...
This diff is collapsed.
Click to expand it.
stan/math/rev/mat/fun/matrix_exp_multiply.hpp
View file @
f45fe3c6
...
...
@@ -393,7 +393,6 @@ matrix_exp_action(const Eigen::Matrix<Ta, N, N>& A,
/**
* Wrapper of matrix_exp_action function for a more literal name
* @tparam Ta scalar type matrix A
* @tparam N Rows and cols matrix A, also rows of matrix B
* @tparam Tb scalar type matrix B
* @tparam Cb Columns matrix B
* @param[in] A Matrix
...
...
@@ -401,9 +400,7 @@ matrix_exp_action(const Eigen::Matrix<Ta, N, N>& A,
* @return exponential of A multiplies B
*/
template
<
typename
Ta
,
typename
Tb
,
int
Cb
>
inline
typename
boost
::
enable_if_c
<
boost
::
is_same
<
Ta
,
var
>::
value
||
boost
::
is_same
<
Tb
,
var
>::
value
,
Eigen
::
Matrix
<
var
,
-
1
,
Cb
>
>::
type
inline
Eigen
::
Matrix
<
typename
stan
::
return_type
<
Ta
,
Tb
>::
type
,
-
1
,
Cb
>
matrix_exp_multiply
(
const
Eigen
::
Matrix
<
Ta
,
-
1
,
-
1
>&
A
,
const
Eigen
::
Matrix
<
Tb
,
-
1
,
Cb
>&
B
)
{
return
matrix_exp_action
(
A
,
B
);
...
...
This diff is collapsed.
Click to expand it.
stan/math/rev/mat/fun/scale_matrix_exp_multiply.hpp
View file @
f45fe3c6
...
...
@@ -14,7 +14,6 @@ namespace math {
/**
* Wrapper of matrix_exp_action function for a more literal name.
* @tparam Ta scalar type matrix A
* @tparam N Rows and cols matrix A, also rows of matrix B
* @tparam Tb scalar type matrix B
* @tparam Cb Columns matrix B
* @param[in] A Matrix
...
...
@@ -23,9 +22,7 @@ namespace math {
* @return exponential of At multiplies B
*/
template
<
typename
Ta
,
typename
Tb
,
int
Cb
>
inline
typename
boost
::
enable_if_c
<
boost
::
is_same
<
Ta
,
var
>::
value
||
boost
::
is_same
<
Tb
,
var
>::
value
,
Eigen
::
Matrix
<
var
,
-
1
,
Cb
>
>::
type
inline
Eigen
::
Matrix
<
typename
stan
::
return_type
<
Ta
,
Tb
>::
type
,
-
1
,
Cb
>
scale_matrix_exp_multiply
(
const
double
&
t
,
const
Eigen
::
Matrix
<
Ta
,
-
1
,
-
1
>&
A
,
const
Eigen
::
Matrix
<
Tb
,
-
1
,
Cb
>&
B
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help