TSparseMtx.PixelDownSample Method

void PixelDownSample(TMtx Dst, Int32 Pixels, TPixelDownSample mode)

Reduces dense matrix for screen display (bitmap) to show the non-zero pattern.

#NameTypeDescription
1DstTMtxsource TMtx
2PixelsInt32
3modeTPixelDownSample

Result: stored in self (calling object)

Remarks:

Creates a reduced size Dst dense matrix for screen display (bitmap) to show the non-zero pattern. Pixels parameter defines the target number of pixels to reduce Dew.Math.TSparseMtx.Rows and Dew.Math.TSparseMtx.Cols to. The Mode parameter defines how reduced matrix will be constructed.

Examples
Vector v1 = new Vector(0);
Vector v2 = new Vector(0);
Matrix A = new Matrix(0,0);
TSparseMtx SparseA = new TSparseMtx();
// ...
SparseA.Size(7500,4000,4000,false);
SparseA.RandomSparse(v1,v2);
SparseA.PixelDownSample(A);
MtxVecTee.DrawValues(A,GridSeries); // showing A
See Also: TPixelDownSample