Mercurial > octave
diff liboctave/numeric/oct-rand.cc @ 29228:5c14f81e0937
Set API tags in files in liboctave/numeric (patch #8919).
Add API tag to template class definitions. Add API tag to (un-defined) functions
and member functions in headers. Export template class instantiations and
template functions from .cc files.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 29 Dec 2020 17:51:23 +0100 |
parents | bd51beb6205e |
children | 7854d5752dd2 |
line wrap: on
line diff
--- a/liboctave/numeric/oct-rand.cc Tue Dec 29 17:41:39 2020 +0100 +++ b/liboctave/numeric/oct-rand.cc Tue Dec 29 17:51:23 2020 +0100 @@ -291,7 +291,7 @@ } template <> - double rand::uniform<double> (void) + OCTAVE_API double rand::uniform<double> (void) { double retval; @@ -304,7 +304,7 @@ } template <> - double rand::normal<double> (void) + OCTAVE_API double rand::normal<double> (void) { double retval; @@ -317,7 +317,7 @@ } template <> - double rand::exponential<double> (void) + OCTAVE_API double rand::exponential<double> (void) { double retval; @@ -330,7 +330,7 @@ } template <> - double rand::poisson<double> (double a) + OCTAVE_API double rand::poisson<double> (double a) { double retval; @@ -352,7 +352,7 @@ } template <> - double rand::gamma<double> (double a) + OCTAVE_API double rand::gamma<double> (double a) { double retval; @@ -370,7 +370,7 @@ } template <> - float rand::uniform<float> (void) + OCTAVE_API float rand::uniform<float> (void) { float retval; @@ -383,7 +383,7 @@ } template <> - float rand::normal<float> (void) + OCTAVE_API float rand::normal<float> (void) { float retval; @@ -396,7 +396,7 @@ } template <> - float rand::exponential<float> (void) + OCTAVE_API float rand::exponential<float> (void) { float retval; @@ -409,7 +409,7 @@ } template <> - float rand::poisson<float> (float a) + OCTAVE_API float rand::poisson<float> (float a) { float retval; @@ -434,7 +434,7 @@ } template <> - float rand::gamma<float> (float a) + OCTAVE_API float rand::gamma<float> (float a) { float retval; @@ -490,8 +490,8 @@ return retval; } - template double rand::do_scalar<double> (double); - template float rand::do_scalar<float> (float); + template OCTAVE_API double rand::do_scalar<double> (double); + template OCTAVE_API float rand::do_scalar<float> (float); template <typename T> Array<T> @@ -511,8 +511,10 @@ return retval; } - template Array<double> rand::do_vector<double> (octave_idx_type, double); - template Array<float> rand::do_vector<float> (octave_idx_type, float); + template OCTAVE_API Array<double> + rand::do_vector<double> (octave_idx_type, double); + template OCTAVE_API Array<float> + rand::do_vector<float> (octave_idx_type, float); NDArray rand::do_nd_array (const dim_vector& dims, double a) {