Freitag, 27. Mai 2011

Advanced Matrix Library in C#. NET ...

... has finally been published @ 
codeproject.com 
under the Code Project Open License (CPOL).


Thx to Anas S.A. for sharing it!




Operations Supported

The cMatrixLibrary supports the following:

  • Add 
  • Cross Product of two vectors 
  • Determinant 
  • Dot Product of two vectors 
  • Eigen Values and Vectors of a matrix 
  • Identity 
  • Inverse 
  • LU decomposition of a matrix 
  • Multiply 
  • Pseudoinverse 
  • Print Matrix (Returns a matrix as a string, so it can be viewed in a multi-text textbox or in a richtextBox ) 
  • Rank of a Matrix 
  • Solve Linear (Solves a set of n linear equations A.X = B, and returns X) 
  • Subtract 
  • SVD (Evaluates the Singular Value Decomposition of a matrix, returns the matrices S, U and V. Such that a given Matrix = U x S x V') 
  • Transpose and 
  • Vector Magnitude
[contents of this list of supported operations as published on the website at the publishing date of this post]

Mittwoch, 4. Mai 2011

Count Source Lines of Code in Visual Studio

Yep, I know, SLoC are not a good measure. But it´s ok to know if you are facing a 10k or a 10M SLoC project. So, with MS VS just:

- Ctrl+Shift+F
- For each language you use look for:

C#
^~(:Wh@//.+)~(:Wh@\{:Wh@)~(:Wh@\}:Wh@)~(:Wh@/#).+
VB.NET
^~(:Wh@'.+)~(:Wh@/#).+

- Click on "Use:" Regular expresions
- Select your language source code files in "Look at these these file types:"
- Go to results and check the "Matching lines"

Que aproveche!