首页 \ 问答 \ 使用C ++中的1D FFT进行四元数FFT(Quaternion FFT using 1D FFT in C++)

使用C ++中的1D FFT进行四元数FFT(Quaternion FFT using 1D FFT in C++)

我目前正在实施在c ++中使用四元数FFT的研究论文。 但是,我找不到任何支持Quaternion FFT的C ++库。 经过一些调查,我发现互联网上有人说可以将四元数FFT过程转换为几个1D复数到复数的FFT。 有谁知道这是怎么做到的吗?

我尝试使用FFTW ++库,它支持一些基本的FFT方法来实现它。 如果有人能提供帮助,我将非常感激。


I am currently implemented research paper that use a Quaternion FFT in c++. However, I could not find any C++ library that support Quaternion FFT. After some surveys, I have found someone on the Internet said that it is possible to convert Quaternion FFT process to several 1D complex-to-complex FFT. Does anyone know how to do that?

I try to use FFTW++ library which supports some basic FFT methods to implement it. I would be really appreciate if anyone could help.


原文:https://stackoverflow.com/questions/37229176
更新时间:2022-06-20 22:06

最满意答案

是的我找到了上面的解决方案。 下面我们可以一次创建多个表,

var Realm = require('realm');

const CarSchema = {
  name: 'Car',
  properties: {
    make:  'string',
    model: 'string',
    miles: {type: 'int', default: 0},
  }
};
const PersonSchema = {
  name: 'Person',
  properties: {
    name:     'string',
    birthday: 'date',
    cars:     {type: 'list', objectType: 'Car'},
    picture:  {type: 'data', optional: true}, // optional property
  }
};

// Initialize a Realm with Car and Person models
let realm = new Realm({schema: [CarSchema, PersonSchema]});

Yes i found solution of above. Following way we can create multiple tables at a time,

var Realm = require('realm');

const CarSchema = {
  name: 'Car',
  properties: {
    make:  'string',
    model: 'string',
    miles: {type: 'int', default: 0},
  }
};
const PersonSchema = {
  name: 'Person',
  properties: {
    name:     'string',
    birthday: 'date',
    cars:     {type: 'list', objectType: 'Car'},
    picture:  {type: 'data', optional: true}, // optional property
  }
};

// Initialize a Realm with Car and Person models
let realm = new Realm({schema: [CarSchema, PersonSchema]});

相关问答

更多
  • 您无法合并两个查询的结果。 相反,您的数据模型应该使用关系 。 You cannot combine the result of two queries. Instead your data model should use relationships.
  • 它看起来不像是在对象上设置categoryID属性。 这将导致所有这些主机在使用createOrUpdate时使用相同的主键并覆盖相同的对象 要调试并进入Realm代码,您可能需要从源代码构建。 It doesn't look like you are setting the categoryID property on your objects. This would cause all of them to use the same primary key and overwrite the same ...
  • 查看Realm文档的Notifications部分 。 您应该使用通知令牌来监听对User表所做的更改,然后运行将事件保存到令牌的notificationBlock中的History表的代码。 Check out the Notifications section of Realm documentation. You should use a notification token to listen changes made to your User table and then run the code ...
  • 您是在尝试创建新Realm还是打开现有的Realm以进行只读访问? 如果你想创建新的Realm,你可以使用这样的默认Realm: let realm = try! Realm() 您还可以指定应在其中创建Realm的自定义路径,请参阅docs中的更多信息。 另请注意,Realm在打开时会生成额外的文件,因此在应用程序的bundle目录中打开它并不是一个好主意。 如果您想在设备上预先填充Realm,请参阅此问题 。 Well now the way I tried to construct the URL ...
  • 是的我找到了上面的解决方案。 下面我们可以一次创建多个表, var Realm = require('realm'); const CarSchema = { name: 'Car', properties: { make: 'string', model: 'string', miles: {type: 'int', default: 0}, } }; const PersonSchema = { name: 'Person', properties: { ...
  • 在SQLite世界中,我会创建一个新表“custom_list_best”, 不,您将拥有一个名为custom_lists的表,其中包含自动增量ID和标识符,以及一个名为join_custom_lists_items的连接表,其中包含custom_lists的ID以及属于该给定自定义列表的任何item的ID。 在Realm世界中,我试图弄清楚Realm是如何工作的,以及构建模型的最佳方法是什么。 如果项目的ID是具体的,并且您需要能够在多个列表中存储相同的Item ,那么为了在两个方向上访问列表,您将需要一 ...
  • 弄清楚了: let result = RealmService.shared.realm.objects(Message.self).filter("group.uuid = '2C5E1738-1167-40CB-BE43-C415FD5E6E5D'") 查询的值必须包含在'' Figured it out: let result = RealmService.shared.realm.objects(Message.self).filter("group.uuid = '2C5E1738-1167-4 ...
  • 您可以使用RLMArray,其中RLMArray是Realm中用于定义多对多关系的容器类型。 正如官方Realm文档中提到的目标c检查示例一样。 也可以通过这个链接来帮助RLMArray doc You can use RLMArray , where RLMArray is the container type in Realm used to define to-many relationships. As mentioned in the official Realm documentation fo ...
  • 我不太清楚“检索所有元素”是什么意思。 allFilteredGroups具有所有Group对象。 由于它们链接到Elements对象,因此您可以轻松地遍历它们: for(Group group : allFilteredGroups) { for(Element element : group.getElement()) { Log.d("TEST", "eid = " + element.eid); } } 目前没有简单的方法来压扁最后一个并将所有Element对象放在 ...
  • 您可以使用dynamicList(_ propertyName: String)通过名称而不是下标检索List属性。 if property.type == .array { try! realm?.write { realm?.delete(dynamicList(property.name)) } } You can use dynamicList(_ propertyName: String) to retrieve List property by name ins ...

相关文章

更多

最新问答

更多
  • 您如何使用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)