Skip to content

Commit

Permalink
clang format with vendored dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
pachadotdev committed Feb 18, 2024
1 parent 2a785d9 commit 039b5a4
Show file tree
Hide file tree
Showing 15 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ pkgdown: 2.0.7
pkgdown_sha: ~
articles:
intro: intro.html
last_built: 2024-02-18T23:24Z
last_built: 2024-02-18T23:30Z

2 changes: 1 addition & 1 deletion docs/reference/apes.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/bias_corr.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/feglm.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/felm.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/fenegbin.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/fepoisson.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/vendor/armadillo/Mat_bones.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ template <typename eT> class Mat : public Base<eT, Mat<eT>> {
pod_type; //!< if eT is std::complex<T>, pod_type is T; otherwise pod_type
//!< is eT

const uword n_rows; //!< number of rows (read-only)
const uword n_cols; //!< number of columns (read-only)
const uword n_elem; //!< number of elements (read-only)
const uword n_alloc; //!< number of allocated elements (read-only); NOTE:
//!< n_alloc can be 0, even if n_elem > 0
const uword n_rows; //!< number of rows (read-only)
const uword n_cols; //!< number of columns (read-only)
const uword n_elem; //!< number of elements (read-only)
const uword n_alloc; //!< number of allocated elements (read-only); NOTE:
//!< n_alloc can be 0, even if n_elem > 0
const uhword vec_state; //!< 0: matrix layout; 1: column vector layout; 2: row
//!< vector layout
const uhword mem_state;
Expand Down
2 changes: 1 addition & 1 deletion src/vendor/armadillo/Proxy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ template <typename T1> struct Proxy_fixed {
}

//// this may require T1::n_elem etc to be declared as static constexpr inline
///variables (C++17) / see also the notes in Mat::fixed /
/// variables (C++17) / see also the notes in Mat::fixed /
/// https://en.cppreference.com/w/cpp/language/static /
/// https://en.cppreference.com/w/cpp/language/inline
//
Expand Down
2 changes: 1 addition & 1 deletion src/vendor/armadillo/SpMat_bones.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ template <typename eT> class SpMat : public SpBase<eT, SpMat<eT>> {

uword internal_row; // hold row internally
uword actual_pos; // hold the true position we are at in the matrix, as
// column-major indexing
// column-major indexing

arma_inline eT operator*() const {
return iterator_base::M->values[actual_pos];
Expand Down
2 changes: 1 addition & 1 deletion src/vendor/armadillo/arma_forward.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ enum struct file_type : unsigned int {
raw_binary, //!< raw binary format (machine dependent), without a header
arma_binary, //!< Armadillo binary format (machine dependent), with a header
//!< specifying matrix type and size
pgm_binary, //!< Portable Grey Map (greyscale image)
pgm_binary, //!< Portable Grey Map (greyscale image)
ppm_binary, //!< Portable Pixel Map (colour image), used by the field and cube
//!< classes
hdf5_binary, //!< HDF5: open binary format, not specific to Armadillo, which
Expand Down
60 changes: 30 additions & 30 deletions src/vendor/armadillo/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,30 @@
//// Must be an integer >= 0. The default value is 2.
//// 0 = no warnings; generally not recommended
//// 1 = only critical warnings about arguments and/or data which are likely to
///lead to
/// lead to
/// incorrect results / 2 = as per level 1, and warnings about poorly
/// conditioned systems
///(low rcond) detected by solve(), spsolve(), etc / 3 = as per level 2, and
///warnings
/// warnings
/// about failed decompositions, failed saving/loading, etc

// #define ARMA_USE_WRAPPER
//// Comment out the above line if you prefer to directly link with BLAS,
///LAPACK, etc / instead of the Armadillo runtime library. / You will need to
///link your programs directly with -lopenblas -llapack instead of -larmadillo
/// LAPACK, etc / instead of the Armadillo runtime library. / You will need to
/// link your programs directly with -lopenblas -llapack instead of -larmadillo

#if !defined(ARMA_USE_LAPACK)
#define ARMA_USE_LAPACK
//// Comment out the above line if you don't have LAPACK or a high-speed
///replacement for
/// replacement for
/// LAPACK, / such as OpenBLAS, Intel MKL, or the Accelerate framework. / LAPACK
/// is required for matrix decompositions (eg. SVD) and matrix inverse.
#endif

#if !defined(ARMA_USE_BLAS)
#define ARMA_USE_BLAS
//// Comment out the above line if you don't have BLAS or a high-speed
///replacement for
/// replacement for
/// BLAS, / such as OpenBLAS, Intel MKL, or the Accelerate framework. / BLAS is
/// used for matrix multiplication. / Without BLAS, matrix multiplication will
/// still work, but might be slower.
Expand All @@ -56,16 +56,16 @@
#if !defined(ARMA_USE_NEWARP)
#define ARMA_USE_NEWARP
//// Uncomment the above line to enable the built-in partial emulation of
///ARPACK. / This is used for eigen decompositions of real (non-complex) sparse
///matrices, eg.
/// ARPACK. / This is used for eigen decompositions of real (non-complex) sparse
/// matrices, eg.
/// eigs_sym(), svds()
#endif

#if !defined(ARMA_USE_ARPACK)
// #define ARMA_USE_ARPACK
//// Uncomment the above line if you have ARPACK or a high-speed replacement for
///ARPACK. / ARPACK is required for eigen decompositions of complex sparse
///matrices
/// ARPACK. / ARPACK is required for eigen decompositions of complex sparse
/// matrices
#endif

#if !defined(ARMA_USE_SUPERLU)
Expand All @@ -90,15 +90,15 @@
#if !defined(ARMA_USE_HDF5)
// #define ARMA_USE_HDF5
//// Uncomment the above line to allow the ability to save and load matrices
///stored in
/// stored in
/// HDF5 format; / the hdf5.h header file must be available on your system, /
/// and you will need to link with the hdf5 library (eg. -lhdf5)
#endif

#if !defined(ARMA_USE_FFTW3)
// #define ARMA_USE_FFTW3
//// Uncomment the above line to allow the use of the FFTW3 library by fft() and
///ifft()
/// ifft()
/// functions; / you will need to link with the FFTW3 library (eg. -lfftw3)
#endif

Expand All @@ -108,22 +108,22 @@

// #define ARMA_BLAS_CAPITALS
//// Uncomment the above line if your BLAS and LAPACK libraries have capitalised
///function
/// function
/// names

#define ARMA_BLAS_UNDERSCORE
//// Uncomment the above line if your BLAS and LAPACK libraries have function
///names with a
/// names with a
/// trailing underscore. / Conversely, comment it out if the function names
/// don't have a trailing underscore.

// #define ARMA_BLAS_LONG
//// Uncomment the above line if your BLAS and LAPACK libraries use "long"
///instead of "int"
/// instead of "int"

// #define ARMA_BLAS_LONG_LONG
//// Uncomment the above line if your BLAS and LAPACK libraries use "long long"
///instead of "int"
/// instead of "int"

// #define ARMA_BLAS_NOEXCEPT
//// Uncomment the above line if you require BLAS functions to have the
Expand All @@ -137,43 +137,43 @@

#define ARMA_USE_FORTRAN_HIDDEN_ARGS
//// Comment out the above line to call BLAS and LAPACK functions without using
///so-called "hidden" arguments. / Fortran functions (compiled without a BIND(C)
///declaration) that
/// so-called "hidden" arguments. / Fortran functions (compiled without a
/// BIND(C) declaration) that
/// have char arguments / (like many BLAS and LAPACK functions) also have
/// associated
///"hidden" arguments. / For each char argument, the corresponding "hidden"
///argument
/// argument
/// specifies the number of characters. / These "hidden" arguments are typically
/// tacked onto the end of function definitions.

// #define ARMA_USE_TBB_ALLOC
//// Uncomment the above line to use Intel TBB scalable_malloc() and
///scalable_free()
/// scalable_free()
/// instead of standard malloc() and free()

// #define ARMA_USE_MKL_ALLOC
//// Uncomment the above line to use Intel MKL mkl_malloc() and mkl_free()
///instead of
/// instead of
/// standard malloc() and free()

// #define ARMA_USE_MKL_TYPES
//// Uncomment the above line to use Intel MKL types for complex numbers.
//// You will need to include appropriate MKL headers before the Armadillo
///header. / You may also need to enable or disable the following options: /
///ARMA_BLAS_LONG, ARMA_BLAS_LONG_LONG, ARMA_USE_FORTRAN_HIDDEN_ARGS
/// header. / You may also need to enable or disable the following options: /
/// ARMA_BLAS_LONG, ARMA_BLAS_LONG_LONG, ARMA_USE_FORTRAN_HIDDEN_ARGS

#if !defined(ARMA_USE_OPENMP)
// #define ARMA_USE_OPENMP
//// Uncomment the above line to forcefully enable use of OpenMP for
///parallelisation. / Note that ARMA_USE_OPENMP is automatically enabled when a
///compiler supporting
/// parallelisation. / Note that ARMA_USE_OPENMP is automatically enabled when a
/// compiler supporting
/// OpenMP 3.1 is detected.
#endif

#if !defined(ARMA_64BIT_WORD)
// #define ARMA_64BIT_WORD
//// Uncomment the above line if you require matrices/vectors capable of holding
///more than
/// more than
/// 4 billion elements. / Note that ARMA_64BIT_WORD is automatically enabled
/// when std::size_t has 64 bits and ARMA_32BIT_WORD is not defined.
#endif
Expand Down Expand Up @@ -214,7 +214,7 @@
#define ARMA_OPENMP_THRESHOLD 320
#endif
//// The minimum number of elements in a matrix to allow OpenMP based
///parallelisation; / it must be an integer that is at least 1.
/// parallelisation; / it must be an integer that is at least 1.

#if !defined(ARMA_OPENMP_THREADS)
#define ARMA_OPENMP_THREADS 8
Expand All @@ -225,11 +225,11 @@
// #define ARMA_NO_DEBUG
//// Uncomment the above line to disable all run-time checks. NOT RECOMMENDED.
//// It is strongly recommended that run-time checks are enabled during
///development, / as this greatly aids in finding mistakes in your code.
/// development, / as this greatly aids in finding mistakes in your code.

// #define ARMA_EXTRA_DEBUG
//// Uncomment the above line to see the function traces of how Armadillo
///evaluates
/// evaluates
/// expressions. / This is mainly useful for debugging of the library.

#if defined(ARMA_EXTRA_DEBUG)
Expand Down Expand Up @@ -376,7 +376,7 @@
#if !defined(ARMA_DONT_ZERO_INIT)
// #define ARMA_DONT_ZERO_INIT
//// Uncomment the above line to disable initialising elements to zero during
///construction
/// construction
/// of dense matrices and cubes
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/vendor/armadillo/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ template <typename eT> class Datum {
static const eT R; //!< molar gas constant (in joules per mole kelvin)
static const eT G; //!< Newtonian constant of gravitation (in newton square
//!< meters per kilogram squared)
static const eT h; //!< Planck constant (in joule seconds)
static const eT h; //!< Planck constant (in joule seconds)
static const eT h_bar; //!< Planck constant over 2 pi, aka reduced Planck
//!< constant (in joule seconds)
static const eT m_p; //!< proton mass (in kg)
Expand Down
2 changes: 1 addition & 1 deletion src/vendor/armadillo/diagmat_proxy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ template <typename T1> class diagmat_proxy_fixed {
const T1 &P;

//// this may require T1::n_elem etc to be declared as static constexpr inline
///variables (C++17) / see also the notes in Mat::fixed
/// variables (C++17) / see also the notes in Mat::fixed
// static constexpr bool P_is_vec = (T1::n_rows == 1) || (T1::n_cols == 1);
// static constexpr uword n_rows = P_is_vec ? T1::n_elem : T1::n_rows;
// static constexpr uword n_cols = P_is_vec ? T1::n_elem : T1::n_cols;
Expand Down
2 changes: 1 addition & 1 deletion src/vendor/armadillo/sp_auxlib_meat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2189,7 +2189,7 @@ inline void sp_auxlib::run_aupd_plain(
iparam(0) = 1; // Exact shifts (not provided by us).
iparam(2) = maxiter; // Maximum iterations; all the examples use 300, but
// they were written in the ancient times.
iparam(6) = 1; // Mode 1: A * x = lambda * x.
iparam(6) = 1; // Mode 1: A * x = lambda * x.

// IPNTR: integer array of length 14 (output).
ipntr.zeros(14);
Expand Down

0 comments on commit 039b5a4

Please sign in to comment.