首页 \ 问答 \ 你可以在xbox 360的XNA项目中有WPF引用吗?(Can you have WPF references in an XNA project for xbox 360)

你可以在xbox 360的XNA项目中有WPF引用吗?(Can you have WPF references in an XNA project for xbox 360)

我正在Windows和Xbox 360中编写一个XNA项目,它的Windows端有一个我把它作为WPF应用程序编写的控制台。 我想知道的是,如果我把它留在我的库代码中并且引用了WPF,那么dll是否仍然适用于360?


I'm writing a XNA project in both Windows and Xbox 360 and the Windows side of it has a console I bring up written as a WPF application. What I was wondering is if I leave this in my library code with the references to WPF, will the dll still work on the 360?


原文:https://stackoverflow.com/questions/1400437
更新时间:2022-05-06 21:05

最满意答案

我看到几个问题:

回答你的问题是你不想返回*r ,你只想返回r

第二个问题是r应该是Matrice<M,O,T> 。 因为它是当前矩阵的类型。


I see a couple issues:

Answer to your question is that you don't want to return *r, you want to return just r.

Second issue is that r should be of type Matrice<M,O,T>. As it is it'll be the type of the current matrix.

相关问答

更多
  • 您以错误的方式递归调用divideAndConquer 。 你的功能是做一个矩阵。 为了实现分而治之的矩阵乘法,它需要能够将两个潜在不同的矩阵相乘。 它应该看起来像这样: private static int[][] divideAndConquer(int[][] matrixA, int[][] matrixB){ if (matrixA.length == 2){ //calculate and return base case } else { ...
  • 你想要的只是将T乘以U时发生的类型。 这可以通过以下方式给出: template using product_type = decltype(std::declval() * std::declval()); 您可以将其用作额外的默认模板参数: template > Matrix operator*(const Matrix& a, ...
  • 我没有研究过你对dgemm的调用的细节,我不知道你是如何解释结果矩阵的。 但是你似乎很可能在某处混合了col major和row major解释。 最有可能的计算是使用col major,但是你假设是行主要的。 I've not studied the details of your call to dgemm, and I cannot tell how you are interpreting the result matrix. But it seems pretty likely that you ...
  • 1.你正在做这个操作: Class1 Matrix3 = Matrix1 * Matrix2; operator*的返回类型是Class1 ,不是void。 2.重载操作符时,第一个操作数是this ,第二个操作数是您传递给重载操作符函数的参数。 因此,你的定义应该是: Class1 operator*(const Class1 &mat2) 现在,您可以执行两个对象的乘法运算,并返回一个携带结果的类型为Class1的新对象。 所以,你会得到: Class1 operator*(const Cla ...
  • 而不是尝试在寻址模式下将多个寄存器缩放两个( 这是不可能的 ),只需使用add eax, 2而不是inc eax 。 此外,由于输出矩阵使用32位int ,因此您应该进行32位数学运算。 您正在DI中生成一个值,然后将其加载到第66行的EDI的高半部分中的垃圾。 像movsx esi, word ptr [rowstart + column] / movsx eax, word ptr [offset_in_column + row] / imul eax, esi可能适用于内部循环体的(部分)。 我将让你 ...
  • 有很多事情可以做,以提高矩阵乘法的效率。 要研究如何改进基本算法,我们先来看看我们目前的选项。 当然,天真的实现有3个循环,时间复杂度为O(n^3) 。 还有另一种称为Strassen方法的方法,其实现了明显的加速并且具有O(n^2.73)的顺序(但实际上没有用,因为它没有提供可观的优化手段)。 这是理论上的。 现在考虑如何将矩阵存储在内存中。 行专业是标准,但你也找到专栏。 根据方案的不同,转置矩阵可能会因缓存未命中次数减少而提高速度。 理论上的矩阵乘法只是一堆向量点积和加法。 相同的向量将由多个向量操作 ...
  • 我看到几个问题: 回答你的问题是你不想返回*r ,你只想返回r 。 第二个问题是r应该是Matrice 。 因为它是当前矩阵的类型。 I see a couple issues: Answer to your question is that you don't want to return *r, you want to return just r. Second issue is that r should be of type Matrice. As it is it'll ...
  • 答案在于递归正在做什么。 假设这表示乘以ABCD ,则i=1, j=4, k=1的循环的迭代表示通过(A)(BCD)执行该计算。 MatrixChainOrder(p,i,k)计算最佳计算方法(A) , 1x2矩阵, MatrixChainOrder(p,k+1,j)计算最佳计算方法(BCD) ,即2x3矩阵。 最后,您对p[i-1]*p[k]*p[j]感兴趣的术语是执行(A)和(BCD)的最终乘法的标量乘法的数量。 The answer lies in what the recursion is doin ...
  • 在添加之前,您需要使用零值填充mat3 。 最简单的方法是使用: double mat3[10][10] = {}; You need to fill mat3 with a zero value before adding to it. Simplest way is to use: double mat3[10][10] = {};
  • A[i][j]实际上只是一个double,所以它没有任何名为emplace_back成员函数,这就是你得到错误的原因。 因为您已经拥有索引,所以您可以直接放置元素: void initialize(matrix& A, matrix& B) { for (int i = 0; i < A.size(); i++){ for (int j = 0; j < B.size(); j++){ A[i][j] = i*j; B[i][j] = ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)