column method
Returns the column at the specified index as a Column object.
index
: Index of the column.
Example:
var m = Matrix([[1, 2], [3, 4]]);
var col = m.column(1);
print(col);
// Output:
// Matrix: 2x1
// ┌ 2 ┐
// └ 4 ┘
Implementation
ColumnMatrix column(int index) =>
ColumnMatrix(_data.map((row) => row[index]).toList());