前一阵找工作的时候,经常有人问我数学怎么样。有些问的比较笼统,有些问的比较具体。比如有个人问我,你了解矩阵吗?我说不了解。在看《3D数学基础》之前,矩阵给我的感觉就跟黑客帝国差不多。为此我特意上easyicon下了个matrix的图标当头像,感觉就是酷。那到底矩阵是什么? 如果现在有人问我,你...
分类:
其他好文 时间:
2014-11-15 14:01:01
阅读次数:
149
给定一个矩阵,把零值所在的行和列都置为零。例如:1 2 31 0 31 1 1操作之后变为1 0 30 0 01 0 1方法1:赋值另存一个m*n的矩阵,在原矩阵为零的值相应置新的矩阵行和列为零。额外空间为O(m*n).方法2:两个数组,bool[m] 和 bool[n] 分别存某行有零,后者某列有...
分类:
其他好文 时间:
2014-11-15 12:52:48
阅读次数:
284
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?Solution:public cla...
分类:
其他好文 时间:
2014-11-14 17:15:48
阅读次数:
159
1.sparse模块的官方document地址:http://docs.scipy.org/doc/scipy/reference/sparse.html2.sparse matrix的存储形式有很多种,见此帖子http://blog.csdn.net/anshan1984/article/deta...
分类:
编程语言 时间:
2014-11-13 12:25:23
阅读次数:
413
(1)theano主要支持符号矩阵表达式(2)theano与numpy中都有broadcasting:numpy中是动态的,而theano需要在这之前就知道是哪维需要被广播。针对不同类型的数据给出如下的一张表,基本类型包括scalar、vector、row、col、matrix、tensor3、te...
分类:
编程语言 时间:
2014-11-13 10:48:58
阅读次数:
293
This book was done during the course of the author's reading ``matrix theory'' by Prof. X.Z. Zhan from 22nd Oct. 2014 to 13th Nov. 2104.Thank Prof. X....
分类:
其他好文 时间:
2014-11-13 09:20:19
阅读次数:
187
if you pass on an already existing Mat object, which has already allocated the required space for the matrix, this will be reused. The idea is that ea...
分类:
其他好文 时间:
2014-11-12 21:13:24
阅读次数:
336
问题描述:
Given an integer n, generate a square matrix filled with elements from 1 to
n2 in spiral order.
For example,
Given n = 3,
You should return the following matrix:
[
[ 1, 2, 3 ],
[ 8, 9,...
分类:
其他好文 时间:
2014-11-12 15:06:18
阅读次数:
183
问题描述:
Given a matrix of m x n elements (m rows,
n columns), return all elements of the matrix in spiral order.
For example,
Given the following matrix:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9...
分类:
其他好文 时间:
2014-11-12 13:49:06
阅读次数:
210
// Upgrade NOTE: replaced 'PositionFog()' with multiply of UNITY_MATRIX_MVP by position// Upgrade NOTE: replaced 'V2F_POS_FOG' with 'float4 pos : SV_P...
分类:
其他好文 时间:
2014-11-11 20:45:16
阅读次数:
494