Esempio n. 1
0
        /// <summary>
        /// Convert MatrixMB to VectorVertical
        /// </summary>
        /// <param name="mat">MatrixMB</param>
        /// <returns>VectorVertical</returns>
        public static VectorVertical ToVectorVertical(this MatrixMB mat)
        {
            VectorVertical vv = new VectorVertical(mat.Rows);

            for (int row = 0; row < mat.Cols; row++)
            {
                vv.Data[row][0] = mat.Data[row][0];
            }
            return(vv);
        }
Esempio n. 2
0
 /// <summary>
 /// Convert MatrixMB to VectorVertical
 /// </summary>
 /// <param name="mat">MatrixMB</param>
 /// <returns>VectorVertical</returns>
 public static VectorVertical ToVectorVertical(this MatrixMB mat)
 {
     VectorVertical vv = new VectorVertical(mat.Rows);
     for (int row = 0; row < mat.Cols; row++)
     {
         vv.Data[row][0] = mat.Data[row][0];
     }
     return vv;
 }