Új hozzászólás Aktív témák

  • Sk8erPeter

    nagyúr

    válasz prog1000 #2167 üzenetére

    Talán ha meg is nézted volna, amiket linkeltem... :W
    Már az elsőben, amit linkeltem, ott van minden, ami kell neked, idézek a mátrix osztályhoz tartozó leírásból:
    "A class representing a Matrix consisting of "Fractions". Features include
    -constructors to initialize matrix directly (using Fractions, doubles, integers)
    -some methods include
    -Determinent
    -Inverse
    -Echelon Form (can be used to solve system of equations)
    -Reduced Echelon Form etc.
    -operators overload(+,-,*,/)
    -Fraction class included (also written by me)
    -other details given in the class"

    belenézve magába az osztálymetódusok definícióját tartalmazó fájlba, látható egy összegzés, amiből kiderül, hogy ez MINDENT tud, ami neked most kell:

    /// Public Methods (Description is given with respective methods' definitions)
    /// string ConvertToString(Matrix)
    /// Matrix Minor(Matrix, Row,Col)
    /// Fraction Determinent(Matrix)
    /// MultiplyRow( Row, Fraction )
    /// MultiplyRow( Row, integer )
    /// MultiplyRow( Row, double )
    /// AddRow( TargetRow, SecondRow, Multiple)
    /// InterchangeRow( Row1, Row2)
    /// Matrix Concatenate(Matrix1, Matrix2)
    /// Matrix EchelonForm(Matrix)
    /// Matrix ReducedEchelonForm(Matrix)
    /// Matrix Inverse(Matrix)
    /// Matrix Adjoint(Matrix)
    /// Matrix Transpose(Matrix)
    /// Matrix Duplicate()
    /// Matrix ScalarMatrix( Rows, Cols, K )
    /// Matrix IdentityMatrix( Rows, Cols )
    /// Matrix UnitMatrix(Rows, Cols)
    /// Matrix NullMatrix(Rows, Cols)
    ///
    /// Private Methods
    /// Fraction GetElement(int iRow, int iCol)
    /// SetElement(int iRow, int iCol, Fraction value)
    /// Negate(Matrix)
    /// Add(Matrix1, Matrix2)
    /// Multiply(Matrix1, Matrix2)
    /// Multiply(Matrix1, Fraction)
    /// Multiply(Matrix1, integer)
    ///
    /// Operators Overloaded Overloaded
    /// Unary: - (negate matrix)
    /// Binary:
    /// +,- for two matrices
    /// * for two matrices or one matrix with integer or fraction or double
    /// / for matrix with integer or fraction or double

    Ha meg belenézel a kódba, elég sokat tanulhatsz belőle... Szerintem a célnak jelenleg jobban megfelelő osztályt nem igazán fogsz találni, max. kábé ugyanilyen jellegűt, persze nem teszteltem, de jónak tűnik.

    Szóval talán mielőtt izomból visszautasítanád a segítséget, fontold meg, hogy vajon nem lesz-e az mégis jó neked... :U

    (#2169): programozási ismeretek kellenek csupán, nem kell, hogy "programozó" légy. Ha ezek nincsenek meg, akkor meg teljesen mindegy, úgysem fogod tudni használni a felajánlott kódokat.

Új hozzászólás Aktív témák