问题标签 [mpc]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
gcc - 使用 MPFR、GMP 和 MPC 构建 GCC
当然,我们都知道构建 GCC 版本 >= 4.1.x 需要存在补充包 MPFR、GMP 和 MPC。
有几种方法可以处理这些 GCC 依赖项:
1)分别下载和构建每个支持包,然后make
在 GCC 构建期间告诉二进制文件的位置。
2)下载每个支持包,解压缩并将源移动到您的 GCC 构建目录,并make
在需要时自动构建每个包。
(执行 gcc-src/contrib/download_prerequisites 脚本与选项 2 相同)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
两种方法都有优势吗?make
通过采用“简单路线”并将包的源代码转储到我的 GCC 构建目录并让其弄清楚,预编译二进制文件是否提供了我所缺少的东西?
我已经看到它在各种构建脚本中更频繁地完成,方法是将每个包预编译为二进制文件,然后make
在 gcc 编译期间告诉它们它们的位置。这是“首选”的方式吗?为什么?
为了添加上下文,我主要构建针对各种 ARM 平台的交叉编译器。
matlab - 在 MATLAB/Simulink 中检测离散控制器的采样时刻
让我们假设我在 Simulink 中有一个要控制的连续系统。首先,我应用卡尔曼滤波器来估计系统的状态。在下一阶段,我将x_hat
在嵌入式 MATLAB 函数中使用估计状态 ( ),该函数调用模型预测控制器函数my_mpc
,如下所示:
但是,由于时钟时间t
是一个变量,mod(t, Ts) == 0
不会是这样。我的问题是:我们如何检测采样时刻以将离散的 mpc 控制输入应用于连续系统?
linux - 在 Red Hat Enterprise linux 6.5 上安装 GCC 4.8.2
我是红帽企业 Linux 的新手。我在 Red Hat Enterprise Linux 6.5 上编译 gcc 4.8.2 时遇到问题,我下载了 GNU 网站的源代码。我遵循此链接 http://gcc.gnu.org/wiki/InstallingGCC中的步骤 触发的命令是:
我在 Google 上进行了调查,然后我发现以下与此 http://gcc.gnu.org/ml/gcc-help/2012-02/msg00142.html相关的问题, 但它再次将我重定向到我之前找到并遵循的上述链接。
我需要有关如何处理此问题的指导。欢迎提出建议。
c - There is a real reason for gcc to be so conservative with its dependecies ? ( MPFR, GMP, MPC )
I'm wondering if someone knows why gcc
tends to be so conservative about the versions of the libraries to use to compile and build gcc
itself .
The main reasons why I'm asking this are :
- I think that there is a big shift between the "implicitly suggested" versions listed here ( they also appear named in some scripts inside the
gcc
sources ) and the latest milestones available - I think that at some point being that conservative can only increase the chances of carrying bugged and sub-optimal versions of the given library
latest releases available at the moment vs the "implicitly suggested" ones :
This is just for the vital ones, there are also others like cloog and isl, but here you can see a big difference, those releases are just old .
Does anyone happens to know about some good reasons to do that ? Breaking changes in this 3 libraries ? Stability ? Portability ?
python - python bigfloat安装问题
我的问题与这张海报类似,我使用的是 MAC OsX 10.9.5 版本:
当我尝试安装“mpc-1.0.2”包时,它无法编译并给出以下错误:
我的配置命令是:
./configure --prefix=/users/username/local --with-gmp=/users/username/local --with-mpfr=/users/username/local
任何人或 Casevh 都可以帮忙吗?
matlab - 无法使用某些 Matlab MPC Toolbox 功能
例如,我正在尝试使用setoutdist
MPC 工具箱中的 Matlab 函数(我在 Windows 8.1 上使用 Matlab R2013a)。作为回应,我收到:
我可以使用help setoutdist
. 当我输入函数名称和左括号时,我会收到带有参数列表的提示。当我使用时which setoutdist -all
,我收到了正确的输出:
但即使在默认的 Matlab 路径中,该功能也不起作用,所以我认为它不会被遮蔽。其他函数也是如此,例如setindist
, setestim
,mpc_struct
等,但是mpc
,mpcstate
和mpcmove
函数可以正常工作。
我正在尝试:clear all
, clear classess
, rehash toolbox
, rehash pathreset
, rehash toolboxreset
, 使用pathtool
. 我已经阻止了防病毒软件并将例外添加到它的列表中。我什至重新安装了我的 Matlab,没有任何帮助。
也许这很重要:当我尝试编辑时,setoutdist.m
我收到拒绝访问的消息。
我将非常感谢任何帮助...
php - 从 PHP 运行 ./script.sh
我有从 Raspberry 播放音乐并使用脚本 gpio.sh 打开 LED 的网络服务器。我正在使用 mpd、mpc 和 gpio。
我的 /var/www/index.php :
在终端中,我可以成功运行 /bin/bash /var/www/gpio.sh 并且 LED 亮起。从网络服务器'mpc play' WORKS 并且可以播放一首歌曲但它不能运行那个 gpio.sh 。index.php 的所有者是 www-data
-rwx------ 1 www-data www-data 1262 Dec 8 10:45 gpio.sh
-rwx------ 1 www-data www-data 272 Dec 9 09:39 index.php
我应该怎么办 ?当我将 index.php 或 gpio.sh 的所有者更改为 root 时,php 无法执行。我的 index.php 错了吗?我无法从 php 执行 .sh。请帮忙。
c++ - Micro Parser Combinators (mpc) 在无限循环中运行
我正在用 C++(使用 Visual Studio)为一种小型脚本语言编写编译器,我使用这个 C 解析库。
因此,我按照文档中的说明进行操作,最终获得了这种和平的代码:
问题是我在mpc_parse
. 该循环实际上从未到达终点。一段时间后,我得到了这个异常:
我不知道为什么。我怀疑我的语法有问题,但我不知道是什么。
如果有人以前使用过这个库,你知道问题可能是什么吗?
注意:我知道很难从 C 代码中读取语法,所以这里是语法的图像:
c - 在 C 中释放 mpc_t 数组
我是 C 编程新手,我找不到解决问题的方法。虽然代码有效(我已经能够将它包含在其他程序中),但当它尝试释放 calloc() 分配的内存时,它返回以下错误:
后面跟着一个似乎是内存地址的东西。我正在使用 mpc 库(用于任意精度的复数)。这是重复错误的最小程序:
谢谢你的帮助!
ios - Swift:MPC:浏览器如何查看附近的所有广告商?
所以最初我们有这个代码:
哪个可以看到所有服务类型为“sample”的广告商,对吗?
如果我想在不知道他们的服务类型的情况下查看所有广告商怎么办?我怎样才能以编程方式做到这一点?
感谢您的回复。