/// <summary> /// Deserializes as <see cref="DoubleMatrix"/> the specified CSV file. /// </summary> /// <param name="path">The CSV file to be opened for /// deserializing.</param> /// <returns>The <see cref="DoubleMatrix"/> being deserialized.</returns> /// <remarks> /// <para> /// This method reads CSV files created by method /// <see cref="Serialize(string, DoubleMatrix)"/> or /// one of its overloaded versions. /// </para> /// </remarks> /// <exception cref="ArgumentNullException"> /// <paramref name="path"/> is <b>null</b>. /// </exception> /// <exception cref="InvalidOperationException"> /// An error occurred during deserialization. The original exception is available /// using the <see cref="Exception.InnerException"/> property. ///</exception> public static DoubleMatrix Deserialize(string path) { return(CsvDoubleMatrixSerializer.Deserialize(path)); }
/// <summary> /// Deserializes as <see cref="DoubleMatrix"/> the CSV document contained /// by the specified <see cref="TextReader"/>. /// </summary> /// <param name="reader">The <see cref="TextReader"/> that contains /// the CSV document to deserialize.</param> /// <returns>The <see cref="DoubleMatrix"/> being deserialized.</returns> /// <remarks> /// <para> /// This method reads CSV files created by method /// <see cref="Serialize(TextWriter, DoubleMatrix)"/> or /// one of its overloaded versions. /// </para> /// </remarks> /// <exception cref="ArgumentNullException"> /// <paramref name="reader"/> is <b>null</b>. /// </exception> /// <exception cref="InvalidOperationException"> /// An error occurred during deserialization. The original exception is available /// using the <see cref="Exception.InnerException"/> property. ///</exception> public static DoubleMatrix Deserialize(TextReader reader) { return(CsvDoubleMatrixSerializer.Deserialize(reader)); }