GSL——gsl_matrix 中频繁出现的MULTIPLICITY的值为多少

这是从GNU官网上考下来的一段代码,它是说MULTIPLICITY是一个定义数据多样性的常数,

当所参与计算的数位复数时MULTIPLICITY的值为2 当为实数时值为1

它的定义在gsl文档的根目录的template_on.c文档里


Re: [Help-gsl] Macro definitions

From:     Francesco Abbate
Subject:     Re: [Help-gsl] Macro definitions
Date:     Sat, 27 Aug 2011 11:25:40 +0200

2011/8/27 Greg Lyukshin <address@hidden>:
> Hello everyone,
> Forgive me for a silly question but I can't seem to be able to find the
> meaning of macro called MULTIPLICITY. It is used all over, including  the
> source file called permute_source.c, which is located in the permutation
> folder of gsl libraries.
> Does anyone know what MULTIPLICITY means?
> Thank you!

Hi Greg,

the MULTIPLICITY macro definition is part of the GSL template system.
You will find the definition in the file templates_on.h in the root
directory.

The meaning of the MULTIPLICITY is to take into account complex number
that can be expressed as a pair of real number. So MULTIPLICITY is 2
for complex number and 1 for real number independently of the base

type that can be either float, double or also other more exotic types.

这是从GNU官网上考下来的一段代码,它是说MULTIPLICITY是一个定义数据多样性的常数,

当所参与计算的数位复数时MULTIPLICITY的值为2 当为实数时值为1

它的定义在gsl文档的根目录的template_on.c文档里


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值