Matrix Market File.Read Complex Vector Method
Definition
Namespace: Numerics.NET.Data.Text
Assembly: Numerics.NET.Data (in Numerics.NET.Data.dll) Version: 4.0.3
Assembly: Numerics.NET.Data (in Numerics.NET.Data.dll) Version: 4.0.3
Overload List
Read | Reads a complex vector from a stream in Matrix Market format. |
Read | Reads a complex vector from a file in Matrix Market format. |
ReadComplexVector<T>(Stream, TextOptions)
Reads a complex vector from a stream in Matrix Market format.
public static Vector<Complex<T>> ReadComplexVector<T>(
Stream stream,
TextOptions options = null
)
Parameters
- stream Stream
- A stream.
- options TextOptions (Optional)
- A TextOptions object that specifies the options to use when reading the file.
Type Parameters
- T
- The element type of the vector.
Return Value
Vector<Complex<T>>The vector that was read from the stream pointed to by stream.
Remarks
The element type of the stored vector does not have to match the element type of the returned vector. However, casting values from this type to type T must succeed.
ReadComplexVector<T>(String, TextOptions)
Reads a complex vector from a file in Matrix Market format.
public static Vector<Complex<T>> ReadComplexVector<T>(
string path,
TextOptions options = null
)
Parameters
- path String
- The path to the file.
- options TextOptions (Optional)
- A TextOptions object that specifies the options to use when reading the file.
Type Parameters
- T
- The element type of the vector.
Return Value
Vector<Complex<T>>The data frame that was read from the file pointed to by path.
Remarks
The element type of the stored vector does not have to match the element type of the returned vector. However, casting values from this type to type T must succeed.
Exceptions
File | The specified file does not exist. |