码迷,mamicode.com
首页 >  
搜索关键字:matrix factorization    ( 4370个结果
Android常用代码
1、图片旋转Bitmap bitmapOrg = BitmapFactory.decodeResource(this.getContext().getResources(), R.drawable.moon);Matrix matrix = new Matrix();matrix.postRotat...
分类:移动开发   时间:2014-12-10 12:14:14    阅读次数:207
判断一个任意大小的矩阵是否为单位矩阵
《C和指针》第8章编程练习第4题:修改前一个问题中的 identity_matrix 函数,它可以对数组进行扩展,从而能够接受任意大小的矩阵参数。函数的第1个参数应该是一个整型指针,你需要第2个参数,用于指定矩阵的大小。 1 /* 2 ** 判断一个矩阵是否为单位矩阵 3 ** 矩阵为任意大小 4 ...
分类:其他好文   时间:2014-12-10 12:11:18    阅读次数:255
careercup-排序和查找 11.6
11.6 给定M*N矩阵,每一行、每一列都按升序排序,请编写代码找出某元素。类似leetcode:Search a 2D Matrix但是与leetcode中这题不同的是下一行的第一个元素不一定大于上一行的最后一个元素。所以使用二分查找有点麻烦。解法一:通过观察我们可知:若列的开头大于x,那么x位于...
分类:编程语言   时间:2014-12-09 19:21:05    阅读次数:233
单元刚度矩阵 C++
由于C++没有封装矩阵类,所以还是用到了《计算机常用数值算法与程序》(C++)一书中的头文件“Matrix.h”。对《有限单元法》书中的例题进行了编程验算,编程水平太菜。程序冗杂得不行了... 题目:给出了一个勾三股四的单元三角形,弹性模量E和泊松比v已知,单元厚度t=1。求单元的刚度矩阵; ...
分类:编程语言   时间:2014-12-09 17:34:48    阅读次数:249
【LeetCode】Set Matrix Zeroes (2 solutions)
Set Matrix ZeroesGiven amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you us...
分类:其他好文   时间:2014-12-09 15:37:20    阅读次数:208
数值优化 - 牛顿法
NG的课件1也讲到了牛顿法,它对应的update rule是 H对应Hessian矩阵 http://en.wikipedia.org/wiki/Hessian_matrix http://aria42.com/blog/2014/12/understanding-lbfgs/ 给出了关于牛顿法更详...
分类:其他好文   时间:2014-12-09 08:11:38    阅读次数:203
Spiral Matrix II
Spiral Matrix IIGiven an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the...
分类:其他好文   时间:2014-12-08 22:36:48    阅读次数:199
POJ 3422 Kaka's Matrix Travels(最大费用最大流 + 拆点)
POJ 3422 Kaka's Matrix Travels(最大费用最大流 + 拆点)...
分类:其他好文   时间:2014-12-08 21:30:42    阅读次数:161
Spiral Matrix
Spiral MatrixGiven a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[...
分类:其他好文   时间:2014-12-08 21:08:34    阅读次数:153
水波纹效果---3环波纹
import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Matrix; import android.graphics.Paint; import and...
分类:其他好文   时间:2014-12-08 19:43:39    阅读次数:217
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!