Learn R Programming

tractor.base (version 2.3.0)

SparseArray-class: Class "SparseArray"

Description

This class represents an array with any number of dimensions, in which a significant proportion of entries are zero. The coordinates of nonzero entries are stored along with their values, with all remaining entries assumed to be zero. Methods are provided to index into the array in the standard way, using matrix or vector indices; and for coercing between SparseArray objects and standard (dense) arrays.

Arguments

Extends

Class "SerialisableObject", directly.

All reference classes extend and inherit methods from "envRefClass".

References

Please cite the following reference when using TractoR in your work:

J.D. Clayden, S. Muñoz Maniega, A.J. Storkey, M.D. King, M.E. Bastin & C.A. Clark (2011). TractoR: Magnetic resonance imaging and tractography with R. Journal of Statistical Software 44(8):1-18. http://www.jstatsoft.org/v44/i08/.

See Also

SparseOrDenseArray and array. The implementation of indexing owes lot to the slam package.

Examples

Run this code
showClass("SparseArray")

Run the code above in your browser using DataLab