Friday, June 7, 2013
NvCudaRuntimeApi.rules missing in 4.0
I also met with this problem when I installed cuda4.0. The following is my solution, it goes well in my computer, maybe you could try.
Step1:Copy the rules files, which in my computer is in C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\extras\visual_studio_integration\rules to the VS2008 installation directory,which in my computer is I:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\VCProjectDefaults;
Step2:Open a SDK project in VS2008, for example clock.sln, open "custom build rule",select "NvCudaRuntimeApi.rules".
https://devtalk.nvidia.com/default/topic/490876/nvcudaruntimeapi-rules-missing-in-4-0/
Thursday, June 6, 2013
Pade Series
Padé approximant is the "best" approximation of a function by a rational function of given order – under this technique,
The Padé approximant often gives better approximation of the function than truncating its Taylor series, and it may still work where the Taylor series does not converge.
http://en.wikipedia.org/wiki/Pad%C3%A9_approximant
The Padé approximant often gives better approximation of the function than truncating its Taylor series, and it may still work where the Taylor series does not converge.
http://en.wikipedia.org/wiki/Pad%C3%A9_approximant
Wednesday, June 5, 2013
Calculate gradient in the polar coordinates
http://www.mathworks.com/support/solutions/en/data/1-9OM5E4/index.html?product=SL&solution=1-9OM5E4
gradient(F) = del(F)/del(r) + 1/r * del(F)/del(theta)
As a workaround, given:
F = matrix of F values varying along r and theta
r = vector of radius values
theta = vector of radian values
the following code can be used to calculate the gradient.
% Take the gradient of F, suppose that the values of r vary along the rows
% (and are constant along the columns) and that the values of theta vary
% along the columns and are constant along the rows.
[ dFr dFt ] = gradient(F,r,theta);
% Modify the results for dFt, as the second term in the polar gradient
% is divided by the value of r
dFt = dFt./(repmat(r(:)',length(theta),1);
Tuesday, June 4, 2013
A Toeplitz matrix is persymmetric, so is its inverse.
A Toeplitz matrix is persymmetric, so is its inverse.
http://www.math.purdue.edu/~xiaj/teaching/692.11s/notes4.pdf
Persymmetric matrix:
http://www.math.purdue.edu/~xiaj/teaching/692.11s/notes4.pdf
Persymmetric matrix:
In mathematics, persymmetric matrix may refer to:
- a square matrix which is symmetric in the northeast-to-southwest diagonal; or
- a square matrix such that the values on each line perpendicular to the main diagonal are the same for a given line.
Sunday, June 2, 2013
C static Variables and Static Functions
static variable and function in C/C++ with examples
C static Variables and Static Functions Explained with Examples:
Wednesday, May 29, 2013
N Dimensional Grid and Grid based Interpolation (MATLAB)
Grid Based Interpolation
http://www.mathworks.com/help/matlab/examples/grid-based-interpolation.html
N Dimensional Grid
ndgrid
http://www.mathworks.com/help/matlab/examples/grid-based-interpolation.html
N Dimensional Grid
ndgrid
Subscribe to:
Posts (Atom)