set_precision

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

set_precision

Bohan Liu
Dear all,
 
How to set precision to the element in Matrix object?
 
Best,
Bohan

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: set_precision

Luigi Ballabio
On Sun, 2009-08-16 at 21:24 -0500, Bohan Liu wrote:
> How to set precision to the element in Matrix object?

You don't. It contains doubles, so that's the precision you get.

Luigi


--

If I do not want others to quote me, I do not speak.
-- Phil Wayne



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

auto-link?fatal error LNK1104: cannot open file 'libboost_unit_test_framework-vc90-mt-sgd-1_39.lib'

Yan Kuang

Hi All,

I guess this is an autolink issue? When I built testsuite project, I get the error in vs 2008:

fatal error LNK1104: cannot open file 'libboost_unit_test_framework-vc90-mt-sgd-1_39.lib'

I thought boost is just head files. I recalled when I installed boost 1.39 via the installer, I set the vs version
to 2003. But the installation failed, so I just unziped the source file.

Sorry this may become a boost library question, if libboost_unit_test_framework-vc90-mt-sgd-1_39.lib from boost installation.
Anyone know where this lib is (I checked it's not in my boost directory)? Suppose I have got
libboost_unit_test_framework-vc71-mt-sgd-1_39.lib, can I just copy and rename it to libboost_unit_test_framework-vc90-mt-sgd-1_39.lib?
Or better if I can build it.

Thanks in advance!
Yan
Please consider our environment before printing this email.

WARNING - This email and any attachments may be confidential. If received in error, please delete and inform us by return email. Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems, you must be cautious. Westpac cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email by Westpac, please contact us immediately.

It is also important to check for viruses and defects before opening or using attachments. Westpac's liability is limited to resupplying any affected attachments.

This email and its attachments are not intended to constitute any form of financial advice or recommendation of, or an offer to buy or offer to sell, any security or other financial product. We recommend that you seek your own independent legal or financial advice before proceeding with any investment decision.

Westpac Institutional Bank is a division of Westpac Banking Corporation, a company registered in New South Wales in Australia under the Corporations Act 2001 (Cth). Westpac is authorised and regulated in the United Kingdom by the Financial Services Authority and is registered at Cardiff in the United Kingdom as Branch No. BR 106. Westpac operates in the United States of America as a federally chartered branch, regulated by the Office of the Comptroller of the Currency.

Westpac Banking Corporation ABN 33 007 457 141.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: auto-link?fatal error LNK1104: cannot open file 'libboost_unit_test_framework-vc90-mt-sgd-1_39.lib'

Dimathematician
I had this issue too in the past. The unzipping failed in the installer. Go to the boost
library and check if the zip files are still there. If yes, try to unzip the test framework zip
manually. I don't think renaming some other build will help, I'd suggest to
rebuild. And choose the correct version, if you're on vs 2008, choose this
version in your boost installation menue. Hope this helps

2009/8/27 Yan Kuang <[hidden email]>

Hi All,

I guess this is an autolink issue? When I built testsuite project, I get the error in vs 2008:

fatal error LNK1104: cannot open file 'libboost_unit_test_framework-vc90-mt-sgd-1_39.lib'

I thought boost is just head files. I recalled when I installed boost 1.39 via the installer, I set the vs version
to 2003. But the installation failed, so I just unziped the source file.

Sorry this may become a boost library question, if libboost_unit_test_framework-vc90-mt-sgd-1_39.lib from boost installation.
Anyone know where this lib is (I checked it's not in my boost directory)? Suppose I have got
libboost_unit_test_framework-vc71-mt-sgd-1_39.lib, can I just copy and rename it to libboost_unit_test_framework-vc90-mt-sgd-1_39.lib?
Or better if I can build it.

Thanks in advance!
Yan
Please consider our environment before printing this email.

WARNING - This email and any attachments may be confidential. If received in error, please delete and inform us by return email. Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems, you must be cautious. Westpac cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email by Westpac, please contact us immediately.

It is also important to check for viruses and defects before opening or using attachments. Westpac's liability is limited to resupplying any affected attachments.

This email and its attachments are not intended to constitute any form of financial advice or recommendation of, or an offer to buy or offer to sell, any security or other financial product. We recommend that you seek your own independent legal or financial advice before proceeding with any investment decision.

Westpac Institutional Bank is a division of Westpac Banking Corporation, a company registered in New South Wales in Australia under the Corporations Act 2001 (Cth). Westpac is authorised and regulated in the United Kingdom by the Financial Services Authority and is registered at Cardiff in the United Kingdom as Branch No. BR 106. Westpac operates in the United States of America as a federally chartered branch, regulated by the Office of the Comptroller of the Currency.

Westpac Banking Corporation ABN 33 007 457 141.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: auto-link?fatal error LNK1104: cannot open file 'libboost_unit_test_framework-vc90-mt-sgd-1_39.lib'

Luigi Ballabio
In reply to this post by Yan Kuang
On Thu, 2009-08-27 at 10:38 +1000, Yan Kuang wrote:
> I guess this is an autolink issue? When I built testsuite project, I
> get the error in vs 2008:
>
> fatal error LNK1104: cannot open file
> 'libboost_unit_test_framework-vc90-mt-sgd-1_39.lib'
>
> I thought boost is just head files.

No, the test framework is a compiled library.

> I recalled when I installed boost 1.39 via the installer, I set the vs
> version to 2003. But the installation failed, so I just unziped the
> source file.

That is enough to build the library (which only needs Boost headers) but
not the test suite.

> Suppose I have got
> libboost_unit_test_framework-vc71-mt-sgd-1_39.lib, can I just copy and
> rename it to libboost_unit_test_framework-vc90-mt-sgd-1_39.lib?

No, I don't think different versions of VC++ are binary compatible.

I'd try with the installer again.

Luigi


--

Anyone who says he can see through women is missing a lot.
-- Groucho Marx



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users