So I have been working on a C# Matrix library. I've been documenting it really good so far.
The thing is I don't know if I should document my overloaded operators, I mean, it is kind of obvious, isn't it?
Sample code:
public static Matriz operator *(Matriz A, Matriz B)
{
if (A.map.GetLength(1) != B.map.GetLength(0))
throw new ArgumentException("A[j] não é igual a B[i]");
float[,] _map = new float[A.map.GetLength(0), B.map.GetLength(1)];
for (int i = 0; i < A.map.GetLength(0); i++)
{
for (int j = 0; j < B.map.GetLength(1); j++)
{
_map[i, j] = 0;
for (int z = 0; z < A.map.GetLength(0); z++)
{
_map[i, j] += A.map[i, z] * B.map[z, j];
}
}
}
return new Matriz(_map);
}