English 中文(简体)
如何提高:uBLAS处理tric产品?
原标题:How does boost::uBLAS handle nested products of matrices?

我读过一篇关于采用动态方案拟订方法优化tric产品的文章,我希望看到如何加以推广:uBLAS。

http://www.boost.org/doc/libs/1_47_0/libs/numeric/ublas/doc/operations_overview.htm”rel=“nofollow” (在页末谈论这个问题),但似乎他们处理这一问题。 当你写<代码>R = prod(A, prod(B,C));, 图书馆对<代码>Ax(BxC)或<代码>(AxB)x C,视<代码>/A、BC>。

如何做到这一点? 图书馆如何“去掉方括号”? 在撰写这一法典时,我认为将评价<编码>prod<>/code>的论点,然后将行使这一职能。

rel=“nofollow”>FAQ提到了表达模板的概念。 是否将其联系起来?

最佳回答

Yes, expression templates (which you may find under the name "expression trees") are involved.

基本上,<代码>prod 结果没有回馈,但操作的包装物(矩阵乘数)和点击器有两种投入。 如果要求<代码>prod,则作为投入的包装,可采用重新排序的优化。

然而,从我对该页的解读来看,没有实行这种优化(它称它为打字结构)。

问题回答

暂无回答




相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签