ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
d3arr2a.cpp File Reference

(Last Changed on June 29, 2017 for git-revision dbacee949c8e51eb65a0162318f36fa4f3f27557.)

#include "fvar.hpp"

Go to the source code of this file.

Functions

d3_array cos (const d3_array &arr3)
 Returns d3_array results with computed cos from elements in arr3. More...
 
d3_array elem_div (const d3_array &a, const d3_array &b)
 Returns d3_array results with computed elements division of a(i, j, k) / b(i, j, k). More...
 
d3_array elem_prod (const d3_array &a, const d3_array &b)
 Returns d3_array results with computed elements product of a(i, j, k) * b(i, j, k). More...
 
d3_array exp (const d3_array &arr3)
 Returns d3_array results with computed exp from elements in arr3. More...
 
d3_array log (const d3_array &arr3)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
double norm (const d3_array &a)
 Return computed norm value of a. More...
 
double norm2 (const d3_array &a)
 Return sum of squared elements in a. More...
 
d3_array operator* (const d3_array &a, double value)
 Returns d3_array results of multiplying elements in a with value a(i, j, k) * value. More...
 
d3_array operator* (double value, const d3_array &a)
 Returns d3_array results of multiplying value by elements in a value * a(i, j, k). More...
 
d3_array operator+ (const d3_array &a, const d3_array &b)
 Returns d3_array results with computed elements addition of a(i, j, k) + b(i, j, k). More...
 
d3_array operator+ (double value, const d3_array &a)
 Returns d3_array results with adding elements in a to value value + a(i, j, k). More...
 
d3_array operator+ (const d3_array &a, double value)
 Returns d3_array results with subtracting elements in a to value a(i, j, k) + value. More...
 
d3_array operator- (const d3_array &a, const d3_array &b)
 Returns d3_array results with computed elements addition of a(i, j, k) + b(i, j, k). More...
 
d3_array operator- (double value, const d3_array &a)
 Returns d3_array results with subtracting elements in a to value value - a(i, j, k). More...
 
d3_array operator- (const d3_array &a, double value)
 Returns d3_array results with subtracting elements in a to value a(i, j, k) - value. More...
 
d3_array sin (const d3_array &arr3)
 Returns d3_array results with computed sin from elements in arr3. More...
 
double sumsq (const d3_array &a)
 
d3_array tan (const d3_array &arr3)
 Returns d3_array results with computed tan from elements in arr3. More...
 

Function Documentation

d3_array cos ( const d3_array arr3)

Returns d3_array results with computed cos from elements in arr3.

Parameters
arr3d3_array

Definition at line 58 of file d3arr2a.cpp.

Referenced by bessj0(), bessj1(), bessy0(), bessy1(), cos(), tiny_ad::D_tan(), DF_dvsin(), DF_dvtan(), dfboundp(), ncos(), ndfboundp(), randn(), sin(), and tan().

d3_array elem_div ( const d3_array a,
const d3_array b 
)
d3_array elem_prod ( const d3_array a,
const d3_array b 
)
d3_array exp ( const d3_array arr3)

Returns d3_array results with computed exp from elements in arr3.

Parameters
arr3d3_array

Definition at line 28 of file d3arr2a.cpp.

Referenced by _dtweedie(), function_minimizer::adapt_eps(), add_hist_values(), bessi0(), bessi1(), bessk0(), bessk1(), beta(), betai(), bounded_cumd_norm(), bounded_robust_multivariate_normal(), bounder(), boundp(), function_minimizer::build_tree(), calculate_importance_sample(), calculate_importance_sample_block_diagonal(), calculate_importance_sample_block_diagonal_funnel(), calculate_importance_sample_block_diagonal_option2(), calculate_importance_sample_block_diagonal_option_antithetical(), calculate_importance_sample_funnel(), calculate_importance_sample_shess(), cmvbvu_(), cmvphi_(), cumd_exp(), cumd_exponential(), cumd_logistic(), cumd_norm(), cumd_normal_logistic_mixture(), density_negbinomial(), df_cumd_normal_logistic_mixture(), df_cumd_normal_mixture(), DF_dvmfexp(), dfboundp(), dflogistic(), function_minimizer::do_gauss_hermite_integration(), function_minimizer::do_gauss_hermite_integration_multi(), eplogis(), exp(), function_minimizer::find_reasonable_stepsize(), gamma_density(), gcf(), generalized_Ricker1(), generalized_Ricker2(), laplace_approximation_calculator::generate_antithetical_rvs(), get_bounded_normal(), get_bounded_normal_virtual(), get_ft(), laplace_approximation_calculator::get_hessian_components_banded_lme(), laplace_approximation_calculator::get_hessian_from_components_lme(), get_initial_u(), Gompertz(), gser(), function_minimizer::hybrid_mcmc_routine(), inv_cumd_beta_stable(), inv_cumd_gamma(), inv_cumd_norm(), inv_cumd_norm_ln(), inv_cumd_norm_logistic(), inv_cumd_normal_logistic_mixture(), inv_cumd_normal_mixture(), invlogit(), log_der_logistic(), log_likelihood_mixture(), log_likelihood_mixture_02(), logistic(), logistic3(), logisticK(), make_preliminary_hist(), function_minimizer::mcmc_routine(), mfexp(), monomolecular(), mvbvu_(), mvphi_(), ndfboundp(), negbinomial_density(), new_probing_bounded_multivariate_normal(), new_probing_bounded_multivariate_normal_mcmc(), normal_tail_right(), function_minimizer::normalize_posterior_distribution(), normalized_gauss_hermite(), old_cumd_norm(), old_inv_cumd_beta_stable(), pbeta(), pow(), tiny_ad::pow(), probing_bounded_multivariate_normal(), probing_bounded_multivariate_normal_mcmc(), randpoisson(), Ricker(), rmvlogistic(), robust_regression(), function_minimizer::rwm_mcmc_routine(), sgamma(), function_minimizer::shmc_mcmc_routine(), and theta_logistic().

d3_array log ( const d3_array arr3)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns d3_array results with computed log from elements in arr3.

Parameters
arr3d3_array

Definition at line 13 of file d3arr2a.cpp.

Referenced by _dtweedie(), AD_pow_112(), AD_pow_12(), AD_pow_122(), AD_pow_2(), AD_pow_22(), AD_pow_222(), function_minimizer::adapt_eps(), bessk0(), bessk1(), bessy0(), bessy1(), betai(), bounded_multivariate_normal(), bounded_multivariate_normal_mcmc(), bounded_multivariate_uniform(), bounded_multivariate_uniform_mcmc(), bounded_robust_multivariate_normal(), boundp(), boundpin(), calculate_importance_sample(), calculate_importance_sample_block_diagonal(), calculate_importance_sample_block_diagonal_funnel(), calculate_importance_sample_block_diagonal_option2(), calculate_importance_sample_block_diagonal_option_antithetical(), calculate_importance_sample_funnel(), calculate_importance_sample_shess(), calculate_laplace_approximation(), dbeta(), dbinom(), density_negbinomial(), DF_cdvpow(), DF_dvdvpow(), df_ln_det_choleski(), dgamma(), dinvgamma(), dlnorm(), dmultinom(), dmvlogistic(), dnbinom(), dnorm(), function_minimizer::do_gauss_hermite_integration(), function_minimizer::do_gauss_hermite_integration_multi(), dpois(), dstudent_t(), dunif(), dzinbinom(), expdev(), expm(), fcomp1(), gamma_density(), gammln(), gammlnguts(), gasdev(), gcf(), laplace_approximation_calculator::generate_antithetical_rvs(), get_bounded_cauchy(), get_bounded_mixture(), get_bounded_normal(), get_bounded_normal_virtual(), laplace_approximation_calculator::get_gradient_for_hessian_calcs(), function_minimizer::get_hybrid_monte_carlo_value(), get_initial_u(), get_ln_det(), gser(), function_minimizer::hybrid_mcmc_routine(), inv(), inv_cumd_exp(), inv_cumd_exponential(), inv_cumd_gamma(), inv_cumd_logistic(), inv_cumd_mixture(), inv_cumd_mixture_02(), inv_cumd_norm_inner(), inv_cumd_norm_ln(), inv_cumd_norm_logistic(), invLogitProp(), function_minimizer::likeprof_routine(), ln_det(), ln_det_choleski(), ln_det_choleski_error(), ln_normal_tail_right(), log(), log_density_cauchy(), log_density_negbinomial(), log_density_poisson(), log_der_logistic(), log_gamma_density(), log_likelihood_mixture(), log_likelihood_mixture_02(), log_negbinomial_density(), lower_triangular_ln_det(), function_minimizer::mcmc_routine(), multifan(), multivariate_mixture(), negbinomial_density(), new_probing_bounded_multivariate_normal(), new_probing_bounded_multivariate_normal_mcmc(), nllBeta(), nllBinomial(), nllDirichlet(), nllGamma(), nllInverseGamma(), nllLognormal(), nllLognormal2(), nllMultiNomial(), nllNegativeBinomial(), nllNormal(), nllNormal2(), nllPoisson(), normalize_p(), function_minimizer::nuts_mcmc_routine(), old_inv_cumd_beta_stable(), pbeta(), pow(), tiny_ad::pow(), probing_bounded_multivariate_normal(), probing_bounded_multivariate_normal_mcmc(), randn(), randpoisson(), regression(), rgamma(), qfclib::rgamma(), rmvlogistic(), robust_regression(), function_minimizer::rwm_mcmc_routine(), function_minimizer::sd_routine(), funnel_init_df1b2variable::set_value(), random_effects_bounded_vector_info::set_value(), re_df1b2_init_bounded_vector::set_value(), set_value(), sgamma(), function_minimizer::shmc_mcmc_routine(), and solve().

double norm ( const d3_array a)
double norm2 ( const d3_array a)
d3_array operator* ( const d3_array a,
double  value 
)

Returns d3_array results of multiplying elements in a with value a(i, j, k) * value.

Parameters
ad3_array

Definition at line 264 of file d3arr2a.cpp.

d3_array operator* ( double  value,
const d3_array a 
)

Returns d3_array results of multiplying value by elements in a value * a(i, j, k).

Parameters
ad3_array

Definition at line 280 of file d3arr2a.cpp.

d3_array operator+ ( const d3_array a,
const d3_array b 
)

Returns d3_array results with computed elements addition of a(i, j, k) + b(i, j, k).

a and b should be allocated and have the same dimensions. All elements in b should not be zero.

Parameters
ad3_array
bd3_array

Definition at line 132 of file d3arr2a.cpp.

d3_array operator+ ( double  value,
const d3_array a 
)

Returns d3_array results with adding elements in a to value value + a(i, j, k).

Parameters
ad3_array

Definition at line 200 of file d3arr2a.cpp.

d3_array operator+ ( const d3_array a,
double  value 
)

Returns d3_array results with subtracting elements in a to value a(i, j, k) + value.

Parameters
ad3_array

Definition at line 232 of file d3arr2a.cpp.

d3_array operator- ( const d3_array a,
const d3_array b 
)

Returns d3_array results with computed elements addition of a(i, j, k) + b(i, j, k).

a and b should be allocated and have the same dimensions. All elements in b should not be zero.

Parameters
ad3_array
bd3_array

Definition at line 152 of file d3arr2a.cpp.

d3_array operator- ( double  value,
const d3_array a 
)

Returns d3_array results with subtracting elements in a to value value - a(i, j, k).

Parameters
ad3_array

Definition at line 216 of file d3arr2a.cpp.

d3_array operator- ( const d3_array a,
double  value 
)

Returns d3_array results with subtracting elements in a to value a(i, j, k) - value.

Parameters
ad3_array

Definition at line 248 of file d3arr2a.cpp.

d3_array sin ( const d3_array arr3)

Returns d3_array results with computed sin from elements in arr3.

Parameters
arr3d3_array

Definition at line 43 of file d3arr2a.cpp.

Referenced by bessj0(), bessj1(), bessy0(), bessy1(), boundp(), cmvbvu_(), cos(), DF_dvcos(), gammln(), mvbvu_(), nsin(), sin(), and tan().

double sumsq ( const d3_array a)

Definition at line 181 of file d3arr2a.cpp.

d3_array tan ( const d3_array arr3)

Returns d3_array results with computed tan from elements in arr3.

Parameters
arr3d3_array

Definition at line 73 of file d3arr2a.cpp.

Referenced by AD_df1_tan(), AD_df2_tan(), AD_df3_tan(), dftinv(), param_init_bounded_vector::get_jacobian(), inv_cumd_cauchy(), randpoisson(), set_value_inv_mc(), tan(), and tan_address().