Module extendr_api::prelude

source ·
Expand description

§Common exports for extendr-api.

This allows us to be more selective about exports and avoid users using deprecated features.

Re-exports§

Modules§

  • Column vector type.
  • Native complex floating point types whose real and imaginary parts are stored contiguously.
  • Diagonal matrix type.
  • Stack that allows users to allocate dynamically sized arrays.
  • De-serialization from common matrix file formats.
  • Producers, iterables and iterators.
  • Matrix type.
  • modulesDeprecated
    Re-exports.
  • Permutation matrices.
  • Emulate reborrowing for user types.
  • Row vector type.
  • solversDeprecated
    Matrix solvers and decompositions.
  • Sparse data structures and algorithms. Sparse matrix data structures.
  • Statistics-related utilities.
  • Various utilities for low level implementations in generic code.

Macros§

  • Execute R code by parsing and evaluating tokens.
  • Execute R code by parsing and evaluating tokens but without expanding parameters.
  • Create an Array with one, two or three dimensions.
  • Compare matrices for exact or approximate equality.
  • Array zip macro: lock step function application across several arrays and producers.
  • Call a function or primitive defined by a text expression with arbitrary parameters. This currently works by parsing and evaluating the string in R, but will probably acquire some shortcuts for simple expressions, for example by caching symbols and constant values.
  • Creates a col::Col containing the arguments.
  • Concatenates the matrices in each row horizontally, then concatenates the results vertically.
  • Concatenate arrays along the given axis.
  • Create a dataframe.
  • Define a module and export symbols to R Example:
  • Create a factor.
  • Evaluate the provided expression for both Either::Left and Either::Right.
  • Get a global variable.
  • A macro for constructing R langage objects.
  • Create a List R object from a list of name-value pairs.
  • Creates a Mat containing the arguments.
  • Create a Pairlist R object from a list of name-value pairs.
  • Convert a rust expression to an R object.
  • Print via the R error stream.
  • Print with a newline via the R output stream.
  • Creates a row::Row containing the arguments.
  • Print via the R output stream.
  • Print with a newline via the R output stream.
  • Slice argument constructor.
  • Stack arrays along the new axis.
  • stack_new_axisDeprecated
    Stack arrays along the new axis.
  • The sym! macro install symbols. You should cache your symbols in variables as generating them is costly.
  • Macro for running tests.
  • Macro for unwrapping the left side of an Either, which fails early with the opposite side. Can only be used in functions that return Either because of the early return of Right that it provides.
  • Dual to try_left!, see its documentation for more information.
  • Used to undo the zipping by the zipped! macro.
  • Get a local variable from the calling function or a global variable if no such variable exists.
  • Zips together matrix of the same size, so that coefficient-wise operations can be performed on their elements.

Structs§

  • An n-dimensional array.
  • An axis index.
  • Description of the axis, its length and its stride.
  • Heap allocated resizable column vector.
  • Mutable view over a column vector, similar to a mutable reference to a strided slice.
  • Immutable view over a column vector, similar to an immutable reference to a strided slice.
  • Dimension description.
  • Iterator that maps left or right iterators to corresponding Either-wrapped items.
  • Dynamic dimension or index type.
  • Heap allocated resizable matrix, similar to a 2D Vec.
  • Mutable view over a matrix, similar to a mutable reference to a 2D strided slice.
  • Immutable view over a matrix, similar to an immutable reference to a 2D strided slice.
  • A transparent wrapper of Cell<T> which is identical in every way, except it will implement arithmetic operators as well.
  • Token to represent a new axis in a slice description.
  • ArcArray’s representation.
  • Array’s representation.
  • Array pointer’s representation.
  • Heap allocated resizable row vector.
  • Mutable view over a row vector, similar to a mutable reference to a strided slice.
  • Immutable view over a row vector, similar to an immutable reference to a strided slice.
  • Factor for matrix-scalar multiplication.
  • A contiguous array shape of n dimensions.
  • An error related to array shape or layout.
  • A slice (range with step size).
  • Represents all of the necessary information to perform a slice.
  • An array shape of n dimensions in c-order, f-order or custom strides.
  • Array view’s representation.
  • Lock step function application across several arrays or other producers.

Enums§

  • Whether a matrix should be implicitly conjugated when read or not.
  • CowArray’s representation.
  • The enum Either with variants Left and Right is a general purpose sum type with two cases.
  • Error code for an error related to array shape or layout.
  • Value controlling the execution of .fold_while on Zip.
  • Array order
  • Parallelism strategy that can be passed to most of the routines in the library.
  • Specifies whether the triangular lower or upper part of a matrix should be accessed.
  • A slice (range with step), an index, or a new axis token.

Traits§

  • Argument conversion into an array view
  • A producer element that can be assigned to once
  • Unstable trait containing the operations that a number type needs to implement.
  • Trait for types that may be implicitly conjugated.
  • Array representation trait.
  • Array representation trait.
  • Array representation trait.
  • Array representation trait.
  • Adds the two dimensions at compile time.
  • Array shape and index trait.
  • Unstable core trait for describing how a scalar value may be split up into individual component.
  • Fixed-size array used for array initialization
  • Trait for unsigned integers that can be indexed with.
  • Extra indexing methods for array views
  • Argument conversion a dimension.
  • Provides methods for converting a type Self into either a Left or Right variant of Either<Self, Self>.
  • Argument conversion into a producer.
  • Elements that support linear algebra operations.
  • Slicing information describing multiple mutable, disjoint slices.
  • Floating-point element types f32 and f64.
  • Tuple or fixed size arrays that can be used to index an array.
  • A producer of an n-dimensional set of elements; for example an array view, mutable array view or an iterator that yields chunks.
  • Array representation trait.
  • Array representation trait.
  • Array representation trait.
  • Array representation trait.
  • Unstable trait containing the operations that a real number type needs to implement.
  • Array shape with a next smaller dimension.
  • Elements that can be used as direct operands in arithmetic with arrays.
  • Array shape argument with optional order parameter
  • A trait for Shape and D where D: Dimension that allows customizing the memory layout (strides) of an array shape.
  • Trait for signed integers corresponding to the ones satisfying Index.
  • A type that can slice an array of dimension D.
  • Simple and safe type conversions that may fail in a controlled way under some circumstances. It is the reciprocal of TryInto.
  • An attempted conversion that consumes self, which may or may not be expensive.

Functions§

  • Create a new dimension value.
  • Create a zero-dimensional index
  • Create a one-dimensional index
  • Create a two-dimensional index
  • Create a three-dimensional index
  • Create a four-dimensional index
  • Create a five-dimensional index
  • Create a six-dimensional index
  • Create a dynamic-dimensional index
  • Create a zero-dimensional array with the element x.
  • Create a one-dimensional array with elements from xs.
  • Create a two-dimensional array with elements from xs.
  • Create a three-dimensional array with elements from xs.
  • Create a zero-dimensional array view borrowing x.
  • Create a one-dimensional array view with elements borrowing xs.
  • Create a two-dimensional array view with elements borrowing xs.
  • Create a one-dimensional read-write array view with elements borrowing xs.
  • Create a two-dimensional read-write array view with elements borrowing xs.
  • Concatenate arrays along the given axis.
  • Causes functions that access global parallelism settings to panic.
  • Gets the global parallelism settings.
  • Create an iterable of the array shape shape.
  • Return an iterable of the indices of the passed-in array.
  • Create a one-dimensional array with elements from xs.
  • Create a two-dimensional array with elements from xs.
  • Create a three-dimensional array with elements from xs.
  • Returns a factor for matrix-scalar multiplication.
  • Sets the global parallelism settings.
  • Stack arrays along the new axis.
  • stack_new_axisDeprecated
    Stack arrays along the new axis.

Type Aliases§

Attribute Macros§

  • The #[extendr]-macro may be placed on three items

Derive Macros§

  • Enable the construction of dataframes from arrays of structures.