- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
dear all,
I usually use NORM2 to compute the error in a while cycle.
However, I have complex vector now and NORM2 does not work.
Is there any norm2 function for complex vectors?
Thanks
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
There is a routine NRM2 in MKL, of which the flavors SCNRM2 and DZNRM2 pertain to complex vectors. There is an overloaded routine NRM2 available through the F95 interface.
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Not in the Fortran standard - NORM2 is defined for REAL only.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Dear all, Dear Steve,
Ok. Do you have some suggestion to overcome this?
this is my code, I use norm2 to compute the error:
DO WHILE(NORM(R1)>=eps*NORM(BBg)) ! P1 = R1 + beta0*P0 ! ........ ........ ......... ENDDO
where R1 and BBg are complex vectors
Thanks for any help
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
You'd have to specify explicitly how you want NORM calculated.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
There is a routine NRM2 in MKL, of which the flavors SCNRM2 and DZNRM2 pertain to complex vectors. There is an overloaded routine NRM2 available through the F95 interface.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I can't understand at all why NORM2 for complex input isn't in the standard. Stuff like NORM2(transfer(x,[real(kind(x))::])) or NORM2([NORM2(real(x)),NORM2(aimag(x))]) is possible.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Dear all,
thanks a lot.
NRM2 and NORM2([NORM2(real(x)),NORM2(aimag(x))]) work for me.
I have only to compute the difference between two complex vectors
thanks again
