由买买提看人间百态

topics

全部话题 - 话题: dimen
(共0页)
d****n
发帖数: 233
1
来自主题: JobHunting版 - 昨天G面经里的这一题怎么做?
抛个砖:
typedef struct {
int L;
int W;
} Dimension;

bool compareLW(const Dimension &l, const Dimension &r)
{
if (l.L == r.L) return l.W > r.W;
return l.L > r.L;
}

void normalize(Dimension &dimen)
{
if (dimen.L > dimen.W) {
int t = dimen.L;
dimen.L = dimen.W;
dimen.W = t;
}
}
int MinArea(vector dimens)
{
if (dimens.size() < 1) return 0;

for(int i = 0; i < dimen... 阅读全帖
d****n
发帖数: 233
2
来自主题: JobHunting版 - google onsite的套盒子题目
抛个砖:
typedef struct {
int L;
int W;
} Dimension;

bool compareLW(const Dimension &l, const Dimension &r)
{
if (l.L == r.L) return l.W > r.W;
return l.L > r.L;
}

void normalize(Dimension &dimen)
{
if (dimen.L > dimen.W) {
int t = dimen.L;
dimen.L = dimen.W;
dimen.W = t;
}
}
int MinArea(vector dimens)
{
if (dimens.size() < 1) return 0;

f... 阅读全帖
W******8
发帖数: 725
3
演出门票免费,但是需要预先订票。
June 27-28 Dimen Dong Folk Chorus Show at Aisa Society TX Center
Just let you know that upon the invitation of Asia Society TX Center, Dimen
Dong Folk Chorus of Guizhou Province,China (16 people) will present two
unique shows at Asia Society TX Center on June 27 (Thur) and June 28 ( Fri),
6:30pm.
It is an event of free admisssion, please register ASAP for tickets at http://asiasociety.org/texas/events/dimen-dong-folk-chorus-concert.
==============================================... 阅读全帖
s****l
发帖数: 78
4
http://web.mit.edu/rsi/www/2007/tech/latex/#faq5
5. How do I get table cells to auto-wrap?
Use p{dimen} as the column specification. That wraps them to that width spec
ified by dimen. Example:
\begin{tabular}{|l|l|r|p{2in}|}
k****g
发帖数: 67
5
最关键的是第三个变量Integrand不知道怎么typedef
CALL CUBATR &
(DIMENS,NumFun,Integrand,NumRgn,Vertices,RgType,Value,AbsErr, &
! and optional parameters
IFAIL,Neval,EpsAbs,EpsRel,Restart,MinPts,MaxPts,Key,Job,Tune)
!-----------------------------------------------------------------------
! Input parameters
! ----------------
!
! DIMENS Integer.
! The dimension of the region of integration.
!
! NumFun Integer.
! Number of components of the integrand.
!
! Integrand
!
P**g
发帖数: 27
6
来自主题: JobHunting版 - 简历评论专贴
请帮助看看我的qualification: 多谢!!
• Mechanical engineer with multi-disciplinary background.
• Knowledgeable of the process of product development from
conceptual design to product release.
• Significant experience in design, development, test, evaluation
and failure analysis.
• Familiar with manufacturing equipments, process and DFM.
• Expertise in finite element analysis (linear and nonlinear).
• Proficient in solid modeling, and geometric dimen
L******s
发帖数: 2349
7
来自主题: Comic版 - 圣斗士让我最感动的一幕
Lost Canvas动画追了,漫画还差3、4本没看,一度停了就一直搁那儿了。Next Dimens
ion好几年前看了几话,听说新的还挺精彩的,估计会再捡起来看。
L******s
发帖数: 2349
8
来自主题: Comic版 - 圣斗士让我最感动的一幕
Lost Canvas动画追了,漫画还差3、4本没看,一度停了就一直搁那儿了。Next Dimens
ion好几年前看了几话,听说新的还挺精彩的,估计会再捡起来看。
x********g
发帖数: 47
9
来自主题: Programming版 - MPI环境中用forran 调用 C 程序
我有如下程序,但是编译出错,请高手指教:
subroutine intensity(m_int, res, px, py, k, int_i, scatfact_e, istat)
!USE, intrinsic :: iso_c_binding
USE MPI_C_BINDING !mpi
IMPLICIT NONE
type(model), intent(in) :: m_int
real, intent(in) :: res, px, py
real, dimension(nk), intent(in) :: k
real, dimension(nk), intent(out) :: int_i
real, dimension(:,:), pointer, intent(in) :: scatfact_e
integer, intent(out) :: istat
! C-compatible variables for the model data
integer(C_INT), dimen
z****y
发帖数: 1550
10
来自主题: TeX版 - 再问个beamer的问题
! No room for a new \dimen .
g***i
发帖数: 90
11
finally got some algorithm and programmed in fortran
using lapack. but it turns out that the block CG doesn't
work well
here is the program if someone is interested:
subroutine bcg(A,B,X,n,r,eps,kmax)
implicit none
integer n,r,k,kmax,i,j,INFO,LWORK
real(8) A(n,n),B(n,r), X(n,r), R0(n,r), D0(r,r), D1(r,r), &
Al(r,r), Be(r,r), P(n,r), &
Q(n,r), RR(r,r), IPIV(r), NR(n,r), &
eps,errm,err(r),err0(r)
real(8), dimen
h***o
发帖数: 539
12
function pointer
void cubatr(int* dimens, int* numfun, void* (*integrand)(double*, int*), ....)
n********e
发帖数: 1789
13
主要一个方程不知道怎么写。
比如:A(1) = B(3)-B(1)
A(2) = B(3)-B(2)
看到GAMS语言都是A(j) = C(j) - D(j)这样形式的,像我上面的怎么弄?主要A的dimen
sion是2,B的是3,老是说不匹配,谢谢
S*M
发帖数: 536
14
i /1*2/;
j /1*3/;
variables a(i), b(j);
eq(i,j)$(ord(i)=ord(j)).. a(i) =e= b('3') - b(j);

dimen
x********g
发帖数: 47
15
来自主题: Computation版 - 如何 在MPI环境下用fortran调用C code
我有如下程序,但是编译出错,请高手指教:
subroutine intensity(m_int, res, px, py, k, int_i, scatfact_e, istat)
!USE, intrinsic :: iso_c_binding
USE MPI_C_BINDING !mpi
IMPLICIT NONE
type(model), intent(in) :: m_int
real, intent(in) :: res, px, py
real, dimension(nk), intent(in) :: k
real, dimension(nk), intent(out) :: int_i
real, dimension(:,:), pointer, intent(in) :: scatfact_e
integer, intent(out) :: istat
! C-compatible variables for the model data
integer(C_INT), dimen
f******h
发帖数: 104
16
这真的假的?哪个大牛给鉴定一下?
First letter:
-------------------------
成桐兄:
钟家庆自Austin回Harvard后与我谈及他Austin一行见闻。其中一事使我甚为困
扰。此事乃关乎你学生田刚在Kahler-Einstein Metric 问题上之结果。钟家庆对此
问题甚感兴趣。他来Harvard后曾阅读我在Columbia所讲之文章,即我托他带给你的
那篇。他在Austin时向田刚及曹怀东问及田刚Kahler-Einstein Metric的结果。他
主要是从曹怀东处大约获知田刚所寄Kahler-Einstein Metric文章之方法及结果。
他回来后将所知一一转告我。因他Austin之行短暂,所知自多有未尽之处。单从据
他所拿到的部分看,除田刚自信应该有办法将来可做出之结果不算外,田刚确实做
到的部分中他所用方法与我在Columbia讲的基本上一样,结果也未出我所能做出的
范围。该方法我四月在Columbia及Maryland并六月在巴黎都曾在演讲中讲述。我四
月在Columbia讲时你和田刚及其他数位你的学生均在座。若田刚有新方法,... 阅读全帖
(共0页)