Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- internal static Matrix<T> PefrormArithmetic(Matrix<T> first, Matrix<T> second)
- {
- Type matrixType = typeof(T);
- if (NumbersTypes.IsNumberType(matrixType))
- {
- return MultiplyMatrices(first, second);
- }
- else
- {
- string unsupportedTypeMessage = "The matrixes do not consist of numbers.";
- throw new ArgumentException(unsupportedTypeMessage);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement