码迷,mamicode.com
首页 >  
搜索关键字:matrix factorization    ( 4370个结果
矩阵类的代码(C++)
The Codes of Matrix ClassMatrix.h:#ifndef MATRIX_H#define MATRIX_H #include #include #include #include #include"MatrixTypedef.h"// declare typedef's h...
分类:编程语言   时间:2015-04-08 23:09:39    阅读次数:249
LeetCode48/189 Rotate Image/Rotate Array
一:Rotate Image 题目: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in-place? 链接:https://leetcode.com/prob...
分类:其他好文   时间:2015-04-08 19:54:55    阅读次数:141
poj 3422 Kaka's Matrix Travels 费用流
题意: 给一个n*n的矩阵,每次从左上角走到右下角并取走其中的数,求走k次能取到的最大和。 分析: 费用流边的容量有限制的作用,费用有求和的作用,对于每个点只能取一次,容易想到把这个点拆成两个点并连上容量为1,费用为该点数的边。但明显有的流要“跳过”这个点,如何处理呢?可以加一条容量为无穷,费用为0的边,这样不参加这点费用计算的流就可以"跳过"这个点了。 代码: //poj 3422 /...
分类:其他好文   时间:2015-04-08 18:16:42    阅读次数:127
POJ 3233 - Matrix Power Series(等比矩阵求和)
题意:矩阵求和 思路:用二分幂解决,和等比数列求和的二分方法一样 等比数列求和法(摘自http://blog.csdn.net/acdreamers/article/details/7851144 ACdreams) 有效地求表达式的值: (1)当时, (2)当时,那么有      (3)当时,那么有      当n是奇数时作者做了一步优化,隔离出...
分类:其他好文   时间:2015-04-08 09:17:34    阅读次数:167
透视投影矩阵的构建
投影矩阵最终建立的是一个平截头体(也可以称为台),在这种变换下呈现远小近大的效果。这里我将我学到知识记录下来,以后备忘用。...
分类:其他好文   时间:2015-04-07 23:35:22    阅读次数:592
混淆矩阵(Confusion Matrix)分析
在机器学习领域,混淆矩阵(confusion matrix),又称为可能性表格或是错误矩阵。它是一种特定的矩阵用来呈现算法性能的可视化效果,通常是监督学习(非监督学习,通常用匹配矩阵:matching matrix)。其每一列代表预测值,每一行代表的是实际的类别。这个名字来源于它可以非常容易的表明多个类别是否有混淆(也就是一个class被预测成另一个class)。...
分类:其他好文   时间:2015-04-07 23:29:49    阅读次数:642
leetcode之Spiral Matrix II
Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the following matri...
分类:其他好文   时间:2015-04-07 22:57:47    阅读次数:106
leetcode之Spiral Matrix
Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ],...
分类:其他好文   时间:2015-04-07 21:25:43    阅读次数:116
Rotate Image --LeetCode
题目: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in-place? 思路:使用最基本的方法,递归,但是有空间复杂度 #include #inc...
分类:其他好文   时间:2015-04-07 19:43:35    阅读次数:102
【转】Linux C 网络编程——TCP套接口编程
地址:http://blog.csdn.net/matrix_laboratory/article/details/136692112. socket()[cpp]view plaincopyintsocket(intdomain,inttype,intprotocol); socket()打开一个...
分类:系统相关   时间:2015-04-07 19:01:06    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!