一、裁剪 Bitmap.createBitmap(src, x, y, width, height) 二、变换Matrix Matrix matrix = new Matrix(); matrix.postRotate(angle, x, y); matrix.postScale(x, y); ma ...
分类:
移动开发 时间:
2019-01-21 19:23:54
阅读次数:
177
struct Matrix { __int64 v[110][110]; Matrix() { memset(v, 0, sizeof(v)); } Matrix operator *(const Matrix B) // 重载的速度比写独立的函数慢点。 { int i, j, k; Matri..... ...
分类:
其他好文 时间:
2019-01-20 14:00:05
阅读次数:
199
Matrix and Determinant Let C be an M × N matrix with real-valued entries, i.e. C={cij}mxn Determinant is a value that can be computed from the element ...
分类:
其他好文 时间:
2019-01-20 10:32:04
阅读次数:
167
前言 为了不让自己做公司笔试题时做不出来,所以刷题,挑了个好的刷题平台 "LeetCode" 所以记录和分享自己的刷题思路和题解写了这个专栏。 最大子序和 题目描述 给定一个整数数组 nums ,找到一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。 示例: 分析 最大子序列是要找 ...
分类:
其他好文 时间:
2019-01-18 10:51:41
阅读次数:
182
我们求 x1 + x2 + ... + xn = a 的非负整数解数量时,将它转换成了组合数的求解问题,使原本暴力枚举的指数级复杂度降为求阶乘的线性复杂度。我们求图中生成树个数的时候,也可以根据 matrix-tree 定理转换成线性代数中求行列式的问题。两个问题的思路是一致,将原问题转换为另一领域... ...
分类:
编程语言 时间:
2019-01-17 14:00:07
阅读次数:
206
题目分析: 这题瞎搞一个哈密尔顿路,对于起点不同的分开跑就可以过了。 $O(n^3*2^n)$ ...
分类:
其他好文 时间:
2019-01-17 13:59:32
阅读次数:
222
gdb nnet3-compute测试命令 $ matrix-dim 'scp: head -n 1 data/test/feats.scp|' ~/kaldi/src/bin/matrix-dim 'scp: head -n 1 data/test/feats.scp|' foo 20560 39... ...
分类:
数据库 时间:
2019-01-17 10:50:55
阅读次数:
258
一、基础知识(1)矩阵乘法 https://blog.csdn.net/weixin_43272781/article/details/82899737 简单的说矩阵就是二维数组,数存在里面,矩阵乘法的规则:A*B=C 其中c[i][j]为A的第i行与B的第j列对应乘积的和,即: 代码: 另一种写法 ...
分类:
其他好文 时间:
2019-01-16 19:24:14
阅读次数:
184
解决的办法是——绕过去,不要用这个库:使用中发现如下代码抛出异常: 调用栈是: 不太清楚究竟为何抛异常,于是注释掉try catch,重新编译链接执行。 看到了如下异常信息: 更换了最新的lapack库,仍然无法解决。 查看visp/modules/core/src/math/matrix/vpMa ...
分类:
其他好文 时间:
2019-01-15 20:32:45
阅读次数:
219
1. itertools.product 进行数据的多种组合 intertools.product(range(0, 1), range(0, 1)) 组合的情况[0, 0], [0, 1], [1, 0], [1, 1] 2. confusion_matrix(test_y, pred_y) # ...
分类:
其他好文 时间:
2019-01-15 14:19:23
阅读次数:
404