Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TVec Ramp | Fills the calling vector with a series following linear rule. |
| 2 | TVec Ramp(TCplx Offset, TCplx Step) | Fills the calling vector with a series. |
| └ indexed: TVec Ramp(TCplx Offset, TCplx Step, Int32 Index, Int32 Len) | ||
| 3 | TVec Ramp(TCplx Offset, Double Step) | The Offset is complex, but the step is real. |
| └ indexed: TVec Ramp(TCplx Offset, Double Step, Int32 Index, Int32 Len) | ||
| 4 | TVec Ramp(Double Offset, Double Step) | Fills the calling vector. |
| └ indexed: TVec Ramp(Double Offset, Double Step, Int32 Index, Int32 Len) |
Overload 1: TVec Ramp
Fills the calling vector with a series following linear rule.
Result: stored in self (calling object), returns self for chaining
Fills the calling vector with a series following the rule:
Values[k] := k
(Offset is zero and Step is one). If the calling vector is complex, only the real part is set.
TVec a;
MtxVec.CreateIt(out a);
try
{
a.Size(5,true);
a.Ramp(0,Pi);
a.Sin;
}
finally
{
MtxVec.FreeIt(ref a);
}
MtxVec.CreateIt(out a);
try
{
a.Size(5,true);
for i = 0 to a.Length-1 do a[i] = sin(i*Pi);
}
finally
{
MtxVec.FreeIt(ref a);
}
Overload 2: TVec Ramp(TCplx Offset, TCplx Step)
Fills the calling vector with a series.
Result: stored in self (calling object), returns self for chaining
Method follow the rule:
CValues[k] := Offset + k*Step.
Indexed: TVec Ramp(TCplx Offset, TCplx Step, Int32 Index, Int32 Len)
Fills the calling vector elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Offset | TCplx | scalar |
| 2 | Step | TCplx | scalar |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Following the rule:
Values[k] := Offset + k*Step.
If the calling vector is complex, only the real part is set. An exception is raised if array borders of the calling vector are overrun.
Overload 3: TVec Ramp(TCplx Offset, Double Step)
The Offset is complex, but the step is real.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Offset | TCplx | scalar |
| 2 | Step | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Indexed: TVec Ramp(TCplx Offset, Double Step, Int32 Index, Int32 Len)
Fills the calling vector elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Offset | TCplx | scalar |
| 2 | Step | Double | scalar |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Following the rule:
Values[k] := Offset + k*Step.
The Offset is complex, but the step is real.
Overload 4: TVec Ramp(Double Offset, Double Step)
Fills the calling vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Offset | Double | scalar |
| 2 | Step | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Method uses the following rule:
Values[k] := Offset + k*Step.
If the calling vector is complex, only the real part is set.
Indexed: TVec Ramp(Double Offset, Double Step, Int32 Index, Int32 Len)
Fills the calling vector elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Offset | Double | scalar |
| 2 | Step | Double | scalar |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Method uses the following rule:
Values[k] := Offset + k*Step.
If the calling vector is complex, only the real part is set. An exception is raised if calling vector array borders are overrun.