示例#1
0
        /// <param name="matrix">The matrix to return as a String</param>
        /// <param name="format">The format to use for each value in the matrix, eg "%f"</param>
        public static string ToString(SimpleMatrix matrix, string format)
        {
            ByteArrayOutputStream stream = new ByteArrayOutputStream();

            MatrixIO.Print(new TextWriter(stream), matrix.GetMatrix(), format);
            return(stream.ToString());
        }