mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:19:59 +00:00
Update documentation for Matrix struct to clarify indexing method
This commit is contained in:
parent
dfe259a371
commit
2e980a78fa
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use std::ops::{Add, BitAnd, BitOr, BitXor, Div, Index, IndexMut, Mul, Not, Sub};
|
use std::ops::{Add, BitAnd, BitOr, BitXor, Div, Index, IndexMut, Mul, Not, Sub};
|
||||||
|
|
||||||
/// A column‑major 2D matrix of `T`
|
/// A column‑major 2D matrix of `T`. Index as `Array(row, column)`.
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct Matrix<T> {
|
pub struct Matrix<T> {
|
||||||
rows: usize,
|
rows: usize,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user