Tag：diagonal

Time：2021118
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 […]

Time：2021117
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 […]

Time：2021116
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, […]

Time：2020117
Paper: a multiscale neural network based on hierarchical matricesAuthors: Yuwei fan *, Lin Liny, lexing yingz, Leonardo zepedan’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 […]

Time：202095
Title:Find the sum of diagonal elements of a 3 * 3 matrix Program analysis:Using double for loop control input twodimensional 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 […]

Time：202028
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 […]

Time：2020116
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, […]