numl.Math.LinearAlgebra.Matrix.GetRows C# (CSharp) Метод

GetRows() публичный Метод

Gets the rows in this collection.
public GetRows ( ) : IEnumerable
Результат IEnumerable
        public IEnumerable<Vector> GetRows()
        {
            for (int i = 0; i < Rows; i++)
                yield return this[i, VectorType.Row];
        }

Usage Example

Пример #1
0
        /// <summary>
        /// Writes a Matrix object to the underlying stream.
        /// </summary>
        /// <param name="matrix"></param>
        public void WriteMatrix(Matrix matrix)
        {
            WriteBeginArray();
            bool first = true;
            foreach (var vector in matrix.GetRows())
            {
                if (!first) WriteToken(JsonConstants.COMMA);
                WriteArray(vector as IEnumerable);
                first = false;

            }
            WriteEndArray();
        }
All Usage Examples Of numl.Math.LinearAlgebra.Matrix::GetRows