Info
Version: | 1.0.0 |
Author(s): | Dialect Software LLC |
Last Update: | Sunday, January 13, 2013 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | http://www.dialectsoftware.com/ |
NuGet Url: | https://www.nuget.org/packages/DialectSoftware.Collections.Matrix |
Install
Install-Package DialectSoftware.Collections.Matrix
dotnet add package DialectSoftware.Collections.Matrix
paket add DialectSoftware.Collections.Matrix
DialectSoftware.Collections.Matrix Download (Unzip the "nupkg" after downloading)
Dependencies
1 package depend on this package.
Tags
example:
Axis x = new Axis("x", 0, 100, 1);
Axis y = new Axis("y", 0, 10, 1);
Matrix<long> matrix = new Matrix<long>(new []{x,y});
int i = 0;
for (; i < matrix.Axes[0].Points.Length; i++)
{
matrix.Axes[0].Points[i].Label = "x" + i.ToString();
}
i = 0;
for (; i < matrix.Axes[1].Points.Length; i++)
{
matrix.Axes[1].Points[i].Label = "y"+ i.ToString();
}
foreach (long[] c in matrix)
{
matrix[c] = c[0] + c[1];
}
foreach (long[] c in matrix)
{
Console.WriteLine("{0},{1} ({2},{3}) = {4}", matrix.Axes[0].Points[c[0]].Label, matrix.Axes[1].Points[c[1]].Label, c[0], c[1], matrix[c]);
}.