nalgebra icon indicating copy to clipboard operation
nalgebra copied to clipboard

Alias 'RowDVectorView<>' is missing for the result of DMatrix<T>.row()

Open kasparthommen opened this issue 1 year ago • 1 comments

Consider this:

let my_dmatrix: DMatrix<f64> = ...;
let x: DVectorView<f64> = my_dmatrix.column(0);  // there is the DVectorView alias, happy days
let x: RowDVectorView<f64> = my_dmatrix.row(0);  // but RowDVectorView doesn't exist
//     ^^^^^^^^^^^^^^

Seems like a type called RowDVectorView might be missing for consistency?

pub type RowDVectorView<'a, T, RStride = U1, CStride = Dyn> = Matrix<T, U1, Dyn, ViewStorage<'a, T, U1, Dyn, RStride, CStride>>;

kasparthommen avatar Jun 20 '24 14:06 kasparthommen