arrApply (Q81899)

From MaRDI portal

!

This is the item page for this Wikibase entity, intended for internal use and editing purposes. Please use the normal view instead:

Apply a Function to a Margin of an Array
Language Label Description Also known as
default for all languages
No label defined
    English
    arrApply
    Apply a Function to a Margin of an Array

      Statements

      0 references
      2.2
      10 January 2023
      0 references
      PACKAGES.rds
      9 July 2026
      0 references
      1.0.4
      15 February 2016
      0 references
      2.0.1
      10 November 2016
      0 references
      2.1
      8 March 2019
      0 references
      2.2.1
      7 February 2025
      0 references
      0 references
      0 references
      7 February 2025
      0 references
      0 references
      High performance variant of apply() for a fixed set of functions. Considerable speedup of this implementation is a trade-off for universality: user defined functions cannot be used with this package. However, about 20 most currently employed functions are available for usage. They can be divided in three types: reducing functions (like mean(), sum() etc., giving a scalar when applied to a vector), mapping function (like normalise(), cumsum() etc., giving a vector of the same length as the input vector) and finally, vector reducing function (like diff() which produces result vector of a length different from the length of input vector). Optional or mandatory additional arguments required by some functions (e.g. norm type for norm()) can be passed as named arguments in '...'.
      0 references

      Identifiers

      0 references