Search code examples
vectormath.netmathnet-numerics

Getting the dimension of a Vector in Math.NET


If I was given a Vector in Math.NET, how can I check the number of dimensions that it has? I can't seem to find anything in the documentation


Solution

  • You're looking for the Count property.

    If I remember correctly, the property was named Count instead of Length or Dimensions to be consistent with RowCount and ColumnCount in matrices.