Unhandled Exception in C# , dnAnalytics class -
Unhandled Exception in C# , dnAnalytics class -
what problem in next code? unhandled exception error, , dont see "not square matrix" output.
unhandled exception: dnanalytics.linearalgebra.matrixnotsquareexception: exception of type 'dnanalytics.linearalgebra.matrixnotsquareexception' thrown.at dnanalytics.linearalgebra.densematrix.inverse () [0x00000] in :0
public static dnanalytics.linearalgebra.matrix calculatetransformation (dnanalytics.linearalgebra.matrix inputmatrix) { dnanalytics.linearalgebra.matrix transposeofinput = new dnanalytics.linearalgebra.densematrix(inputmatrix); transposeofinput= inputmatrix.transpose(); seek { dnanalytics.linearalgebra.matrix intermediate = (inputmatrix*transposeofinput).inverse() ; homecoming transposeofinput*intermediate; } catch(dnanalytics.linearalgebra.matrixnotsquareexception myex) { console.writeline("not square matrix" ); throw myex; } }
solved, overloaded function had problem, not one.
c# exception math matrix unhandled-exception
Comments
Post a Comment