struct

UnicodePlot::MatrixView(T)

Inherits Struct < Value < Object

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.

Constructors

new(rows : Array(Array(T)))
Source

Instance methods

[](row : Int32, col : Int32) : T
Source
each_cell
Source
empty?
Source
ncols
Source
nrows
Source
rows
Source
shape
Source