Tag:diagonal

  • Diagonal elements of matrix and

    Time:2021-1-18

    Here’s a square matrixmatPlease return the sum of the diagonal elements of the matrix. Please return the sum of the elements on the main diagonal of the matrix and the elements on the sub diagonal and not on the main diagonal. (if the order is odd, the elements of the diagonal intersection will only be […]

  • Exercise 7-3 judging upper triangular matrix

    Time:2021-1-17

    The upper triangular matrix refers to the matrix whose elements below the main diagonal are all 0; the main diagonal is the line from the upper left corner to the lower right corner of the matrix. This problem requires the preparation of procedures to determine whether a given square matrix is a triangular matrix. Input […]

  • The difference between SP, DP and PX in layout file

    Time:2021-1-16

    preface: As we all know, there are many Android manufacturers, and Android phones and tablets of various sizes emerge in an endless stream. The fragmentation of Android ecological environment is becoming more and more serious. In order to solve the problem of excessive resolution, Google defines Px, DP and SP in the Android development document, […]

  • Multi scale neural network based on hierarchical matrix

    Time:2020-11-7

    Paper: a multiscale neural network based on hierarchical matricesAuthors: Yuwei fan *, Lin Liny, lexing yingz, Leonardo zepeda-n’u ~ nezxThe main work of this paper is to introduce the idea of $/ mathcal {h} $matrix into neural network to solve nonlinear partial differential equations. The structure of the paper is as follows: firstly, the concept […]

  • C practical exercises 38

    Time:2020-9-5

    Title:Find the sum of diagonal elements of a 3 * 3 matrix Program analysis:Using double for loop control input two-dimensional array, and then a [i] [i] accumulation output. example: #include #define N 3 int main() { int i,j,a[N][N],sum=0; Printf (“please input matrix (3 * 3): \ n”); for(i=0;i The output results of the above examples […]

  • Common indicators of semantic segmentation

    Time:2020-2-8

    There are three most commonly used indicators in semantic segmentation. To facilitate interpretation, the confusion matrix needs to be introduced first, as follows: Confusion matrix True value Positive Negative   predicted value   Positive True positive (TP) False positive (FP) Negative False negative (FN) True negative (TN)   First of all, it is assumed that […]

  • Eight queens problem of classical algorithm

    Time:2020-1-16

    The eight queens problem is an old and famous problem, which is a classic case of learning backtracking algorithm. Let’s explore it together today! Back in 1848, international chess player Max Bethel raised such a question, Put eight queens on the 8 × 8 grid chess, so that they can’t attack each other, that is, […]