Dew MtxVec NET
TSparseMtx.PixelDownSample Method
Summary
Reduces dense matrix for screen display (bitmap) to show the non-zero pattern.

Class
TSparseMtx

Declaration
Procedure PixelDownSample(Dst: TMtx; Pixels: integer = 500; Mode: TPixelDownSample = pdsPattern);

Description
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 Rows and Cols to. The Mode parameter defines how reduced matrix will be constructed.
 See Also 
TPixelDownSample 

Example 1

Uses MtxExpr, Sparse, MtxVecTee; var SparseA: TSparseMtx; GridSeries: TMtxGridSeries; v1,v2: Vector; A: Matrix; begin // ... SparseA.Size(7500,4000,4000,false); SparseA.RandomSparse(v1,v2); SparseA.PixelDownSample(A); DrawValues(A,GridSeries); // showing A end;
Vector v1,v2; Matrix A; TSparseMtx *SparseA; // ... SparseA->Size(7500,4000,4000,false); SparseA->RandomSparse(v1,v2); SparseA->PixelDownSample(A); DrawValues(A,GridSeries); // showing A
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); TeeChart.DrawValues(A,GridSeries); // showing A

Copyright 2008 Dew Research
http://www.dewresearch.com