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文档里


你可能感兴趣的:(File,文档,Matrix,templates,pair,permutation)