ListBackend: ListBackend Class

ListBackendR Documentation

ListBackend Class

Description

Backend implementation using in-memory list storage. This wraps the existing list-based storage mechanism for backwards compatibility.

Super class

riemtan::DataBackend -> ListBackend

Methods

Public methods


Method new()

Initialize a ListBackend

Usage
ListBackend$new(matrices)
Arguments
matrices

A list of dppMatrix objects


Method get_matrix()

Get a specific matrix by index

Usage
ListBackend$get_matrix(i)
Arguments
i

Integer index

Returns

A dppMatrix object


Method get_all_matrices()

Get all matrices

Usage
ListBackend$get_all_matrices()
Returns

A list of dppMatrix objects


Method length()

Get the number of matrices

Usage
ListBackend$length()
Returns

Integer count


Method get_dimensions()

Get matrix dimensions

Usage
ListBackend$get_dimensions()
Returns

Integer p (matrices are p x p)


Method clone()

The objects of this class are cloneable with this method.

Usage
ListBackend$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


riemtan documentation built on Nov. 11, 2025, 1:06 a.m.