C++
C#
VB
JScript
All

External Function rows


Copyright (C) 2005 IENT-RWTH Aachen

template<class G> inline typename RowSplit<      Matrix<G> >::self rows(      Matrix<G> &X)
template<class G> inline typename RowSplit<const Matrix<G> >::self rows(const Matrix<G> &X)

Isolates each row

Parameters

X

The matrix

Returns

A vector representing each row: a vector of vectors.

Example

DenseMatrix<int>::self X(2,2,"1 2 3 4");
cout << rows(X)[0] << endl; // [1 2]

See Also

row, col, cols