2

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

TylerH
  • 20,799
  • 66
  • 75
  • 101
9a3eedi
  • 696
  • 2
  • 7
  • 18

1 Answers1

1

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.

Christoph Rüegg
  • 4,626
  • 1
  • 20
  • 34
  • Ah.. I saw the Count property in the documentation, but it had no description and the name was pretty ambiguous. Thanks! – 9a3eedi Aug 08 '14 at 05:44
  • 1
    Indeed, the inline docs of the Count property was useless; I've just [changed it](http://numerics.mathdotnet.com/api/MathNet.Numerics.LinearAlgebra/Vector%601.htm#Count) so at least it mentions length and number of dimensions. – Christoph Rüegg Aug 08 '14 at 09:43