struct
UnicodePlot::MatrixView(T)
- UnicodePlot::MatrixView(T)
- Struct
- Value
- Object
Overview
A small internal view over Array(Array(T)).
MatrixView intentionally supports only Array(Array(T)) for now. It centralizes validation for matrix-shaped plot inputs:
- rectangular shape
- row / column dimensions
- indexed access
- cell iteration
It is used by heatmap, spy, contourplot, surfaceplot, and imageplot. MatrixView is not a general AbstractMatrix abstraction.
Defined in:
unicode_plot/matrix.crConstructors
Instance Method Summary
- #[](row : Int32, col : Int32) : T
- #each_cell(& : Int32, Int32, T -> )
- #empty? : Bool
- #ncols : Int32
- #nrows : Int32
- #rows : Array(Array(T))
- #shape : Tuple(Int32, Int32)