dahtah/vecpack: Helps Turn Objects and Lists into Vectors, to Facilitate Interaction with Optimisers and Samplers

Functions like optim(par,f) require "par" to be a vector and "f" to be a function of a vector. Often you'll want to optimise a cost function with several arguments, for example a scalar, a vector and a matrix, and it's more natural to define f = function(scalar,vector,matrix) instead of packing everything into a single vector. vecpack does the packing and unpacking for you.

Getting started

Package details

AuthorSimon Barthelme <simon.barthelme@gipsa-lab.fr>
MaintainerSimon Barthelme <simon.barthelme@gipsa-lab.fr>
LicenseGPL
Version0.1
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("dahtah/vecpack")
dahtah/vecpack documentation built on May 14, 2019, 3:27 p.m.