Vismatrix
A vizualiser for sparse matrices
Install / Use
/learn @cpmech/VismatrixREADME
Vismatrix – Visualization of sparse matrices
<img src="figs/fig00a.png"> <img src="figs/fig00b.png">
Vismatrix is a nice tool to visualize sparse matrices in (.smat) format
Installation (Ubuntu/Linux)
sudo apt install libgl1-mesa-dev libglut-dev
bash all.bash
Acknowledgements
To Professor David Gleich for this wonderful tool.
License
------------------------------------------------------------
vismatrix 2.0
------------------------------------------------------------
Copyright David Gleich, Leonid Zhukov, 2006-2007.
Unless otherwise noted, the source files are distributed under the BSD-style license found in the LICENSE file.
See also LICENSE files in each one of the subdirectories boost, glui, and tclap.
Installation
1 Install dependencies (tested on Ubuntu 23.04 LTS):
sudo apt-get install freeglut3-dev libxmu-dev libxi-dev libz-dev g++ make cmake
2 Download the code into /tmp/vismatrix:
git clone --depth 1 https://github.com/cpmech/vismatrix.git /tmp/vismatrix
3 Compile the code (in /tmp/build-vismatrix):
./all.bash
4 The executable file will be /tmp/build-vismatrix and you may install into /usr/local/bin by using:
sudo cp /tmp/build-vismatrix/vismatrix /usr/local/bin/
Usage
The matrix input file is quite simple (0-index based):
m n nnz
i j x
...
i j x
where the first line has m as the number of rows, n as the number of columns, and nnz as the number of non-zero values. The following lines contain the index of row i and column j of the non-zero entry x.
See example.smat file.
Usage:
vismatrix example.smat
Some commands:
- right-click to Exit
- mouse move: pan
- shift + mouse: zoom
- control + click: inspect value
- right-click: options

Related Skills
node-connect
348.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
