五月天婷亚洲天久久综合网,婷婷丁香五月激情亚洲综合,久久男人精品女人,麻豆91在线播放

  • <center id="8gusu"></center><rt id="8gusu"></rt>
    <menu id="8gusu"><small id="8gusu"></small></menu>
  • <dd id="8gusu"><s id="8gusu"></s></dd>
    樓主: pengming
    1775 19

    The Mata Book:A Book for Serious Programmers and Those Who Want to Be [推廣有獎(jiǎng)]

    • 6關(guān)注
    • 27粉絲

    學(xué)科帶頭人

    1%

    還不是VIP/貴賓

    -

    威望
    0 級(jí)
    論壇幣
    175146 個(gè)
    通用積分
    283.9295
    學(xué)術(shù)水平
    66 點(diǎn)
    熱心指數(shù)
    79 點(diǎn)
    信用等級(jí)
    76 點(diǎn)
    經(jīng)驗(yàn)
    36544 點(diǎn)
    帖子
    466
    精華
    0
    在線時(shí)間
    3005 小時(shí)
    注冊(cè)時(shí)間
    2006-1-8
    最后登錄
    2024-12-20

    相似文件 換一批

    +2 論壇幣
    k人 參與回答

    經(jīng)管之家送您一份

    應(yīng)屆畢業(yè)生專屬福利!

    求職就業(yè)群
    趙安豆老師微信:zhaoandou666

    經(jīng)管之家聯(lián)合CDA

    送您一個(gè)全額獎(jiǎng)學(xué)金名額~ !

    感謝您參與論壇問(wèn)題回答

    經(jīng)管之家送您兩個(gè)論壇幣!

    +2 論壇幣
    able of contents

    View table of contents >>

    Acknowledgment
    1 Introduction
    1.1 Is this book for me?
    1.2 What is Mata?
    1.3 What is covered in this book
    1.4 How to download the files for this book

    2 The mechanics of using Mata
    2.1 Introduction
    2.2 Mata code appearing in do-files
    2.3 Mata code appearing in ado-files
    2.4 Mata code to be exposed publicly

    3 A programmer's tour of Mata
    3.1 Preliminaries
    3.1.1 Results of expressions are displayed when not stored
    3.1.2 Assignment
    3.1.3 Multiple assignment

    3.2 Real, complex, and string values
    3.2.1 Real values
    3.2.2 Complex values
    3.2.3 String values (ASCII, Unicode, and binary)

    3.3 Scalars, vectors, and matrices
    3.3.1 Functions rows(), cols(), and length()
    3.3.2 Function I()
    3.3.3 Function J()
    3.3.4 Row-join and column-join operators
    3.3.5 Null vectors and null matrices

    3.4 Mata's advanced features
    3.4.1 Variable types
    3.4.2 Structures
    3.4.3 Classes
    3.4.4 Pointers

    3.5 Notes for programmers
    3.5.1 How programmers use Mata's interactive mode
    3.5.2 What happens when code has errors
    3.5.3 The _error() abort function


    4 Mata's programming statements
    4.1 The structure of Mata programs
    4.2 The program body
    4.2.1 Expressions
    4.2.2 Conditional execution statement
    4.2.3 Looping statements
    4.2.3.1 while
    4.2.3.2 for
    4.2.3.3 do while
    4.2.3.4 continue and break

    4.2.4 goto
    4.2.5 return
    4.2.5.1 Functions returning values
    4.2.5.2 Functions returning void



    5 Mata's expressions
    5.1 More surprises
    5.2 Numeric and string literals
    5.2.1 Numeric literals
    5.2.1.1 Base-10 notation
    5.2.1.2 Base-2 notation

    5.2.2 Complex literals
    5.2.3 String literals

    5.3 Assignment operator
    5.4 Operator precedence
    5.5 Arithmetic operators
    5.6 Increment and decrement operators
    5.7 Logical operators
    5.8 (Understand this ? skip : read) Ternary conditional operator
    5.9 Matrix row and column join and range operators
    5.9.1 Row and column join
    5.9.2 Comma operator is overloaded
    5.9.3 Row and column count vectors

    5.10 Colon operators for vectors and matrices
    5.11 Vector and matrix subscripting
    5.11.1 Element subscripting
    5.11.2 List subscripting
    5.11.3 Permutation vectors
    5.11.3.1 Use to sort data
    5.11.3.2 Use in advanced mathematical programming

    5.11.4 Submatrix subscripting

    5.12 Pointer and address operators
    5.13 Cast-to-void operator

    6 Mata's variable types
    6.1 Overview
    6.2 The forty variable types
    6.2.1 Default initialization
    6.2.2 Default eltype, orgtype, and therefore, variable type
    6.2.3 Partial types
    6.2.4 A forty-first type for returned values from functions

    6.3 Appropriate use of transmorphic
    6.3.1 Use transmorphic for arguments of overloaded functions
    6.3.2 Use transmorphic for output arguments
    6.3.2.1 Use transmorphic for passthru variables

    6.3.3 You must declare structures and classes if not passthru
    6.3.4 How to declare pointers


    7 Mata's strict option and Mata's pragmas
    7.1 Overview
    7.2 Turning matastrict on and off
    7.3 The messages that matastrict produces, and suppressing them

    8 Mata's function arguments
    8.1 Introduction
    8.2 Functions can change the contents of the caller's arguments
    8.2.1 How to document arguments that are changed
    8.2.2 How to write functions that do not unnecessarily change arguments

    8.3 How to write functions that allow a varying number of arguments
    8.4 How to write functions that have multiple syntaxes

    9 Programming example: n_choose_k() three ways
    9.1 Overview
    9.2 Developing n_choose_k()
    9.3 n_choose_k() packaged as a do-file
    9.3.1 How I packaged the code: n_choose_k.do
    9.3.2 How I could have packaged the code
    9.3.2.1 n_choose_k.mata
    9.3.2.2 test_n_choose_k.do

    9.3.3 Certification files

    9.4 n_choose_k() packaged as an ado-file
    9.4.1 Writing Stata code to call Mata functions
    9.4.2 nchooseki.ado
    9.4.3 test_nchooseki.do
    9.4.4 Mata code inside of ado-files is private

    9.5 n_choose_k() packaged as a Mata library routine
    9.5.1 Your approved source directory
    9.5.1.1 make_lmatabook.do
    9.5.1.2 test.do
    9.5.1.3 hello.mata
    9.5.1.4 n_choose_k.mata
    9.5.1.5 test_n_choose_k.do

    9.5.2 Building and rebuilding libraries
    9.5.3 Deleting libraries


    10 Mata's structures
    10.1 Overview
    10.2 You must define structures before using them
    10.3 Structure jargon
    10.4 Adding variables to structures
    10.5 Structures containing other structures
    10.6 Surprising things you can do with structures
    10.7 Do not omit the word scalar in structure declarations
    10.8 Structure vectors and matrices and use of the constructor function
    10.9 Use of transmorphic with structures
    10.10 Structure pointers

    11 Programming example: Linear regression
    11.1 Introduction
    11.2 Self-threading code
    11.3 Linear-regression system lr*() version 1
    11.3.1 lr*() in action
    11.3.2 The calculations to be programmed
    11.3.3 lr*() version-1 code listing
    11.3.4 Discussion of the lr*() version-1 code
    11.3.4.1 Getting started
    11.3.4.2 Assume subroutines
    11.3.4.3 Learn about Mata's built-in subroutines
    11.3.4.4 Use of built-in subroutine cross()
    11.3.4.5 Use more subroutines


    11.4 Linear-regression system lr*() version 2
    11.4.1 The deviation from mean formulas
    11.4.2 The lr*() version-2 code
    11.4.3 lr*() version-2 code listing
    11.4.4 Other improvements you could make

    11.5 Closeout of lr*() version 2
    11.5.1 Certification
    11.5.2 Adding lr*() to the lmatabook.mlib library


    12 Mata's classes
    12.1 Overview
    12.1.1 Classes contain member variables
    12.1.2 Classes contain member functions
    12.1.3 Member functions occult external functions
    12.1.4 Members—variables and functions—can be private
    12.1.5 Classes can inherit from other classes
    12.1.5.1 Privacy versus protection
    12.1.5.2 Subclass functions occult superclass functions
    12.1.5.3 Multiple inheritance
    12.1.5.4 And more


    12.2 Class creation and deletion
    12.3 The this prefix
    12.4 Should all member variables be private?
    12.5 Classes with no member variables
    12.6 Inheritance
    12.6.1 Virtual functions
    12.6.2 Final functions
    12.6.3 Polymorphisms
    12.6.4 When to use inheritance

    12.7 Pointers to class instances

    13 Programming example: Linear regression 2
    13.1 Introduction
    13.2 LinReg in use
    13.3 LinReg version-1 code
    13.4 Adding OPG and robust variance estimates to LinReg
    13.4.1 Aside on numerical accuracy: Order of addition
    13.4.2 Aside on numerical accuracy: Symmetric matrices
    13.4.3 Finishing the code

    13.5 LinReg version-2 code
    13.6 Certifying LinReg version 2
    13.7 Adding LinReg version 2 to the lmatabook.mlib library

    14 Better variable types
    14.1 Overview
    14.2 Stata's macros
    14.3 Using macros to create new types
    14.4 Macroed types you might use
    14.4.1 The boolean type
    14.4.2 The Code type
    14.4.3 Filehandle
    14.4.4 Idiosyncratic types, such as Filenames
    14.4.5 Macroed types for structures
    14.4.6 Macroed types for classes
    14.4.7 Macroed types to avoid name conflicts


    15 Programming constants
    15.1 Problem and solution
    15.2 How to define constants
    15.3 How to use constants
    15.4 Where to place constant definitions

    16 Mata's associative arrays
    16.1 Introduction
    16.2 Using class AssociativeArray
    16.3 Finding out more about AssociativeArray

    17 Programming example: Sparse matrices
    17.1 Introduction
    17.2 The idea
    17.3 Design
    17.3.1 Producing a design from an idea
    17.3.2 The design goes bad
    17.3.3 Fixing the design
    17.3.3.1 Sketches of R_*x*() and S_*x*() subroutines
    17.3.3.2 Sketches of class's multiplication functions

    17.3.4 Design summary
    17.3.5 Design shortcomings

    17.4 Code
    17.5 Certification script

    18 Programming example: Sparse matrices, continued
    18.1 Introduction
    18.2 Making overall timings
    18.2.1 Timing T1, Mata R=RR
    18.2.2 Timing T2, SpMat R=RR
    18.2.3 Timing T3, SpMat R=SR
    18.2.4 Timing T4, SpMat R=RS
    18.2.5 Timing T5, SpMat R=SS
    18.2.6 Call a function once before timing
    18.2.7 Summary

    18.3 Making detailed timings
    18.3.1 Mata's timer() function
    18.3.2 Make a copy of the code to be timed
    18.3.3 Make a do-file to run the example to be timed
    18.3.4 Add calls to timer_on() and timer_off() to the code
    18.3.5 Analyze timing results

    18.4 Developing better algorithms
    18.4.1 Developing a new idea
    18.4.2 Aside
    18.4.2.1 Features of associative arrays
    18.4.2.2 Advanced use of pointers


    18.5 Converting the new idea into code sketches
    18.5.0.3 Converting the idea into a sketch of R_SxS()
    18.5.0.4 Sketching subroutine cols_of_row()

    18.5.1 Converting sketches into completed code
    18.5.1.1 Double-bang comments and messages
    18.5.1.2 // NotReached comments
    18.5.1.3 Back to converting sketches

    18.5.2 Measuring performance

    18.6 Cleaning up
    18.6.1 Finishing R_SxS() and cols_of_row()
    18.6.2 Running certification

    18.7 Continuing development

    19 The Mata Reference Manual
    A Writing Mata code to add new commands to Stata
    A.1 Overview
    A.2 Ways to structure code
    A.3 Accessing Stata's data from Mata
    A.4 Handling errors
    A.5 Making the calculation and displaying results
    A.6 Returning results
    A.7 The Stata interface functions
    A.7.1 Accessing Stata's data
    A.7.2 Modifying Stata's data
    A.7.3 Accessing and modifying Stata's metadata
    A.7.4 Changing Stata's dataset
    A.7.5 Accessing and modifying Stata macros, scalars, matrices
    A.7.6 Executing Stata commands from Mata
    A.7.7 Other Stata interface functions


    B Mata's storage type for complex numbers
    B.1 Complex values
    B.2 Complex values and literals
    B.3 Complex scalars, vectors, and matrices
    B.4 Real, complex, and numeric eltypes
    B.5 Functions Re(), Im(), and C()
    B.6 Function eltype()

    C How Mata differs from C and C++
    C.1 Introduction
    C.2 Treatment of semicolons
    C.3 Nested comments
    C.4 Argument passing
    C.5 Strings are not arrays of characters
    C.6 Pointers
    C.6.1 Pointers to existing objects
    C.6.2 Pointers to new objects, allocation of memory
    C.6.3 The size and even type of the object may change
    C.6.4 Pointers to new objects, freeing of memory
    C.6.5 Pointers to subscripted values
    C.6.6 Pointer arithmetic is not allowed

    C.7 Lack of switch/case statements
    C.8 Mata code aborts with error when C would crash

    D Three-dimensional arrays (advanced use of pointers)
    D.1 Introduction
    D.2 Creating three-dimensional arrays

    References
    Author index
    Subject index

    首發(fā),學(xué)習(xí)交流用,保護(hù)作者產(chǎn)權(quán)。

    Mata Book_ A Book for Serious Programmers and Those Who Want to Be, The - Willia.pdf (13.13 MB, 需要: 2 個(gè)論壇幣)

    The Mata Book(azw3格式).rar (6.28 MB, 需要: 1000 個(gè)論壇幣) 本附件包括:
    • The Mata Book_ A Book for Serio - William Gould.azw3


    任意選擇一本即可。

    書(shū)中的數(shù)據(jù): tmb.zip (34.8 KB) 本附件包括:
    • test_nchooseki.do
    • test.do
    • README.txt
    • n_choose_k.do
    • test_lr2.do
    • test_lr1.do
    • hello.mata
    • test_spmat1.do
    • lr1.mata
    • test_earthdistance.do
    • linreg2.mata
    • test_spmat2.do
    • test_linreg1.do
    • nchooseki.ado
    • spmat3.mata
    • spmat1.mata
    • n_choose_k.mata
    • test_spmat3.do
    • make_lmatabook.do
    • test_n_choose_k.do
    • earthdistance.mata
    • lr2.mata
    • linreg1.mata
    • test_linreg2.do
    • spmat2.mata


    書(shū)中的材料在此下載:http://www.stata-press.com/data/tmb.html

    正版書(shū)在此購(gòu)買(mǎi):http://www.stata-press.com/books/mata-book/





    二維碼

    掃碼加我 拉你入群

    請(qǐng)注明:姓名-公司-職位

    以便審核進(jìn)群資格,未注明則拒絕

    關(guān)鍵詞:Programmers Programmer Programme Program Serious

    已有 3 人評(píng)分經(jīng)驗(yàn) 論壇幣 學(xué)術(shù)水平 熱心指數(shù) 信用等級(jí) 收起 理由
    tulipsliu + 5 + 5 + 5 + 5 精彩帖子
    voodoo + 5 + 5 + 5 獎(jiǎng)勵(lì)積極上傳好的資料,謝謝!
    我的素質(zhì)低 + 100 精彩帖子

    總評(píng)分: 經(jīng)驗(yàn) + 100  論壇幣 + 10  學(xué)術(shù)水平 + 5  熱心指數(shù) + 10  信用等級(jí) + 10   查看全部評(píng)分

    本帖被以下文庫(kù)推薦

    沙發(fā)
    pengming 發(fā)表于 2018-3-25 08:22:00 |只看作者 |壇友微信交流群
    好書(shū)從來(lái)都是為最需要的人準(zhǔn)備的,5000幣,價(jià)高,下載的同志就會(huì)學(xué)習(xí),這樣才能發(fā)揮材料的作用。
    藤椅
    pengming 發(fā)表于 2018-3-25 08:26:13 |只看作者 |壇友微信交流群
    書(shū)中的材料在此下載:http://www.stata-press.com/data/tmb.html
    正版書(shū)在此購(gòu)買(mǎi):http://www.stata-press.com/books/mata-book/
    板凳
    飛鴻驚鴻 發(fā)表于 2018-3-25 13:21:22 |只看作者 |壇友微信交流群
    非原版PDF,是轉(zhuǎn)換的版本,除了排版之外,其他方面都挺好
    報(bào)紙
    pengming 發(fā)表于 2018-3-25 16:41:39 |只看作者 |壇友微信交流群
    飛鴻驚鴻 發(fā)表于 2018-3-25 13:21
    非原版PDF,是轉(zhuǎn)換的版本,除了排版之外,其他方面都挺好
    沒(méi)有原版PDF,只有原版azw3格式的
    地板
    飛鴻驚鴻 發(fā)表于 2018-3-25 18:59:28 |只看作者 |壇友微信交流群
    pengming 發(fā)表于 2018-3-25 16:41
    沒(méi)有原版PDF,只有原版azw3格式的
    azw3如果排版是出版社紙質(zhì)書(shū)的排版的話,我其實(shí)更喜歡azw3格式的書(shū)。因?yàn)橹恍枰螺d一個(gè)更加通用的閱讀器就好。轉(zhuǎn)的PDF對(duì)我這種稍微有點(diǎn)強(qiáng)迫癥的人來(lái)說(shuō)是個(gè)災(zāi)難。
    7
    pengming 發(fā)表于 2018-3-27 10:56:37 |只看作者 |壇友微信交流群
    飛鴻驚鴻 發(fā)表于 2018-3-25 18:59
    azw3如果排版是出版社紙質(zhì)書(shū)的排版的話,我其實(shí)更喜歡azw3格式的書(shū)。因?yàn)橹恍枰螺d一個(gè)更加通用的閱讀器 ...
    送你AZW3的文件
    8
    飛鴻驚鴻 發(fā)表于 2018-3-27 13:56:18 |只看作者 |壇友微信交流群
    pengming 發(fā)表于 2018-3-27 10:56
    送你AZW3的文件
    多謝多謝,我的郵箱是1247767751@qq.com。不勝感激
    9
    pengming 發(fā)表于 2018-3-28 15:03:10 |只看作者 |壇友微信交流群
    飛鴻驚鴻 發(fā)表于 2018-3-27 13:56
    多謝多謝,我的郵箱是。不勝感激
    已經(jīng)發(fā)送至您郵箱,請(qǐng)查收!
    10
    飛鴻驚鴻 發(fā)表于 2018-3-28 18:29:31 |只看作者 |壇友微信交流群
    pengming 發(fā)表于 2018-3-28 15:03
    已經(jīng)發(fā)送至您郵箱,請(qǐng)查收!
    郵件已收到,多謝樓主

    本版微信群
    加好友,備注jltj
    拉您入交流群

    京ICP備16021002-2號(hào) 京B2-20170662號(hào) 京公網(wǎng)安備 11010802022788號(hào) 論壇法律顧問(wèn):王進(jìn)律師 知識(shí)產(chǎn)權(quán)保護(hù)聲明   免責(zé)及隱私聲明

    GMT+8, 2025-1-1 16:30