Menu

API matrix

tanzheng

Contents

  • mlt_m_set_zero: Matrix clearing.
    param:
    *matrix: Matrix, array type to be zeroed out.
    ex:*

    var m = mlt_m_set_zero([[1, 2], [5, 12]]);
    mlt_page_console_log(m, '\n');

  • mlt_m_trans: The matrix transpose.
    param:
    *matrix: Matrices that need to be transposed, array types.
    ex:*

    var m = mlt_m_trans([[1, 2, 3], [5, 12, 10]]);
    mlt_page_console_log(m, '\n');

  • mlt_m_dot: Matrix multiplication.
    param:
    *matrix1: Matrix multiplier, array type.
    matrix2: Matrix multiplier, array type.
    ex:*

    var m = mlt_m_dot([[1, 2, 3], [5, 12, 10]], [[1, 5], [2, 12], [3, 10]]);
    mlt_page_console_log(m, '\n');

  • mlt_m_inv_gauss: The inverse matrix.
    param:
    *matrix: Matrix, array type that needs to be inverted.
    ex:*

    var m = mlt_m_inv_gauss([[1, 3], [2, 7]]);
    mlt_page_console_log(m, '\n');

  • mlt_m_set_one: The identity matrix.
    param:
    *matrix: It needs to be set to the identity matrix, array type.
    ex:*

    var m = mlt_m_set_one([[1, 2], [5, 12]]);
    mlt_page_console_log(m, '\n');


Auth0 Logo