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 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(最大费用最大流 + 拆点)...
分类:
其他好文 时间:
2014-12-08 21:30:42
阅读次数:
161
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
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
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 15:34:49
阅读次数:
245
“矩阵代数初步”(Introduction to MATRIX ALGEBRA)课程由Prof. A.K.Kaw(University of South Florida)设计并讲授。PDF格式学习笔记下载(Academia.edu)第5章课程讲义下载(PDF)SummaryConsistent an...
分类:
其他好文 时间:
2014-12-07 06:30:53
阅读次数:
256
Maximal RectangleGiven a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.如果用DP来做,判断(begin...
分类:
其他好文 时间:
2014-12-06 16:44:58
阅读次数:
166
邻接矩阵的存储比邻接表实现起来更加方便,也更加容易理解。
邻接矩阵就是用一个二维数组matrix来存储每两个点的关系。如果两个点m,n之间有边,将数组matrix[]m[m]设为1,否则设为0。
如果有权,则将matrix[m]n[]设为权值,定义一个很大或者很小的数(只要不跟权值冲突即可),表示不相连。
空间复杂度为O(V^2),适合比较稠密的图。
邻接表O(V+E),适合比较稀疏的图。...
分类:
编程语言 时间:
2014-12-06 15:25:28
阅读次数:
255
1. sparse模块的官方document地址:http://docs.scipy.org/doc/scipy/reference/sparse.html
2. sparsematrix的存储形式有很多种,见此帖子http://blog.csdn.net/anshan1984/article/details/8580952
不同的存储形式在sparse模块中对应如下:
bsr_ma...
分类:
其他好文 时间:
2014-12-06 01:26:25
阅读次数:
870