Skip to content

Describing a Matrix

Muhammed Nazeem edited this page Jul 26, 2020 · 1 revision

Describing a Matrix

When you want to know about the shape size and dimensions of a Matrix.

import 'package:matrix2d/matrix2d.dart';

void main() {
  // create a matrix
  var matrix = [
    [1, 1, 1],
    [2, 2, 2],
    [3, 3, 3]
  ];
  //View the Number of Rows and Columns
  print(matrix.shape);
}
Clone this wiki locally