long long LoadFromStream(DewStream *Src) const;
Reads the header information and the values array content from a stream.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | DewStream * |
Remarks:
Reads the header information and the values array content from the SrcStream. The return value indicates the number of elements read.
Examples
#include "MtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
Matrix b;
FileStream* AStream;
b = {{0, 0, 1, 3, 2}};
AStream = new FileStream("PCA_Data.mtx", FileMode::Open);
b.LoadFromStream(AStream); // Read info and header for b
delete AStream;
}
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler