Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SparseTransform
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Nitzke
SparseTransform
Merge requests
!18
CLI implementation + Documentation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
CLI implementation + Documentation
frontend
into
master
Overview
0
Commits
5
Pipelines
0
Changes
7
Merged
Paul Nitzke
requested to merge
frontend
into
master
2 years ago
Overview
0
Commits
5
Pipelines
0
Changes
7
Expand
Implementation of CLI frontend (untested) and ConversionManager tests
ConversionManager tests currently fail as Convert namespace is not yet fully implemented
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
6620a2e9
5 commits,
2 years ago
7 files
+
199
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
src/SparseTransform/ConversionManager.cs
+
8
−
8
Options
@@ -8,15 +8,15 @@ using System.Threading.Tasks;
namespace
SparseTransform
{
internal
class
ConversionManager
public
class
ConversionManager
{
/// <summary>
/// Converts Matrix from MatrixMarket format in Dot
/// </summary>
/// <param name="MMMatrix">raw MatrixMarket input String</param>
/// <returns></returns>
public
String
Convert2Dot
(
String
MMMatrix
)
/// <returns>
Dot String
</returns>
public
static
String
Convert2Dot
(
String
MMMatrix
)
{
MatrixMarketReader
reader
=
new
MatrixMarketReader
();
IGraph
graph
=
reader
.
Read
(
MMMatrix
);
@@ -31,7 +31,7 @@ namespace SparseTransform
/// <param name="MMMatrix">raw MatrixMarket input String</param>
/// <param name="textColor">true if color should additionally be represented as text</param>
/// <returns>Dot String with coloring information</returns>
public
String
Partition2ColoredDot
(
String
MMMatrix
,
bool
textColor
=
false
)
public
static
String
Partition2ColoredDot
(
String
MMMatrix
,
bool
textColor
=
false
)
{
MatrixMarketReader
reader
=
new
MatrixMarketReader
();
IGraph
graph
=
reader
.
Read
(
MMMatrix
);
@@ -53,8 +53,8 @@ namespace SparseTransform
/// Partions SparseMatrix in Seed Matrix
/// </summary>
/// <param name="MMMatrix">raw MatrixMarket input String</param>
/// <returns></returns>
public
String
Partition2SeedMatrix
(
String
MMMatrix
)
/// <returns>
Seed Matrix as String
</returns>
public
static
String
Partition2SeedMatrix
(
String
MMMatrix
)
{
MatrixMarketReader
reader
=
new
MatrixMarketReader
();
IGraph
graph
=
reader
.
Read
(
MMMatrix
);
@@ -75,8 +75,8 @@ namespace SparseTransform
/// Partitions SparseMatricx in CompressedMatrix
/// </summary>
/// <param name="MMMatrix">raw MatrixMarket input String</param>
/// <returns></returns>
public
String
Partition2CompressedMatrix
(
String
MMMatrix
)
/// <returns>
Compressed Matrix as String
</returns>
public
static
String
Partition2CompressedMatrix
(
String
MMMatrix
)
{
MatrixMarketReader
reader
=
new
MatrixMarketReader
();
IGraph
graph
=
reader
.
Read
(
MMMatrix
);
Loading